似乎最近当我去更新我的Ubuntu22.04机器时,我经常看到软件包似乎毫无理由地被阻止了。以下是最新消息:
Earth:sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gnome-control-center gnome-control-center-data gnome-control-center-faces
libapache2-mod-php8.1 php8.1 php8.1-cgi php8.1-cli php8.1-common
php8.1-mysql php8.1-opcache php8.1-readline
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Earth:如果我想升级并指定软件包,安装就可以正常工作了。但是为什么这些阻碍呢?
发布于 2022-08-24 21:41:41
他们被称为分阶段更新。"APT现在实现了分阶段更新。以前,只有更新管理器实现了分阶段更新,而这只在桌面上使用-- APT的实现意味着这在服务器、raspberry pis和容器上也有效。这意味着某些更新将在某些机器上被阻止,而这些更新正在被分阶段进行。“https://discourse.ubuntu.com/t/phased-updates-in-apt-in-21-04/20345说。
发布于 2022-09-02 13:48:52
奇怪的是,这是最终的答案。没有立即显示的是创建/etc/apt/apt.conf.d/20分阶段更新:
// To have all your machines phase the same, set the same string in this field
// If commented out, apt will use /etc/machine-id to seed the random number generator
APT::Machine-ID "aaaabbbbccccddddeeeeffff";
// Always include phased updates (Default = 1)
APT::Get::Always-Include-Phased-Updates "1";
// Never include phased updates
# APT::Get::Never-Include-Phased-Updates "0";https://askubuntu.com/questions/1425500
复制相似问题