为什么禁用了Software Updater中的某些复选框?


9

在Ubuntu 13.04中,软件更新程序将某些应用程序显示为具有更新,但它们是不可选择的:

尚不清楚它们为什么变灰。

在命令行上:

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  gnuplot-nox gnuplot-x11 nvidia-current
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

还要注意,运行apt-get dist-upgrade也不会导致它们被安装,就像有时保留的软件包一样。这是输出:

$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  gnuplot-nox gnuplot-x11 nvidia-current
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

我接受了@quidage的建议,它给出了以下内容。但是,随后的升级显示相同的消息:

$ 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 3 not upgraded.

你尝试了sudo apt-get install -f吗?也许您已经打破了依赖关系。
herrhansen13年

@quidage,我尝试了您的建议,但没有效果。我已经用观察到的输出编辑了问题。
Drew Noakes 2013年

Answers:


2

The following packages have been kept back:通常意味着您具有升级而不是软件包更新

sudo apt-get dist-upgrade

将解决此问题。它将显示以下消息...

The following NEW packages will be installed:

The following packages will be upgraded:

谢谢,但是dist-upgrade对我在问题编辑中提到的问题(可能是在您回答问题的时间中提到的内容)没有帮助。我会将输出内容包括在问题中。
Drew Noakes 2013年

0

检查包裹的状态:

dpkg --get-selections | grep "name of your package"

如果显示状态hold,则无法选中“软件更新程序”窗口中的复选框。

删除hold运行

sudo apt-mark unhold "name of your package"

dpkg所有保留的软件包返回的状态install在我的机器上。还有其他想法吗?
Drew Noakes

0

我也有这个:

$ dpkg --get-selections | grep "gnuplot-nox"
gnuplot-nox                 install

我所做的就是跑步

$ sudo aptitude update
$ sudo aptitude upgrade

aptitude决定卸载gnuplot-nox。之后,我必须安装gnuplot软件包。我不知道怎么回事,艰难。


他们之前是否被标记为保留?我没有尝试aptitude直接使用。下次看到此问题时,我也会尝试。
Drew Noakes
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.