Pacotes quebrados do Ubuntu 16.04 após nova instalação

1

Após a nova instalação do Ubuntu 16.04, eu quebrei pacotes e não consigo instalar a maioria dos aplicativos. Eu tentei do Synaptic "Corrigir pacotes quebrados", mas não está funcionando. Um exemplo;

sudo apt-get install steam

Saída;

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 steam:i386 : Depends: libc6:i386 (>= 2.15) but it is not going to be    installed
          Depends: libstdc++6:i386 (>= 4.3) but it is not going to be installed
          Depends: libx11-6:i386 but it is not going to be installed
          Depends: libudev1:i386 but it is not going to be installed
          Depends: libxinerama1:i386 but it is not going to be installed
          Depends: libtxc-dxtn0:i386
          Depends: libgl1-mesa-dri:i386 but it is not going to be installed
          Depends: libgl1-mesa-glx:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Um outro exemplo;

sudo apt-get install nvidia-361

Saída;

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-361 : Depends: lib32gcc1 but it is not going to be installed
              Depends: libc6-i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Não há saída de;

sudo apt-get clean

eu tentei;

sudo apt-get install -f

Saídas;

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Obrigado ..

    
por al0s 30.04.2016 / 19:09

2 respostas

3

O 16.04 é novo e todos os pacotes não estão prontos para uso em todos os servidores. Usar o servidor principal para baixar pacotes resolve meu problema.

  1. Configurações do sistema
  2. Software e amp; Atualizações
  3. Selecione "Servidor principal" na seção "Download de"
por al0s 02.05.2016 / 07:57
1

Eu tive o mesmo problema depois de ativar a arquitetura externa para o arm:

dpkg --print-foreign-architectures
i386
armvfp
armhf

Isso impediu que apt update fosse totalmente concluído. Sempre terminava com:

N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://apt.llvm.org/xenial llvm-toolchain-xenial-3.9 InRelease' doesn't support architecture 'armhf'
N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://apt.llvm.org/xenial llvm-toolchain-xenial InRelease' doesn't support architecture 'armhf'
N: Skipping acquire of configured file 'non-free/binary-armhf/Packages' as repository 'http://repository.spotify.com stable InRelease' doesn't support architecture 'armhf'
W: http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/vivid/Release.gpg: Signature by key 3764AB961B292804CD3474FAEAE2E8E7CB7F5C71 uses weak digest algorithm (SHA1)
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-proposed/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Enquanto os erros eram apenas para arm, impedia a instalação de muitos pacotes. A remoção dessas arquiteturas com sudo dpkg --remove-architecture armvfp e sudo dpkg --remove-architecture armhf seguido por apt update resolveu os problemas.

Eu sei que a pergunta do OP já foi respondida, mas os mesmos sintomas ocorreram no meu caso.

    
por daminetreg 23.01.2017 / 20:21