Autor Tópico: APT com problemas  (Lida 8737 vezes)

Offline Arthur Bernardes

  • Usuário Ubuntu
  • *
  • Mensagens: 4.692
    • Ver perfil
APT com problemas
« Online: 12 de Julho de 2014, 10:13 »
Olá, estou enfrentando um problema no meu desktop.

Ao executar o comando sudo apt-get update, tenho essa resposta:

Código: [Selecionar]
Hit http://security.ubuntu.com precise-security Release.gpg
Get:1 http://packages.linuxmint.com maya Release.gpg [198 B]                   
Hit http://archive.ubuntu.com precise Release.gpg                             
Hit http://archive.ubuntu.com precise-updates Release.gpg                     
Hit http://archive.ubuntu.com precise-backports Release.gpg                   
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://ppa.launchpad.net precise Release.gpg                               
Hit http://archive.canonical.com precise Release.gpg                           
Hit http://security.ubuntu.com precise-security Release                       
Get:2 http://packages.linuxmint.com maya Release [18.6 kB]                     
Hit http://archive.ubuntu.com precise Release                                 
Hit http://ppa.launchpad.net precise Release                                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://archive.canonical.com precise Release                               
Hit http://security.ubuntu.com precise-security/main i386 Packages             
Hit http://archive.ubuntu.com precise-updates Release                         
Hit http://ppa.launchpad.net precise Release                                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://security.ubuntu.com precise-security/restricted i386 Packages       
Hit http://security.ubuntu.com precise-security/universe i386 Packages         
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages       
Hit http://security.ubuntu.com precise-security/main TranslationIndex         
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex   
Hit http://archive.canonical.com precise/partner i386 Packages                 
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex   
Hit http://security.ubuntu.com precise-security/universe TranslationIndex     
Get:3 http://packages.linuxmint.com maya/main i386 Packages [18.2 kB]         
Hit http://archive.ubuntu.com precise-backports Release                       
Hit http://archive.ubuntu.com precise/main i386 Packages                       
Hit http://archive.ubuntu.com precise/restricted i386 Packages                 
Hit http://archive.ubuntu.com precise/universe i386 Packages                   
Hit http://archive.ubuntu.com precise/multiverse i386 Packages                 
Hit http://archive.ubuntu.com precise/main TranslationIndex                   
Hit http://ppa.launchpad.net precise Release                                   
Hit http://security.ubuntu.com precise-security/main Translation-en           
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages                       
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages                       
Ign http://archive.canonical.com precise/partner TranslationIndex             
Get:4 http://packages.linuxmint.com maya/upstream i386 Packages [10.6 kB]     
Get:5 http://packages.linuxmint.com maya/import i386 Packages [42.0 kB]       
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex             
Hit http://archive.ubuntu.com precise/restricted TranslationIndex             
Hit http://archive.ubuntu.com precise/universe TranslationIndex               
Hit http://archive.ubuntu.com precise-updates/main i386 Packages               
Hit http://archive.ubuntu.com precise-updates/restricted i386 Packages         
Hit http://archive.ubuntu.com precise-updates/universe i386 Packages           
Hit http://archive.ubuntu.com precise-updates/multiverse i386 Packages         
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex           
Hit http://security.ubuntu.com precise-security/multiverse Translation-en     
Hit http://security.ubuntu.com precise-security/restricted Translation-en     
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages                       
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages                       
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages                       
Get:6 http://packages.linuxmint.com maya/backport i386 Packages [62.6 kB]     
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex     
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex     
Hit http://security.ubuntu.com precise-security/universe Translation-en       
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex       
Hit http://archive.ubuntu.com precise-backports/main i386 Packages             
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages       
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages         
Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages       
Ign http://ppa.launchpad.net precise/main TranslationIndex                     
Hit http://ppa.launchpad.net precise/main Sources                             
Hit http://ppa.launchpad.net precise/main i386 Packages               
Ign http://ppa.launchpad.net precise/main TranslationIndex           
Hit http://ppa.launchpad.net precise/main Sources                     
Hit http://ppa.launchpad.net precise/main i386 Packages               
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex         
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex   
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex   
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex     
Hit http://archive.ubuntu.com precise/main Translation-en                     
Hit http://archive.ubuntu.com precise/main Translation-pt                     
Hit http://archive.ubuntu.com precise/multiverse Translation-en               
Hit http://archive.ubuntu.com precise/multiverse Translation-pt       
Ign http://ppa.launchpad.net precise/main TranslationIndex           
Hit http://ppa.launchpad.net precise/main Sources                     
Hit http://ppa.launchpad.net precise/main i386 Packages               
Ign http://ppa.launchpad.net precise/main TranslationIndex           
Hit http://archive.ubuntu.com precise/restricted Translation-en       
Hit http://archive.ubuntu.com precise/restricted Translation-pt       
Ign http://packages.linuxmint.com maya/backport TranslationIndex     
Ign http://packages.linuxmint.com maya/import TranslationIndex       
Ign http://packages.linuxmint.com maya/main TranslationIndex         
Ign http://packages.linuxmint.com maya/upstream TranslationIndex     
Hit http://archive.ubuntu.com precise/universe Translation-en         
Hit http://archive.ubuntu.com precise/universe Translation-pt         
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-pt
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-pt
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en       
Hit http://archive.ubuntu.com precise-updates/restricted Translation-pt       
Hit http://archive.ubuntu.com precise-updates/universe Translation-en         
Hit http://archive.ubuntu.com precise-updates/universe Translation-pt         
Hit http://archive.ubuntu.com precise-backports/main Translation-en           
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en     
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en     
Hit http://archive.ubuntu.com precise-backports/universe Translation-en       
Ign http://archive.canonical.com precise/partner Translation-en               
Ign http://archive.canonical.com precise/partner Translation-pt               
Ign http://ppa.launchpad.net precise/main Translation-en                   
Ign http://ppa.launchpad.net precise/main Translation-pt                   
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-pt
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-pt
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-pt
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-pt
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-pt
Ign http://packages.linuxmint.com maya/backport Translation-en
Ign http://packages.linuxmint.com maya/backport Translation-pt
Ign http://packages.linuxmint.com maya/import Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://packages.linuxmint.com maya/import Translation-pt
Ign http://packages.linuxmint.com maya/main Translation-en                     
Ign http://ppa.launchpad.net precise/main Translation-pt                       
Ign http://ppa.launchpad.net precise/main Translation-en                       
Ign http://ppa.launchpad.net precise/main Translation-pt                       
Ign http://packages.linuxmint.com maya/main Translation-pt                     
Ign http://packages.linuxmint.com maya/upstream Translation-en                 
Ign http://packages.linuxmint.com maya/upstream Translation-pt                 
Fetched 152 kB in 6s (22.7 kB/s)                                               
Reading package lists... Done

