首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >22.04中不可升级的软件包

22.04中不可升级的软件包
EN

Ask Ubuntu用户
提问于 2022-09-05 11:19:36
回答 1查看 333关注 0票数 2

我有最近的(~3-4周) Kubuntu安装(干净,不是升级)。

今天,我发现试图升级系统的报告中有50个软件包被阻止了:

代码语言:javascript
运行
复制
user@machine:~$ sudo apt update 
Hit:1 https://swupdate.openvpn.net/community/openvpn3/repos jammy InRelease
Hit:2 http://ro.archive.ubuntu.com/ubuntu jammy InRelease                                                     
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 http://ro.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://ro.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
50 packages can be upgraded. Run 'apt list --upgradable' to see them.

user@machine:~$ 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:
  kde-config-sddm kde-config-updates kde-style-oxygen-qt5 kinfocenter ksystemstats kwin-common kwin-data kwin-x11 layer-shell-qt libcolorcorrect5 libkf5sysguard-data libkfontinst5 libkfontinstui5 libksgrd9
  libksysguardformatter1 libksysguardsensorfaces1 libksysguardsensors1 libksysguardsystemstats1 libkwaylandserver5 libkwineffects13 libkwinglutils13 libkwinxrenderutils13 libkworkspace5-5 liblayershellqtinterface5
  libnotificationmanager1 liboxygenstyle5-5 liboxygenstyleconfig5-5 libplasma-geolocation-interface5 libprocesscore9 libprocessui9 libtaskmanager6 libweather-ion7 milou oxygen-sounds php8.1-cli php8.1-common php8.1-opcache
  php8.1-readline plasma-desktop plasma-desktop-data plasma-discover plasma-discover-backend-fwupd plasma-discover-backend-snap plasma-discover-common plasma-nm plasma-pa plasma-workspace qml-module-org-kde-ksysguard
  systemsettings xdg-desktop-portal-kde
0 upgraded, 0 newly installed, 0 to remove and 50 not upgraded.

自从操作系统安装以来,我已经收到了两次packages have been kept back消息,但是它列出了一个或两个包,我解决了以下问题:

代码语言:javascript
运行
复制
sudo apt upgrade package1 package2 ...

但是,这一次似乎出现了依赖关系错误:

代码语言:javascript
运行
复制
user@machine:~$ sudo apt upgrade systemsettings
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 plasma-workspace : Depends: libkworkspace5-5 (= 4:5.24.4-0ubuntu1) but 4:5.24.6-0ubuntu0.1 is to be installed
E: Broken packages

我试过的是:

  • apt update
  • apt install -f
  • apt clean
  • rm /var/cache/apt/archives/*.deb && rm -R /var/cache/apt/archives/partial
  • apt upgrade --fix-missing
  • apt upgrade --fix-broken
  • apt --fix-broken install

..。可能还会有一两次。

原因是什么,我怎样才能解决这个问题?

稍后编辑#1:

policy用于plasma-workspace的输出:

代码语言:javascript
运行
复制
apt-cache policy plasma-workspace
plasma-workspace:
  Installed: 4:5.24.4-0ubuntu1
  Candidate: 4:5.24.6-0ubuntu0.1
  Version table:
     4:5.24.6-0ubuntu0.1 500 (phased 10%)
        500 http://ro.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
 *** 4:5.24.4-0ubuntu1 500
        500 http://ro.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

稍后编辑#2:

正如所接受的答案中所指出的,这个延迟升级是有意的和正常的-在发布问题两天后,所有的软件包都成功地升级到我的系统上。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2022-09-05 11:50:28

请参见apt-cache policy输出中的行:

代码语言:javascript
运行
复制
  Version table:
     4:5.24.6-0ubuntu0.1 500 (phased 10%)

让我们关注这个(phased 10%):这意味着包正在执行Phased更新

There对您的系统没有什么问题。什么都没坏。

分阶段更新在一周左右的时间内进行。早期采用者可以报告问题,允许开发人员撤回导致意外问题的更新。它可以防止失败的升级影响到数百万用户。失败的升级是非常罕见的,但已经发生在过去。

这是一个安全特性。不要试图打败它。让它工作

如果您今天忽略它,分阶段更新将在几天内自动完成,您的系统将在几天内正常更新/升级,并且将不再有“保留”软件包。

  • 想要测试升级和报告问题的高级用户可以使用apt -o APT::Get::Always-Include-Phased-Updates=true upgrade立即升级并跳过分阶段。
票数 4
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1427669

复制
相关文章

相似问题

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