![0 个已升级,0 个已新安装,0 个已删除,1 个未升级](https://linux22.com/image/876106/0%20%E4%B8%AA%E5%B7%B2%E5%8D%87%E7%BA%A7%EF%BC%8C0%20%E4%B8%AA%E5%B7%B2%E6%96%B0%E5%AE%89%E8%A3%85%EF%BC%8C0%20%E4%B8%AA%E5%B7%B2%E5%88%A0%E9%99%A4%EF%BC%8C1%20%E4%B8%AA%E6%9C%AA%E5%8D%87%E7%BA%A7%20.png)
当我更新和升级时,我显示这些行以下包已被保留:mysql-utilities 0 升级,0 新安装,0 删除和 1 未升级。
但是当我使用 dist-grade 时,我会显示以下几行
sudo apt-get dist-upgrade
[sudo] password for anki:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get upgrade
[sudo] password for anki:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
mysql-utilities
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
无法升级
答案1
在更新或安装某些东西之前,第一步总是运行sudo apt-get update
第二步是运行你的sudo apt-get upgrade
或sudo apt-get dist-upgrade
最后一点,如果没有什么可升级,那么它就不会升级任何东西。