dist-upgrade 不是升级发行版吗
1. 升级发行版 需要升級
/etc/apt/sources.list
1-1. desktop : tty7 ~ tty12
http://manpages.ubuntu.com/manpages/viv ... ger.8.html
update-manager - graphical management of software packages updates
1-2. console : tty1 ~ tty6
http://manpages.ubuntu.com/manpages/viv ... ade.8.html
do-release-upgrade - upgrade operating system to latest release
1-3. 上面兩個指令 都包含升級
/etc/apt/sources.list的程序
2. upgrade,
dist-upgrade 沒有包含升級 /etc/apt/sources.list 的程序
http://manpages.ubuntu.com/manpages/viv ... get.8.html
apt-get - APT package handling utility -- command-line interface
2-1. upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
2-2.
dist-upgrade
dist-upgrade in addition to performing the function of upgrade,
also intelligently handles changing dependencies with new versions
of packages; apt-get has a "smart" conflict resolution system, and
it will attempt to upgrade the most important packages at the
expense of less important ones if necessary. The dist-upgrade
command may therefore remove some packages. The
/etc/apt/sources.list file contains a list of locations from which
to retrieve desired package files. See also apt_preferences(5) for
a mechanism for overriding the general settings for individual
packages.
3. 2-3. 簡單的說
http://manpages.ubuntu.com/manpages/pre ... ude.8.html
aptitude - high-level interface to the package manager
2-3-1. apt-get upgrade 類似 aptitude safe-upgrade
碰到相依套件版本未滿足時 放棄升級 維持原版本
所以有 下列软件包的版本将保持不变 的訊息
2-3-2. apt-get dist-upgrade 類似 aptitude full-upgrade
碰到相依套件版本未滿足時 企圖解決該問題
如果有必要 強制下載/更替相依套件版本未滿足的套件
儘量達成升級該套件到新版本
2-3-2-1. 這個指令 有時會造成不穩定狀態 所以使用要小心
事先備存整個系統 有備無患