只想将 Firefox 从 11.0 更新到最新版本的 13.0 ubuntu 也是这样做的:
$ sudo apt-get 升级 firefox
认为我的 Firefox 会升级。
相反,ubuntu 开始更新 看起来整个系统。现在我因为害怕而无法停止这个过程 如果我这样做可能会使系统处于不一致的状态。
我在发出正确的升级命令时哪里出错了 命令行中的单个包。好的,谢天谢地,15 分钟 随后命令成功返回。
升级和更新有什么区别?
谢谢
约翰·戈切
最佳答案
直接取自 apt-get 手册页:
update
update is used to resynchronize the package index files from their
sources. The indexes of available packages are fetched from the
location(s) specified in /etc/apt/sources.list. For example, when
using a Debian archive, this command retrieves and scans the
Packages.gz files, so that information about new and updated
packages is available. An update should always be performed before
an upgrade or dist-upgrade. Please be aware that the overall
progress meter will be incorrect as the size of the package files
cannot be known in advance.
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.
Update 用于更新 apt-get 软件包列表,upgrade 用于安装所有软件包的更新。要仅更新一个包,请使用 install。
sudo apt-get install firefox
关于linux - Ubuntu包管理(基础): sudo apt-get upgrade firefox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11494877/