我的情况有点奇怪。通过升级到 22.04 以及我所做的所有其他恶作剧,我似乎最终在 22.04 系统上安装了 20.04 的软件包。每当我尝试修复此问题时(例如手动下载最新的 deb 并将其安装在我已有的 deb 上),似乎整个纸牌屋都倒塌了,apt 会删除从整个桌面环境到库和开发头文件的所有内容。
当我跑步时apt list --installed | grep 20.04
,我得到
david@david-pc:~$ apt list --installed | grep 20.04
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libcamera0/now 0.r3948.ged591e70-1~ubuntu20.04 amd64 [installed,local]
libfreeaptx0/now 0.1.1.r2.gc176b7d-2~ubuntu20.04 amd64 [installed,local]
libldacbt-abr2/now 2.0.2.3.r4.gaf2dd23-5~ubuntu20.04 amd64 [installed,local]
libldacbt-enc2/now 2.0.2.3.r4.gaf2dd23-5~ubuntu20.04 amd64 [installed,local]
libopenaptx0/now 0.2.0-9~ubuntu20.04 amd64 [installed,local]
libopenfec/now 1.4.2.4-5~ubuntu20.04 amd64 [installed,local]
libpipewire-0.3-0/now 0.3.59.r3.gd22feab-1~ubuntu20.04 amd64 [installed,local]
libpipewire-0.3-modules/now 0.3.59.r3.gd22feab-1~ubuntu20.04 amd64 [installed,local]
libroc/now 0.1.5.r41.gc896873-11~ubuntu20.04 amd64 [installed,local]
libspa-0.2-bluetooth/now 0.3.59.r3.gd22feab-1~ubuntu20.04 amd64 [installed,local]
libspa-0.2-jack/now 0.3.59.r3.gd22feab-1~ubuntu20.04 amd64 [installed,local]
libspa-0.2-modules/now 0.3.59.r3.gd22feab-1~ubuntu20.04 amd64 [installed,local]
libwireplumber-0.4-0/now 0.4.11.r31.g8fa1693-1~ubuntu20.04 amd64 [installed,local]
libyuv0/jammy,now 0.0~git20220104.b91df1a-2 amd64 [installed,automatic]
pipewire-alsa/now 0.3.59.r3.gd22feab-1~ubuntu20.04 amd64 [installed,local]
pipewire-audio-client-libraries/now 0.3.59.r3.gd22feab-1~ubuntu20.04 all [installed,local]
pipewire-bin/now 0.3.59.r3.gd22feab-1~ubuntu20.04 amd64 [installed,local]
pipewire-jack/now 0.3.59.r3.gd22feab-1~ubuntu20.04 amd64 [installed,local]
pipewire-locales/now 0.3.59.r3.gd22feab-1~ubuntu20.04 all [installed,local]
pipewire-pulse/now 0.3.59.r3.gd22feab-1~ubuntu20.04 amd64 [installed,local]
pipewire/now 0.3.59.r3.gd22feab-1~ubuntu20.04 amd64 [installed,local]
solaar/now 1.1.5~ubuntu20.04.1 all [installed,local]
wireplumber/now 0.4.11.r31.g8fa1693-1~ubuntu20.04 amd64 [installed,local]
x11proto-core-dev/now 2021.5-3~ubuntu20.04 all [installed,local]
x11proto-dev/now 2021.5-3~ubuntu20.04 all [installed,local]
在我升级到 22.04 之前,似乎大多数软件包都与使用 pipewire 反向移植 PPA(现已禁用)有关。有什么办法可以解决这个问题吗?
apt-cache policy
编辑:认为将其中一个包包含在内可能会有所帮助
david@david-pc:~/Downloads$ apt-cache policy pipewire
pipewire:
Installed: 0.3.59.r3.gd22feab-1~ubuntu20.04
Candidate: 0.3.59.r3.gd22feab-1~ubuntu20.04
Version table:
*** 0.3.59.r3.gd22feab-1~ubuntu20.04 100
100 /var/lib/dpkg/status
0.3.48-1ubuntu2 500
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
0.3.48-1ubuntu1 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
编辑:修复了大部分问题,但仍有几个包存在。以下是apt-cache policy
它们的输出
david@david-pc:~$ apt-cache policy libopenaptx0
libopenaptx0:
Installed: 0.2.0-9~ubuntu20.04
Candidate: 0.2.0-9~ubuntu20.04
Version table:
*** 0.2.0-9~ubuntu20.04 100
100 /var/lib/dpkg/status
0.2.0-6 500
500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
david@david-pc:~$ apt-cache policy libopenfec
libopenfec:
Installed: 1.4.2.4-5~ubuntu20.04
Candidate: 1.4.2.4-5~ubuntu20.04
Version table:
*** 1.4.2.4-5~ubuntu20.04 100
100 /var/lib/dpkg/status
1.4.2.4-4~ubuntu22.04 500
500 https://ppa.launchpadcontent.net/pipewire-debian/pipewire-upstream/ubuntu jammy/main
david@david-pc:~$ apt-cache policy libroc
libroc:
Installed: 0.1.5.r41.gc896873-11~ubuntu20.04
Candidate: 0.1.5.r41.gc896873-11~ubuntu20.04
Version table:
*** 0.1.5.r41.gc896873-11~ubuntu20.04 100
100 /var/lib/dpkg/status
0.1.5.r41.gc896873-10~ubuntu22.04 500
500 https://ppa.launchpadcontent.net/pipewire-debian/pipewire-upstream/ubuntu jammy/main amd64 Packages