为什么 dist-upgrade 和 upgrade 给出不同的保留包?

为什么 dist-upgrade 和 upgrade 给出不同的保留包?
sudo apt-get upgrade

给出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libavcodec54 libavformat54
0 to upgrade, 0 to newly install, 0 to remove and 2 not to 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:
  libavformat54
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.

为什么当我做正常操作时upgrade两者都被libavcodec54阻止libavformat54,但当我做操作时dist-upgrade只有 libavformat54被阻止?

答案1

因为它们的目的不同,APT是apt dist-upgrade通过升级、安装、卸载来升级系统;APTapt-get upgrade是通过只升级软件包来升级系统;APTapt upgrade是通过升级和安装软件包来升级系统。

相关内容