Olá,
não tenho muita experiência com Linux Ubuntu 11.04 fiz a instalação sem erro e ao seguir a documentação
pra montar o ambiente está dando erro conforme abaixo
o que fiz que deu erro
# sudo apt-get update
paulo@paulo-virtual-machine:/etc/apt$ sudo apt-get update
[sudo] password for paulo:
Ign http://br.archive.ubuntu.com natty InRelease
Ign http://br.archive.ubuntu.com natty-updates InRelease
Ign http://extras.ubuntu.com natty InRelease
Atingido http://br.archive.ubuntu.com natty Release.gpg
Ign http://security.ubuntu.com natty-security InRelease
Obter:1 http://br.archive.ubuntu.com natty-updates Release.gpg [198 B]
Obter:2 http://extras.ubuntu.com natty Release.gpg [72 B]
Atingido http://br.archive.ubuntu.com natty Release
Atingido http://extras.ubuntu.com natty Release
Obter:3 http://security.ubuntu.com natty-security Release.gpg [198 B]
Obter:4 http://br.archive.ubuntu.com natty-updates Release [31,4 kB]
Obter:5 ftp://sagres.c3sl.ufpr.br hardy InRelease
Atingido http://extras.ubuntu.com natty/main Sources
Obter:6 http://security.ubuntu.com natty-security Release [31,4 kB]
Atingido http://extras.ubuntu.com natty/main i386 Packages
Ign http://extras.ubuntu.com natty/main TranslationIndex
Ign ftp://sagres.c3sl.ufpr.br hardy InRelease
Atingido http://br.archive.ubuntu.com natty/main Sources
Atingido http://br.archive.ubuntu.com natty/restricted Sources
Atingido http://br.archive.ubuntu.com natty/universe Sources
Atingido http://br.archive.ubuntu.com natty/multiverse Sources
Atingido http://br.archive.ubuntu.com natty/main i386 Packages
Atingido http://br.archive.ubuntu.com natty/restricted i386 Packages
Atingido http://br.archive.ubuntu.com natty/universe i386 Packages
Atingido http://br.archive.ubuntu.com natty/multiverse i386 Packages
Ign http://br.archive.ubuntu.com natty/main TranslationIndex
Ign http://br.archive.ubuntu.com natty/multiverse TranslationIndex
Ign http://br.archive.ubuntu.com natty/restricted TranslationIndex
Ign http://br.archive.ubuntu.com natty/universe TranslationIndex
Obter:7 http://br.archive.ubuntu.com natty-updates/main Sources [101 kB]
Obter:8 ftp://sagres.c3sl.ufpr.br hardy Release.gpg [197 B]
Obter:9 http://security.ubuntu.com natty-security/main Sources [64,8 kB]
Obter:10 http://br.archive.ubuntu.com natty-updates/restricted Sources [14 B]
Obter:11 http://br.archive.ubuntu.com natty-updates/universe Sources [23,2 kB]
Obter:12 http://br.archive.ubuntu.com natty-updates/multiverse Sources [1.895 B]
Obter:13 http://br.archive.ubuntu.com natty-updates/main i386 Packages [306 kB]
Obter:14 ftp://sagres.c3sl.ufpr.br hardy Release [2.154 B]
Obter:15 http://security.ubuntu.com natty-security/restricted Sources [14 B]
Obter:16 http://security.ubuntu.com natty-security/universe Sources [10,2 kB]
Obter:17 http://security.ubuntu.com natty-security/multiverse Sources [655 B]
Obter:18 http://security.ubuntu.com natty-security/main i386 Packages [170 kB]
Ign ftp://sagres.c3sl.ufpr.br hardy Release
Obter:19 http://br.archive.ubuntu.com natty-updates/restricted i386 Packages [14 B]
Obter:20 http://br.archive.ubuntu.com natty-updates/universe i386 Packages [85,6 kB]
Obter:21 ftp://sagres.c3sl.ufpr.br hardy/stable i386 Packages [8.902 B]
Obter:22 http://br.archive.ubuntu.com natty-updates/multiverse i386 Packages [4.257 B]
Ign http://br.archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://br.archive.ubuntu.com natty-updates/multiverse TranslationIndex
Ign http://br.archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://br.archive.ubuntu.com natty-updates/universe TranslationIndex
Atingido http://br.archive.ubuntu.com natty/main Translation-pt_BR
Atingido http://br.archive.ubuntu.com natty/main Translation-pt
Atingido http://br.archive.ubuntu.com natty/multiverse Translation-pt_BR
Atingido http://br.archive.ubuntu.com natty/multiverse Translation-pt
Atingido http://br.archive.ubuntu.com natty/restricted Translation-pt_BR
Atingido http://br.archive.ubuntu.com natty/restricted Translation-pt
Atingido http://br.archive.ubuntu.com natty/universe Translation-pt_BR
Atingido http://br.archive.ubuntu.com natty/universe Translation-pt
Ign http://extras.ubuntu.com natty/main Translation-pt_BR
Ign http://extras.ubuntu.com natty/main Translation-pt
Ign http://extras.ubuntu.com natty/main Translation-en
Obter:23 ftp://sagres.c3sl.ufpr.br hardy/stable TranslationIndex
Ign ftp://sagres.c3sl.ufpr.br hardy/stable TranslationIndex
Obter:24 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt_BR
Ign http://br.archive.ubuntu.com natty/main Translation-en
Ign http://br.archive.ubuntu.com natty/multiverse Translation-en
Ign http://br.archive.ubuntu.com natty/restricted Translation-en
Ign http://br.archive.ubuntu.com natty/universe Translation-en
Ign http://br.archive.ubuntu.com natty-updates/main Translation-pt_BR
Ign http://br.archive.ubuntu.com natty-updates/main Translation-pt
Ign http://br.archive.ubuntu.com natty-updates/main Translation-en
Ign http://br.archive.ubuntu.com natty-updates/multiverse Translation-pt_BR
Ign http://br.archive.ubuntu.com natty-updates/multiverse Translation-pt
Ign http://br.archive.ubuntu.com natty-updates/multiverse Translation-en
Ign http://br.archive.ubuntu.com natty-updates/restricted Translation-pt_BR
Ign http://br.archive.ubuntu.com natty-updates/restricted Translation-pt
Obter:25 http://security.ubuntu.com natty-security/restricted i386 Packages [14 B]
Obter:26 http://security.ubuntu.com natty-security/universe i386 Packages [34,4 kB]
Ign http://br.archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://br.archive.ubuntu.com natty-updates/universe Translation-pt_BR
Ign http://br.archive.ubuntu.com natty-updates/universe Translation-pt
Ign http://br.archive.ubuntu.com natty-updates/universe Translation-en
Obter:27 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt
Obter:28 http://security.ubuntu.com natty-security/multiverse i386 Packages [2.077 B]
Ign http://security.ubuntu.com natty-security/main TranslationIndex
Ign http://security.ubuntu.com natty-security/multiverse TranslationIndex
Ign http://security.ubuntu.com natty-security/restricted TranslationIndex
Ign http://security.ubuntu.com natty-security/universe TranslationIndex
Obter:29 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-en
Obter:30 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt_BR
Obter:31 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt
Ign http://security.ubuntu.com natty-security/main Translation-pt_BR
Ign http://security.ubuntu.com natty-security/main Translation-pt
Ign http://security.ubuntu.com natty-security/main Translation-en
Obter:32 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-en
Ign http://security.ubuntu.com natty-security/multiverse Translation-pt_BR
Ign http://security.ubuntu.com natty-security/multiverse Translation-pt
Ign http://security.ubuntu.com natty-security/multiverse Translation-en
Ign http://security.ubuntu.com natty-security/restricted Translation-pt_BR
Ign http://security.ubuntu.com natty-security/restricted Translation-pt
Ign http://security.ubuntu.com natty-security/restricted Translation-en
Ign http://security.ubuntu.com natty-security/universe Translation-pt_BR
Ign http://security.ubuntu.com natty-security/universe Translation-pt
Ign http://security.ubuntu.com natty-security/universe Translation-en
Obter:33 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt_BR
Obter:34 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt
Obter:35 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-en
Obter:36 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt_BR
Obter:37 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt
Obter:38 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-en
Obter:39 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt_BR
Ign ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt_BR
Obter:40 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt
Ign ftp://sagres.c3sl.ufpr.br hardy/stable Translation-pt
Obter:41 ftp://sagres.c3sl.ufpr.br hardy/stable Translation-en
Ign ftp://sagres.c3sl.ufpr.br hardy/stable Translation-en
Baixados 879 kB em 24s (36,2 kB/s)
Lendo listas de pacotes... Pronto
W: Erro GPG: ftp://sagres.c3sl.ufpr.br hardy Release: As assinaturas a seguir não puderam ser verificadas devido à chave pública não estar disponível: NO_PUBKEY 698F76A5632038DF
paulo@paulo-virtual-machine:/etc/apt$
seguindo a documentação
Debian e Ubuntu
Escolha da ferramenta
Nas distribuições baseadas em Debian GNU/Linux, o sistema de gerenciamento de pacotes utilizado é o APT (Advanced Package Tool), o qual manipula arquivos no formato .DEB e que possui diversas ferramentas para automatizar as tarefas. Entre essas ferramentas, gráficas e em modo texto, podemos citar: apt-get, aptitude e synaptic.
Para a execução dos passos a seguir é necessário ter direitos de super-usuário (i.e. root) no sistema. Será utilizada a ferramenta apt-get nos exemplos.
Atualização dos índices locais
O primero passo consiste em modificar o arquivo de índices /etc/apt/sources.list do Linux inserindo a linha a seguir nele:
deb http://demoiselle.c3sl.ufpr.br hardy stable
ou (versão FTP):
deb ftp://sagres.c3sl.ufpr.br/demoiselle hardy stable
A segunda etapa consiste em atualizar os índices do APT localmente através do comando abaixo:
# apt-get update
Busca e consulta de pacotes
Para procurar um pacote a partir das descrições contidas nele, execute o comando apt-cache search, tal como no exemplo abaixo:
$ apt-cache search demoiselle
Para exibir as descrições de um pacote específico, use o comando apt-cache show:
$ apt-cache show demoiselle-dev
Instalação de pacotes
Finalmente, para instalar um pacote no Debian ou Ubuntu, utilize o comando apt-get install, sempre com o usuário root:
# apt-get install demoiselle-dev
como está o arquivo sources.list
paulo@paulo-virtual-machine:/etc/apt$ cat sources.list
#deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://br.archive.ubuntu.com/ubuntu/ natty main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ natty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ natty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ natty universe
deb-src http://br.archive.ubuntu.com/ubuntu/ natty universe
deb http://br.archive.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ natty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://br.archive.ubuntu.com/ubuntu/ natty multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ natty multiverse
deb http://br.archive.ubuntu.com/ubuntu/ natty-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ natty-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://br.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu natty partner
# deb-src http://archive.canonical.com/ubuntu natty partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main
deb ftp://sagres.c3sl.ufpr.br/demoiselle hardy stable