为什么“indicator-datetime”的依赖关系中断了,我该如何修复它?

为什么“indicator-datetime”的依赖关系中断了,我该如何修复它?

我刚刚从 11.04 升级到 ubuntu 11.10,但时钟/日历没有出现在栏上。所以我发现它indicator-datetime没有安装。当我尝试安装它时,出现以下错误:

xxx@yyy:/$ sudo apt-get install indicator-datetime
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-datetime : Depends: libecal1.2-10 (>= 3.2.1) but 3.2.0-0ubuntu1 is to be installed
                      Depends: libedataserver1.2-15 (>= 3.2.1) but 3.2.0-0ubuntu1 is to be installed
                      Depends: libedataserverui-3.0-1 (>= 3.2.1) but 3.2.0-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

我不知道如何解决它。

答案1

当您更新了一些软件包但(当时)某些依赖项尚未构建并在存储库中可用时,就会出现此问题。

为了解决此问题,请刷新您的源(sudo apt-get update),然后indicator-datetime再次安装该包。

答案2

您缺少软件包。执行sudo apt-get install libecal1.2-10 libedataserver1.2-15 libedataserverui-3.0-1sudo apt-get install indicator-datetime再次运行。这次应该可以成功安装。

相关内容