Ubuntu 软件中心因软件包目录错误而失败

Ubuntu 软件中心因软件包目录错误而失败

我正在运行 ubuntu 10.10,并试图重新安装指示器天气时,我在 ubuntu 软件中心收到此错误消息。它显示在下面的屏幕截图中,

在此处输入图片描述

我点击了修复,但消息一直出现。我关闭了 ubuntu 软件中心并再次尝试,但收到相同的错误消息。

如果上一个屏幕截图中不清楚的话,以下是错误消息, 在此处输入图片描述

编辑1:运行时, sudo apt-get install aptitude它说我已经安装了 aptitude。然后我运行sudo apt-get reinstall indicator-weather。输出是,

indicator-weather is not currently installed, so it will not be reinstalled.
indicator-weather is not currently installed, so it will not be reinstalled.
The following packages will be REMOVED:
  libgio-cil{u} 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 274kB will be freed.
Do you want to continue?

我继续回答“是”,但问题仍然存在。

编辑2:我尝试运行sudo apt-get install indicator-weather但收到以下错误消息。

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:
 indicator-weather : Depends: gir1.2-glib-2.0 but it is not installable
E: Broken packages

答案1

您的系统上有损坏的软件包。打开终端并输入

sudo apt-get install -f

这样就可以解决问题了。

抱歉,我没有对我的第一个回答发表评论,但我没有这个权限。

相关内容