0 个已升级,0 个已新安装,0 个已删除,1 个未升级

0 个已升级,0 个已新安装,0 个已删除,1 个未升级

当我更新和升级时,我显示这些行以下包已被保留: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 upgradesudo apt-get dist-upgrade

最后一点,如果没有什么可升级,那么它就不会升级任何东西。

相关内容