我有最近的(~3-4周) Kubuntu安装(干净,不是升级)。
今天,我发现试图升级系统的报告中有50个软件包被阻止了:
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
消息,但是它列出了一个或两个包,我解决了以下问题:
sudo apt upgrade package1 package2 ...
但是,这一次似乎出现了依赖关系错误:
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
..。可能还会有一两次。
原因是什么,我怎样才能解决这个问题?
policy
用于plasma-workspace
的输出:
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
正如所接受的答案中所指出的,这个延迟升级是有意的和正常的-在发布问题两天后,所有的软件包都成功地升级到我的系统上。
发布于 2022-09-05 03:50:28
请参见apt-cache policy
输出中的行:
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
立即升级并跳过分阶段。https://askubuntu.com/questions/1427669
复制相似问题