"下列软件包的版本将保持不变"是什么意思?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
qq420100523
帖子: 1684
注册时间: 2009-07-31 18:56
系统: windows、ubuntu
来自: 广东阳江

"下列软件包的版本将保持不变"是什么意思?

#1

帖子 qq420100523 » 2017-11-25 2:51

代码: 全选

~$ sudo apt-get upgrade 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
正在计算更新... 完成
下列软件包的版本将保持不变:
  linux-generic-hwe-16.04 linux-headers-generic-hwe-16.04
  linux-image-generic-hwe-16.04 linux-signed-generic-hwe-16.04
  linux-signed-image-generic-hwe-16.04
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: "下列软件包的版本将保持不变"是什么意思?

#2

帖子 poloshiao » 2017-11-25 9:58

sudo apt-get upgrade
...
下列软件包的版本将保持不变:
linux-generic-hwe-16.04 linux-headers-generic-hwe-16.04
linux-image-generic-hwe-16.04 linux-signed-generic-hwe-16.04
linux-signed-image-generic-hwe-16.04
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 5 个软件包未被升级。
1. 簡化來說 有遞迴相依套件 不滿足 (包含 版本 不滿足) 所以放棄升級 保持原版本
1-1. 詳細參閱
http://manpages.ubuntu.com/manpages/xen ... get.8.html
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. 如果你進一步執行
sudo apt-get dist-upgrade
則它會嘗試上網去把 相依套件 不滿足 (包含 版本不滿足) 的遞迴套件 下載來安裝 然後再把剛剛放棄升級的套件 完成升級
2-1. 在 上述過程 也許會移除一些已安裝套件 (包含 版本)影響 系統能否繼續穩定 所以 新手 請謹慎為之
2-2. 詳細參閱
http://manpages.ubuntu.com/manpages/xen ... get.8.html
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.
头像
qq420100523
帖子: 1684
注册时间: 2009-07-31 18:56
系统: windows、ubuntu
来自: 广东阳江

Re: "下列软件包的版本将保持不变"是什么意思?

#3

帖子 qq420100523 » 2017-11-25 11:06

poloshiao, 能否查出这5个包与什么软件相依赖?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: "下列软件包的版本将保持不变"是什么意思?

#4

帖子 poloshiao » 2017-11-25 19:36

能否查出这5个包与什么软件相依赖?
1. 使用指令 apt-rdepends
1-1. 安裝 apt-rdepends 套件
1-2. sudo apt-rdepends 套件名稱
可以列出所有 該套件 遞迴相依的套件
1-2-1. 例如
sudo apt-rdepends linux-generic-hwe-16.04
可以列出所有 linux-generic-hwe-16.04 遞迴相依的套件
1-3. 參閱
http://manpages.ubuntu.com/manpages/xen ... nds.1.html
apt-rdepends - performs recursive dependency listings similar to apt-cache

2. 使用網頁
例如 linux-generic-hwe-16.04
2-1. https://packages.ubuntu.com/xenial/linu ... -hwe-16.04
2-2. https://packages.ubuntu.com/xenial/linu ... -hwe-16.04
2-3. https://packages.ubuntu.com/xenial/linu ... -hwe-16.04
...
回复