无法安装或更新任何软件

无法安装或更新任何软件

我是 Linux 新手,正在尝试一些新事物。我最初在软件中心安装东西时遇到了问题,因为如果出现此错误

Failed to fetch http://llvm.org/apt/precise/dists/llvm-toolchain-precise-3.6/main/binary-i386/Packages  404  Not Found

我尝试修复它,但现在我甚至无法再使用 apt-get 安装东西,并且会出现这些错误。

您可能需要运行apt-get -f install来纠正这些问题:

The following packages have unmet dependencies:
 graphicsmagick-imagemagick-compat : Depends: graphicsmagick but it is not going to be installed

              skype:i386 : 
              Depends: libqt4-dbus:i386 (>= 4:4.5.3) but it is not going to be installed
              Depends: libqt4-network:i386 (>= 4:4.5.3) but it is not going to be installed
              Depends: libqt4-webkit:i386 (>= 4:4.6.1) but it is not going to be installed
              Depends: libqt4-xml:i386 (>= 4:4.5.3) but it is not going to be installed
              Depends: libqtcore4:i386 (>= 4:4.6.1) but it is not going to be installed
              Depends: libqtgui4:i386 (>= 4:4.6.1) but it is not going to be installed
              Depends: libstdc++6:i386 (>= 4.2.1) but it is not going to be installed
              Depends: libxss1:i386 but it is not going to be installed
              Depends: libxv1:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

当我尝试安装graphicsmagick或执行其他操作时会发生这种情况。不,apt-get -f install会产生相同的错误。

答案1

似乎您在 sources.list 文件中定义的源不再存在,因为您提到的 llvm repo 给出了:

APT mirror was temporary switched off due to excess load. We are working on bringing it back. Stay tuned! 

因此您可以等待或停用资源software-properties-gtk并再次尝试上述操作......

在 /etc/sources/sources.list 或之后的子目录中更改源或注释掉它们之后,你创建一个

sudo apt-get update

如果运行顺利,你可以启动一个

sudo apt-get install -f && sudo apt-get upgrade

也许你就可以走了……

答案2

因此我取消选中软件和更新中的 llvm-toolchain-precise-3.6,然后在终端中输入

sudo apt-get -f install 

进而

sudo apt-get update

问题就解决了。现在我可以像平常一样安装东西了。

相关内容