Autor Tópico: [resolvido] apt-get update dando erro.  (Lida 6520 vezes)

Offline Aphexleo

  • Usuário Ubuntu
  • *
  • Mensagens: 28
    • Ver perfil
[resolvido] apt-get update dando erro.
« Online: 08 de MAR?O de 2009, 18:58 »
Galera mais um vez venho aqui pedir ajuda

Seguinte to fazendo apt-get update mais ta dando o seguinte erro

Código: [Selecionar]
W: Erro GPG: http://wine.budgetdedicated.com hardy Release: As assinaturas a seguir não puderam ser verificadas devido a chave pública não estar disponível: NO_PUBKEY 58403026387EE263
E: Não foi possível obter trava /var/lib/dpkg/lock - open (11 Recurso temporariamente indisponível)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Como resolvo esses 2 erros?

obg
« Última modificação: 09 de MAR?O de 2009, 18:00 por Aphexleo »

Offline felipeborges

  • Usuário Ubuntu
  • *
  • Mensagens: 651
    • Ver perfil
    • felipe@borges:~# Liberdade não tem Preço!
Re: apt-get update
« Resposta #1 Online: 08 de MAR?O de 2009, 19:02 »
As assinaturas são necessárias para certificar a autenticidade dos repositórios.

No seu caso, são os repositórios do Wine, veja no fim desta página: http://winehq.org/download/deb , na seção: Alternative command Line Instructions for Installing Wine.

NOTA: A moderação pode mover seu tópico para Quarentena pelo seu título não esclarecer o real conteúdo do tópico.

 :)
« Última modificação: 08 de MAR?O de 2009, 19:04 por felipeborges »
Meu blog sobre GNU/Linux
Debian Lenny e Gentoo.

Offline Aphexleo

  • Usuário Ubuntu
  • *
  • Mensagens: 28
    • Ver perfil
Re: apt-get update dando erro.
« Resposta #2 Online: 08 de MAR?O de 2009, 19:05 »
Então eu tirei o wine, e ainda fica aparecendo  isso.

Offline felipeborges

  • Usuário Ubuntu
  • *
  • Mensagens: 651
    • Ver perfil
    • felipe@borges:~# Liberdade não tem Preço!
Re: apt-get update dando erro.
« Resposta #3 Online: 08 de MAR?O de 2009, 19:08 »
Não há necessidade da remoção, basta executar o comando do link que eu citei e pronto. Mas se mesmo assim quiser livrar-se do Wine e dos repositórios....

