为什么安装软件时会出现软件不在源中的错误?

为什么安装软件时会出现软件不在源中的错误?

我正在使用 ubuntu 11.10。我尝试了所有选项sudo apt-get update,但sudo apt-get upgrade 在软件中心安装许多软件时遇到问题,显示错误“未找到,您的源中没有名为“------”的软件”。安装 gnome-shell 时也出现此问题。

sanket@sanket-Dell-System-XPS-L502X:~$ sudo apt-get install gnome-shell
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:
 gnome-shell : Depends: gjs (>= 1.29.18) but it is not installable
               Depends: libgjs0c (>= 1.29.18) but it is not installable
               Depends: caribou but it is not installable
               Depends: cups-pk-helper but it is not installable
               Depends: mesa-utils but it is not installable
               Recommends: gnome-themes-standard but it is not going to be installed
               Recommends: gnome-session-fallback but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

存储库有问题吗?该怎么办?

答案1

这可能是由于您的存储库中缺少软件包造成的。尝试切换到主服务器。

看:https://help.ubuntu.com/community/Repositories/Ubuntu#Download_Server

然后重新运行更新管理器并安装所有更新。

相关内容