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
是通过升级和安装软件包来升级系统。