Código: [Selecionar]
sudo gedit /etc/apt/sources.list
Procure pela linha do Wine, pague-a ou comente-a (comenta-se com # )

Se tiver dúvidas, poste o conteúdo das suas sources.list.
Meu blog sobre GNU/Linux
Debian Lenny e Gentoo.

Offline Aphexleo

  • Usuário Ubuntu
  • *
  • Mensagens: 28
    • Ver perfil
Re: apt-get update dando erro.
« Resposta #4 Online: 08 de MAR?O de 2009, 22:04 »
Aqui ta o conteudo.

Código: [Selecionar]
# deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release i386 (20080702.1)]/ hardy 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/ hardy main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://br.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy universe
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-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/ hardy multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-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/ hardy-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe 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 hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
deb http://debian.vogelweith.com/ intrepid zgegthemes
deb-src http://debian.vogelweith.com/ intrepid zgegthemes


provavelmente mexi em algo que não deveria...

Offline Aphexleo

  • Usuário Ubuntu
  • *
  • Mensagens: 28
    • Ver perfil
Re: apt-get update dando erro.
« Resposta #5 Online: 08 de MAR?O de 2009, 22:56 »
alias eu reinstalei aki o linux que fiz monte de burrada.

Offline cesarramina

  • Usuário Ubuntu
  • *
  • Mensagens: 38
  • Ubuntu64 - MacOSX
    • Ver perfil
Re: apt-get update dando erro.
« Resposta #6 Online: 08 de MAR?O de 2009, 22:58 »
A mensagem de erro j'a te indicava o caminho...
"Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?" 
Provavelmente você estava com um synaptic aberto e tentando instalar algo pelo terminal.
Quando programas de administração são usados, o programa não deixa abrir duas instâncias administrativas ao mesmo tempo (ou, não dá para abrir o synaptic e usar apt-get  ao mesmo tempo).
« Última modificação: 08 de MAR?O de 2009, 22:59 por cesarramina »
___________
Cesar

Offline Aphexleo

  • Usuário Ubuntu
  • *
  • Mensagens: 28
    • Ver perfil
Re: apt-get update dando erro.
« Resposta #7 Online: 08 de MAR?O de 2009, 23:15 »
ok mais eu não abro o synaptic só o console
acabei de abrir o console e digitar apt-get update e da o erro:

Código: [Selecionar]
aphexleo@aphexleo-desktop:~$ sudo apt-get update
Atingido http://br.archive.ubuntu.com hardy Release.gpg                       
Atingido http://br.archive.ubuntu.com hardy/main Translation-pt_BR             
Atingido http://security.ubuntu.com hardy-security Release.gpg                 
Ign http://security.ubuntu.com hardy-security/main Translation-pt_BR           
Atingido http://br.archive.ubuntu.com hardy/restricted Translation-pt_BR       
Atingido http://br.archive.ubuntu.com hardy/universe Translation-pt_BR         
Atingido http://br.archive.ubuntu.com hardy/multiverse Translation-pt_BR       
Atingido http://br.archive.ubuntu.com hardy-updates Release.gpg               
Ign http://br.archive.ubuntu.com hardy-updates/main Translation-pt_BR         
Ign http://br.archive.ubuntu.com hardy-updates/restricted Translation-pt_BR   
Ign http://br.archive.ubuntu.com hardy-updates/universe Translation-pt_BR     
Ign http://br.archive.ubuntu.com hardy-updates/multiverse Translation-pt_BR   
Ign http://debian.vogelweith.com intrepid Release.gpg                         
Ign http://debian.vogelweith.com intrepid/zgegthemes Translation-pt_BR         
Ign http://security.ubuntu.com hardy-security/restricted Translation-pt_BR     
Ign http://security.ubuntu.com hardy-security/universe Translation-pt_BR
Ign http://security.ubuntu.com hardy-security/multiverse Translation-pt_BR
Atingido http://security.ubuntu.com hardy-security Release   
Atingido http://br.archive.ubuntu.com hardy Release                           
Atingido http://br.archive.ubuntu.com hardy-updates Release                   
Obtendo:1 http://debian.vogelweith.com intrepid Release [1154B]               
Atingido http://br.archive.ubuntu.com hardy/main Packages                     
Atingido http://security.ubuntu.com hardy-security/main Packages
Atingido http://br.archive.ubuntu.com hardy/restricted Packages               
Atingido http://br.archive.ubuntu.com hardy/main Sources                       
Atingido http://br.archive.ubuntu.com hardy/restricted Sources                 
Atingido http://br.archive.ubuntu.com hardy/universe Packages                 
Atingido http://br.archive.ubuntu.com hardy/universe Sources                   
Ign http://debian.vogelweith.com intrepid/zgegthemes Packages                 
Atingido http://security.ubuntu.com hardy-security/restricted Packages         
Atingido http://security.ubuntu.com hardy-security/main Sources               
Atingido http://security.ubuntu.com hardy-security/restricted Sources         
Atingido http://security.ubuntu.com hardy-security/universe Packages           
Atingido http://br.archive.ubuntu.com hardy/multiverse Packages               
Atingido http://br.archive.ubuntu.com hardy/multiverse Sources                 
Atingido http://br.archive.ubuntu.com hardy-updates/main Packages             
Atingido http://br.archive.ubuntu.com hardy-updates/restricted Packages       
Atingido http://br.archive.ubuntu.com hardy-updates/main Sources               
Atingido http://br.archive.ubuntu.com hardy-updates/restricted Sources         
Ign http://debian.vogelweith.com intrepid/zgegthemes Sources                   
Atingido http://security.ubuntu.com hardy-security/universe Sources           
Atingido http://security.ubuntu.com hardy-security/multiverse Packages
Atingido http://security.ubuntu.com hardy-security/multiverse Sources
Atingido http://br.archive.ubuntu.com hardy-updates/universe Packages
Atingido http://br.archive.ubuntu.com hardy-updates/universe Sources
Atingido http://br.archive.ubuntu.com hardy-updates/multiverse Packages
Atingido http://br.archive.ubuntu.com hardy-updates/multiverse Sources
Obtendo:2 http://debian.vogelweith.com intrepid/zgegthemes Packages [10,5kB]   
Obtendo:3 http://debian.vogelweith.com intrepid/zgegthemes Sources [3441B]     
Baixados 15,1kB em 8s (1750B/s)                                               
E: Não foi possível obter trava /var/lib/dpkg/lock - open (11 Recurso temporariamente indisponível)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
aphexleo@aphexleo-desktop:~$ sudo apt-get install zgegblog-themes
E: Não foi possível obter trava /var/lib/dpkg/lock - open (11 Recurso temporariamente indisponível)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Offline cesarramina

  • Usuário Ubuntu
  • *
  • Mensagens: 38
  • Ubuntu64 - MacOSX
    • Ver perfil
Re: apt-get update dando erro.
« Resposta #8 Online: 08 de MAR?O de 2009, 23:27 »
Tente:
apt-get -f install

No momento não estou num Linux e não me lembro de cabeça os comandos.
Mas tem comandos apt-get e dpkg para corrigir esse seu problema.
Se não conseguir aqui no fórum, tente no http://www.vivaolinux.com.br
___________
Cesar

Offline Aphexleo

  • Usuário Ubuntu
  • *
  • Mensagens: 28
    • Ver perfil
Re: apt-get update dando erro.
« Resposta #9 Online: 08 de MAR?O de 2009, 23:41 »
Não deu tambem eu so queria saber como eu saio disso

Código: [Selecionar]
E: Não foi possível obter trava /var/lib/dpkg/lock - open (11 Recurso temporariamente indisponível)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
aphexleo@aphexleo-desktop:~$ sudo apt-get install zgegblog-themes
E: Não foi possível obter trava /var/lib/dpkg/lock - open (11 Recurso temporariamente indisponível)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Offline felipeborges

  • Usuário Ubuntu
  • *
  • Mensagens: 651
    • Ver perfil
    • felipe@borges:~# Liberdade não tem Preço!
Re: apt-get update dando erro.
« Resposta #10 Online: 09 de MAR?O de 2009, 14:47 »
Código: [Selecionar]
sudo rm /var/lib/dpkg/lock
 ;)
Meu blog sobre GNU/Linux
Debian Lenny e Gentoo.

Offline Aphexleo

  • Usuário Ubuntu
  • *
  • Mensagens: 28
    • Ver perfil
Re: apt-get update dando erro.
« Resposta #11 Online: 09 de MAR?O de 2009, 17:59 »
eee felipão valeu mesmo carinha :)

topico encerrado!

Offline felipeborges

  • Usuário Ubuntu
  • *
  • Mensagens: 651
    • Ver perfil
    • felipe@borges:~# Liberdade não tem Preço!
Re: [resolvido] apt-get update dando erro.
« Resposta #12 Online: 09 de MAR?O de 2009, 18:12 »
Só tentando esclarecer, se eu estiver errado me corrijam, o arquivo lock (trava) é gerado quando há alguma interrupção ou algo é corrompido de alguma forma no apt, o objetivo dele é que após a resolução do problema ele seja automaticamente resolvido, as vezes isto não acontece. E basicamente o apt-get lê o conteúdo da pasta /var/lib/dpkg e se encontra um lock, break, e para a execução do programa.
Meu blog sobre GNU/Linux
Debian Lenny e Gentoo.