全新安装后,Ubuntu 16.04破包

在全新安装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是新的,并且所有软件包都不能在所有服务器中使用。 使用主服务器下载包解决了我的问题。

  1. 系统设置
  2. 软件和更新
  3. 从“从下载”部分选择“主服务器”

在为arm启用外部架构后,我遇到了同样的问题:

 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. 

虽然错误仅适用于arm,但它阻止了安装许多软件包。 使用sudo dpkg --remove-architecture armvfp删除这些体系结构sudo dpkg --remove-architecture armvfpsudo dpkg --remove-architecture armhf后跟apt update解决了这些问题。

我知道OP问题已经回答了,但我的情况也出现了同样的症状。