首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >包裹不断地被拖延

包裹不断地被拖延
EN

Ask Ubuntu用户
提问于 2022-08-24 20:41:34
回答 2查看 5.2K关注 0票数 3

似乎最近当我去更新我的Ubuntu22.04机器时,我经常看到软件包似乎毫无理由地被阻止了。以下是最新消息:

代码语言:javascript
复制
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:

如果我想升级并指定软件包,安装就可以正常工作了。但是为什么这些阻碍呢?

EN

回答 2

Ask Ubuntu用户

发布于 2022-08-24 21:41:41

他们被称为分阶段更新。"APT现在实现了分阶段更新。以前,只有更新管理器实现了分阶段更新,而这只在桌面上使用-- APT的实现意味着这在服务器、raspberry pis和容器上也有效。这意味着某些更新将在某些机器上被阻止,而这些更新正在被分阶段进行。“https://discourse.ubuntu.com/t/phased-updates-in-apt-in-21-04/20345说。

票数 8
EN

Ask Ubuntu用户

发布于 2022-09-02 13:48:52

奇怪的是,这是最终的答案。没有立即显示的是创建/etc/apt/apt.conf.d/20分阶段更新:

代码语言:javascript
复制
// 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";
票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1425500

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档