我收到此消息:
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
我如何找出哪些软件包未升级,以及原因是什么?
在许多类似的输出中这,它还会打印类似的内容The following packages have been kept back:
,但在我的情况下不是这样。
此外:
$ sudo apt list --upgradable
Listing... Done
此外:
sudo apt-get dist-upgrade --dry-run
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
和:
sudo apt-get full-upgrade --dry-run
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
apt-cache policy
日志这里。
答案1
不会被升级的两个软件包已被固定,以防止它们被升级。
从输出的末尾apt-cache policy
:
Pinned packages:
nsight-compute -> 10.1.243-3 with priority -1
nsight-systems -> 10.1.243-3 with priority -1