Até aqui tudo bem, mas quando dou um sudo apt-get upgrade, eu obtenho essa resposta:

Código: [Selecionar]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libc6 : Depends: libgcc1 but it is not installed
         Depends: tzdata but it is not installed
E: Unmet dependencies. Try using -f.

Se executo o sudo apt-get -f install, tenho essa resposta:

Código: [Selecionar]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  apt-utils coreutils debconf debconf-i18n dpkg libacl1 libapt-inst1.4
  libapt-pkg4.12 libattr1 libbz2-1.0 libdb5.1 libgcc1 liblocale-gettext-perl
  liblzma5 libselinux1 libstdc++6 libtext-charwidth-perl libtext-iconv-perl
  libtext-wrapi18n-perl perl-base tar tzdata xz-utils zlib1g
Suggested packages:
  debconf-doc debconf-utils whiptail dialog gnome-utils
  libterm-readline-gnu-perl libgtk2-perl libnet-ldap-perl libqtgui4-perl
  libqtcore4-perl apt bzip2 ncompress xz-lzma
The following NEW packages will be installed:
  apt-utils coreutils debconf debconf-i18n dpkg libacl1 libapt-inst1.4
  libapt-pkg4.12 libattr1 libbz2-1.0 libdb5.1 libgcc1 liblocale-gettext-perl
  liblzma5 libselinux1 libstdc++6 libtext-charwidth-perl libtext-iconv-perl
  libtext-wrapi18n-perl perl-base tar tzdata xz-utils zlib1g
0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/9286 kB of archives.
After this operation, 29.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en",
LC_ALL = (unset),
LC_TIME = "pt_BR.UTF-8",
LC_MONETARY = "pt_BR.UTF-8",
LC_ADDRESS = "pt_BR.UTF-8",
LC_TELEPHONE = "pt_BR.UTF-8",
LC_NAME = "pt_BR.UTF-8",
LC_MEASUREMENT = "pt_BR.UTF-8",
LC_IDENTIFICATION = "pt_BR.UTF-8",
LC_NUMERIC = "pt_BR.UTF-8",
LC_PAPER = "pt_BR.UTF-8",
LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
dpkg: regarding .../libgcc1_1%3a4.6.3-1ubuntu5_i386.deb containing libgcc1, pre-dependency problem:
 libgcc1 pre-depends on multiarch-support
  multiarch-support is unpacked, but has never been configured.
dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.6.3-1ubuntu5_i386.deb (--unpack):
 pre-dependency problem - not installing libgcc1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 /var/cache/apt/archives/libgcc1_1%3a4.6.3-1ubuntu5_i386.deb
E: Internal Error, No file name for libc6
W: Could not perform immediate configuration on 'multiarch-support:i386'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
E: Sub-process /usr/bin/dpkg returned an error code (1)

Se tento instalar a dependência libgcc1, tenho essa mesma resposta:

Código: [Selecionar]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libc6 : Depends: tzdata but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Estou usando Linux Mint 13, o diretório /var/lib/dpkg está dessa maneira:

Código: [Selecionar]
alternatives   cmethopt        info   statoverride  triggers
available      diversions      lock   status        updates
available-old  diversions-old  parts  status-old

Obrigado a quem puder me ajudar.  ;D

Offline san-alex

  • Usuário Ubuntu
  • *
  • Mensagens: 95
  • CNC Programmer
    • Ver perfil
Re: APT com problemas
« Resposta #1 Online: 12 de Julho de 2014, 10:35 »
Código: [Selecionar]
sudo dpkg --configure -a
sudo apt-get install -f

Offline Arthur Bernardes

  • Usuário Ubuntu
  • *
  • Mensagens: 4.692
    • Ver perfil
Re: APT com problemas
« Resposta #2 Online: 12 de Julho de 2014, 10:42 »
Já executei esses comandos, e eis os resultados na minha primeira postagem.

Offline san-alex

  • Usuário Ubuntu
  • *
  • Mensagens: 95
  • CNC Programmer
    • Ver perfil
Re: APT com problemas
« Resposta #3 Online: 12 de Julho de 2014, 10:54 »
Na primeira postagem não estou a ver
Código: [Selecionar]
sudo dpkg --configure -a

Offline Arthur Bernardes

  • Usuário Ubuntu
  • *
  • Mensagens: 4.692
    • Ver perfil
Re: APT com problemas
« Resposta #4 Online: 12 de Julho de 2014, 11:07 »
Código: [Selecionar]
dpkg: dependency problems prevent configuration of libc6:
 libc6 depends on libgcc1; however:
  Package libgcc1 is not installed.
 libc6 depends on tzdata; however:
  Package tzdata is not installed.
dpkg: error processing libc6 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of multiarch-support:
 multiarch-support depends on libc6 (>= 2.13-0ubuntu6); however:
  Package libc6 is not configured yet.
dpkg: error processing multiarch-support (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libc6
 multiarch-support

Creto

  • Visitante
Re: APT com problemas
« Resposta #5 Online: 12 de Julho de 2014, 16:20 »
Algum pacote de fora dos repositórios ou não mais suportados foram instalados ou você tentou forçar a instalação?

- Pergunto, pois foi dessa forma que tive problema parecido a uns dias atrás e não consegui resolver, depois de tentar a e forçar a instalação do ffmpeg.

É meio sombria a solução para esse problema já que pouco se encontra na rede sobre o problema.

T+

Offline Arthur Bernardes

  • Usuário Ubuntu
  • *
  • Mensagens: 4.692
    • Ver perfil
Re: APT com problemas
« Resposta #6 Online: 12 de Julho de 2014, 17:33 »
Não instalei pacote algum, na verdade estou tentando atualizar os pacotes do sistema e instalar o "bind", preciso configurar um servidor DNS na minha rede local, pelo visto nem o Unbound vou conseguir instalar.

Creto

  • Visitante
Re: APT com problemas
« Resposta #7 Online: 13 de Julho de 2014, 06:34 »
Já tentou o autoremove ou mesmo corrigir pacotes quebrados pelo velho Synaptic?

T+

Offline Arthur Bernardes

  • Usuário Ubuntu
  • *
  • Mensagens: 4.692
    • Ver perfil
Re: APT com problemas
« Resposta #8 Online: 18 de Julho de 2014, 10:34 »
Comando nenhum resolve, nem o "dpkg --configure -a" resolve.

O que pode ser?

Creto

  • Visitante
Re: APT com problemas
« Resposta #9 Online: 18 de Julho de 2014, 15:48 »
Foi como disse mais acima Arthur, esse erro de "você manteve (hold) pacotes quebrados" é muito chato mesmo. Solução e o porque disso acontecer eu realmente não sei ao certo, mas como se vê pela NET afora e por experiência própria acontece quando tentamos instalar algum software obsoleto, fora dos repositórios ou sei lá o que fazemos, mas basicamente é esse o fato constattado, não estou dizendo que foi isso que aconteceu ai, mas como pode ver aqui você vai ver que o usuário tentou instalar o Nemo (gerenciador de arquivos nativo do Cinnamon) e teve esse problema.

Boa sorte!

T+