Joh*_*ive 13 upgrade updates package-management xubuntu
我在尝试升级时保留了一个包裹:
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
mesa-opencl-icd:i386
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
Run Code Online (Sandbox Code Playgroud)
运行后apt list --upgradable我看到:
“还有 2 个附加版本。请使用‘-a’开关查看它们。”
所以我跑了apt list --upgradable -a然后我看到:
Listing... Done
mesa-opencl-icd/focal-updates,focal-security 21.2.6-0ubuntu0.1~20.04.2 i386 [upgradable from: 21.0.3-0ubuntu0.3~20.04.5]
mesa-opencl-icd/now 21.0.3-0ubuntu0.3~20.04.5 i386 [installed,upgradable to: 21.2.6-0ubuntu0.1~20.04.2]
mesa-opencl-icd/focal 20.0.4-2ubuntu1 i386
Run Code Online (Sandbox Code Playgroud)
经过搜索后,我看到了尝试解决此问题的各种方法,但它们涉及sudo apt-get dist-upgrade并且我相信这可能会导致问题。另外sudo apt-get install <list of packages kept back>,但我不想强制安装我的系统阻止我安装的东西。
我更愿意找出发生这种情况的原因,并解决依赖或冲突的问题。
我使用的是 Xubuntu 20.04.4 LTS
有人可以建议如何最好地解决这个特定问题吗?
编辑,之后没有运气sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libclang-common-12-dev
Use 'sudo apt autoremove' to remove it.
The following packages have been kept back:
mesa-opencl-icd:i386
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
libclang-common-12-dev
0 to upgrade, 0 to newly install, 1 to remove and 1 not to upgrade.
After this operation, 65.6 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 301137 files and directories currently installed.)
Removing libclang-common-12-dev (1:12.0.0-3ubuntu1~20.04.5) ...
$ sudo apt update
Hit:1 http://archive.canonical.com/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ apt list --upgradable
Listing... Done
mesa-opencl-icd/focal-updates,focal-security 21.2.6-0ubuntu0.1~20.04.2 i386 [upgradable from: 21.0.3-0ubuntu0.3~20.04.5]
rsync/focal-updates,focal-security 3.1.3-8ubuntu0.3 amd64 [upgradable from: 3.1.3-8ubuntu0.2]
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
mesa-opencl-icd:i386
The following packages will be upgraded:
rsync
1 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
1 standard security update
Need to get 318 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://gb.archive.ubuntu.com/ubuntu focal-updates/main amd64 rsync amd64 3.1.3-8ubuntu0.3 [318 kB]
Fetched 318 kB in 0s (2,728 kB/s)
(Reading database ... 300703 files and directories currently installed.)
Preparing to unpack .../rsync_3.1.3-8ubuntu0.3_amd64.deb ...
Unpacking rsync (3.1.3-8ubuntu0.3) over (3.1.3-8ubuntu0.2) ...
Setting up rsync (3.1.3-8ubuntu0.3) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.15) ...
$ sudo apt update
Hit:1 http://ppa.launchpad.net/libretro/stable/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
mesa-opencl-icd:i386
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
mesa-opencl-icd:i386
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
Run Code Online (Sandbox Code Playgroud)
Ati*_*Ali 23
这为我解决了问题:
sudo apt-get install aptitude
sudo aptitude safe-upgrade
Run Code Online (Sandbox Code Playgroud)
Nik*_*las 22
在我的系统上,我也有多个保留的软件包。就我而言,软件包没有更新 ( sudo apt-get dist-upgrade),因为更新是分阶段更新。
分阶段更新是一项安全功能:它们不会同时向所有用户推出;只有一些用户在开始时收到它们以报告潜在问题(有关更多信息,请参阅此答案)。
您可以通过运行来检查您的保留是否PackageA包含分阶段更新apt-cache policy PackageA。分阶段更新在“版本表”中以分阶段百分比表示。
| 归档时间: |
|
| 查看次数: |
33636 次 |
| 最近记录: |