После новой установки Ubuntu 16.04 я сломал пакеты и не могу установить большинство приложений. Я пытался из Synaptic "Исправить сломанные пакеты", но он не работает. Пример;
sudo apt-get install steam
Выход;
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.
Другой пример;
sudo apt-get install nvidia-361
Выход;
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.
Нет выход из;
sudo apt-get clean
Я пробовал;
sudo apt-get install -f
Выходы;
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Спасибо ..
16.04 является новым, и все пакеты не готовы использовать во всех серверах. Используя Основной Сервер для загрузки пакетов решают мою проблему.
У меня была та же проблема после включения внешней архитектуры для руки:
dpkg --print-foreign-architectures
i386
armvfp
armhf
Это предотвратило apt update
для завершения полностью, это всегда заканчивалось:
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.
, В то время как ошибки были только для руки, она предотвратила для установки многих пакетов. Удаление этой архитектуры с sudo dpkg --remove-architecture armvfp
и sudo dpkg --remove-architecture armhf
сопровождаемый apt update
решило проблемы.
я знаю, что на вопрос OP уже отвечают, но те же признаки произошли в моем случае.