包装系统已损坏

包装系统已损坏

我目前正在运行 Ubuntu 22.04.2 LTS,并开启 livepatch 和 Pro,但我的包管理器坏了。

包裹破损

几周以来,我的软件包系统一直存在问题。我认为它可能是在我尝试安装 wine 时开始的,但从错误输出中我没有看到与该尝试相关的任何问题。无论如何尝试使用更新程序运行更新,结果如下:

我已经删除了所有第三方软件包源以及更新程序中的所有“其他软件”源,因此更新运行正常并返回:

Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease 
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease 
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease Reading package lists... Done 
Building dependency tree... Done 
Reading state information... Done 
22 packages can be upgraded. Run 'apt list --upgradable' to see them.

升级显然不起作用并导致 gstreamer1.0-plugins-bad 的依赖关系未得到满足:

The following packages have unmet dependencies: gstreamer1.0-plugins-bad : 
Depends: libldacbt-enc2 (>= 2.0.2) but it is not installed 
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

与 -f 标志相同,运行“apt --fix-broken install”会出现类似的错误:

Unpacking libldacbt-enc2:amd64 (2.0.2.3+git20200429+ed310a0-4) ... dpkg: error processing archive /var/cache/apt/archives/libldacbt-enc2_2.0.2.3+gi t20200429+ed310a0-4_amd64.deb (--unpack): trying to overwrite '/usr/lib/x86_64-linux-gnu/libldacBT_enc.so.2', which is al so in package libldac:amd64 2.0.2.3~r26478861 
Errors were encountered while processing: /var/cache/apt/archives/libldacbt-enc2_2.0.2.3+git20200429+ed310a0-4_amd64.deb 
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试删除存档内容:/var/cache/apt/archives/libldacbt-enc2_2.0.2.3+git20200429+ed310a0-4_amd64.deb,按照其他地方的建议,但无济于事,因为修复损坏的安装会产生与以前相同的错误。“dist upgrade”也是如此

我也尝试清除 gstreamer1.0-plugins bad 和 libldacbtenc,但没有结果。

我正在为我的 GeForce GTX 1050 Ti Mobile 使用专有 NVIDIA 驱动程序 nvidia-driver-525(专有),尝试更改为 530 得到的结果:

pk-client-error-quark: Error while installing package: trying to overwrite 'usr/lib/x86_64-linux-gnu/libldacBT_enc.so.2', which is also in package libldac (313) ran apt-clean then update-m and then dpkg
--configure -a gave: 
Errors were encountered while processing: gstreamer1.0-plugins-bad:amd64 pulseeffects

然后运行 ​​sudo apt list --upgradable:

Listing... Done apt-transport-https/jammy-updates,jammy-updates 2.4.9 all [upgradable from: 2.4.8] dnsmasq-base/jammy-updates,jammy-security
2.86-1.1ubuntu0.3 amd64 [upgradable from: 2.86-1.1ubuntu0.2] ipp-usb/jammy-updates,jammy-security 0.9.20-1ubuntu0.22.04.1 amd64 [upgradable from: 0.9.20-1] libglib2.0-0/jammy-updates 2.72.4-0ubuntu2 amd64 [upgradable from: 2.72.4-0ubuntu1] libglib2.0-0/jammy-updates
2.72.4-0ubuntu2 i386 [upgradable from: 2.72.4-0ubuntu1] libglib2.0-bin/jammy-updates 2.72.4-0ubuntu2 amd64 [upgradable from:
2.72.4-0ubuntu1] libglib2.0-data/jammy-updates,jammy-updates 2.72.4-0ubuntu2 all [upgradable from: 2.72.4-0ubuntu1] libssl3/jammy-updates,jammy-security 3.0.2-0ubuntu1.9 amd64 [upgradable from: 3.0.2-0ubuntu1.8] libssl3/jammy-updates,jammy-security 3.0.2-0ubuntu1.9 i386 [upgradable from: 3.0.2-0ubuntu1.8] linux-generic/jammy-updates,jammy-security
5.15.0.71.69 amd64 [upgradable from: 5.15.0.69.67] linux-headers-generic/jammy-updates,jammy-security 5.15.0.71.69 amd64 [upgradable from: 5.15.0.69.67] linux-image-generic/jammy-updates,jammy-security 5.15.0.71.69 amd64 [upgradable from: 5.15.0.69.67] linux-libc-dev/jammy-updates,jammy-security 5.15.0-71.78 amd64 [upgradable from: 5.15.0-69.76] linux-modules-nvidia-525-generic/jammy-updates,jammy-security
5.15.0-71.78 amd64 [upgradable from: 5.15.0-69.76+1] openssl/jammy-updates,jammy-security 3.0.2-0ubuntu1.9 amd64 [upgradable from: 3.0.2-0ubuntu1.8] tzdata/jammy-updates,jammy-updates 2023c-0ubuntu0.22.04.1 all [upgradable from: 2023c-0ubuntu0.22.04.0] ubuntu-advantage-tools/jammy-updates 27.14.4~22.04 amd64 [upgradable from: 27.13.6~22.04.1] vim-common/jammy-updates,jammy-updates,jammy-security,jammy-security 2:8.2.3995-1ubuntu2.7 all [upgradable from: 2:8.2.3995-1ubuntu2.5] vim-runtime/jammy-updates,jammy-updates,jammy-security,jammy-security 2:8.2.3995-1ubuntu2.7 all [upgradable from: 2:8.2.3995-1ubuntu2.5] vim-tiny/jammy-updates,jammy-security 2:8.2.3995-1ubuntu2.7 amd64 [upgradable from: 2:8.2.3995-1ubuntu2.5] vim/jammy-updates,jammy-security 2:8.2.3995-1ubuntu2.7 amd64 [upgradable from: 2:8.2.3995-1ubuntu2.5] xxd/jammy-updates,jammy-security 2:8.2.3995-1ubuntu2.7 amd64 [upgradable from: 2:8.2.3995-1ubuntu2.5] then apt upgrade -f: Reading package lists... Done Building dependency tree... Done Reading state information... Done Correcting dependencies... Done Calculating upgrade... Done Get more security updates through Ubuntu Pro with 'esm-apps' enabled: libimage-magick-perl imagemagick libjs-jquery-ui libavdevice58 ffmpeg libopenexr25 libmagick++-6.q16-8 libpostproc55 libmagickcore-6.q16-6-extra libimage-magick-q16-perl libmagickwand-6.q16-6 libavcodec-extra58 libpython2.7 libavutil56 imagemagick-6.q16 libswscale5 libmagickcore-6.q16-6 libswresample3 imagemagick-6-common libavformat58 libpython2.7-minimal libpython2.7-stdlib libavfilter7 Learn more about Ubuntu Pro at https://ubuntu.com/pro The following NEW packages will be installed: libldacbt-enc2 linux-headers-5.15.0-71 linux-headers-5.15.0-71-generic linux-image-5.15.0-71-generic linux-modules-5.15.0-71-generic linux-modules-extra-5.15.0-71-generic linux-modules-nvidia-525-5.15.0-71-generic linux-objects-nvidia-525-5.15.0-71-generic linux-signatures-nvidia-5.15.0-71-generic The following packages will be upgraded: apt-transport-https dnsmasq-base ipp-usb libglib2.0-0 libglib2.0-0:i386 libglib2.0-bin libglib2.0-data libssl3 libssl3:i386 linux-generic linux-headers-generic linux-image-generic linux-libc-dev linux-modules-nvidia-525-generic openssl tzdata ubuntu-advantage-tools vim vim-common vim-runtime vim-tiny xxd 22 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. 15 standard LTS security updates Need to get 193 MB/193 MB of archives. After this operation, 729 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libglib2.0-bin amd64 2.72.4-0ubuntu2 [80.9 kB] Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 libglib2.0-0 i386 2.72.4-0ubuntu2 [1,567 kB] Get:3 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libglib2.0-0 amd64 2.72.4-0ubuntu2 [1,462 kB] Get:4 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libglib2.0-data all 2.72.4-0ubuntu2 [4,968 B] Get:5 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 libssl3 i386 3.0.2-0ubuntu1.9 [1,943 kB] Get:6 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libssl3 amd64 3.0.2-0ubuntu1.9 [1,902 kB] Get:7 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 openssl amd64 3.0.2-0ubuntu1.9 [1,185 kB] Get:8 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 tzdata all 2023c-0ubuntu0.22.04.1 [354 kB] Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-advantage-tools amd64 27.14.4~22.04 [171 kB] Get:10 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 vim amd64 2:8.2.3995-1ubuntu2.7 [1,728 kB] Get:11 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 vim-tiny amd64 2:8.2.3995-1ubuntu2.7 [707 kB] Get:12 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 vim-runtime all 2:8.2.3995-1ubuntu2.7 [6,825 kB] Get:13 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 xxd amd64 2:8.2.3995-1ubuntu2.7 [53.7 kB] Get:14 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 vim-common all 2:8.2.3995-1ubuntu2.7 [81.5 kB] Get:15 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 apt-transport-https all 2.4.9 [1,510 B] Get:16 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 dnsmasq-base amd64 2.86-1.1ubuntu0.3 [354 kB] Get:17 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ipp-usb amd64 0.9.20-1ubuntu0.22.04.1 [2,017 kB] Get:18 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-modules-5.15.0-71-generic amd64 5.15.0-71.78 [23.2 MB] Get:19 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-image-5.15.0-71-generic amd64 5.15.0-71.78 [11.4 MB] Get:20 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-modules-extra-5.15.0-71-generic amd64 5.15.0-71.78 [64.3 MB] Get:21 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-generic amd64 5.15.0.71.69 [1,696 B] Get:22 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-image-generic amd64 5.15.0.71.69 [2,492 B] Get:23 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-headers-5.15.0-71 all 5.15.0-71.78 [12.3 MB] Get:24 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-headers-5.15.0-71-generic amd64 5.15.0-71.78 [2,884 kB] Get:25 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-headers-generic amd64 5.15.0.71.69 [2,346 B] Get:26 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-libc-dev amd64 5.15.0-71.78 [1,323 kB] Get:27 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 linux-signatures-nvidia-5.15.0-71-generic amd64 5.15.0-71.78 [35.1 kB] Get:28 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 linux-objects-nvidia-525-5.15.0-71-generic amd64 5.15.0-71.78 [56.7 MB] Get:29 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 linux-modules-nvidia-525-5.15.0-71-generic amd64 5.15.0-71.78 [7,022 B] Get:30 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 linux-modules-nvidia-525-generic amd64 5.15.0-71.78 [5,354 B] Fetched 193 MB in 36s (5,317 kB/s) Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 315821 files and directories currently installed.) Preparing to unpack .../00-libglib2.0-bin_2.72.4-0ubuntu2_amd64.deb ... Unpacking libglib2.0-bin (2.72.4-0ubuntu2) over (2.72.4-0ubuntu1) ... Preparing to unpack .../01-libglib2.0-0_2.72.4-0ubuntu2_amd64.deb ... De-configuring libglib2.0-0:i386 (2.72.4-0ubuntu1), to allow configuration of li bglib2.0-0:amd64 (2.72.4-0ubuntu1) ... Unpacking libglib2.0-0:amd64 (2.72.4-0ubuntu2) over (2.72.4-0ubuntu1) ... Preparing to unpack .../02-libglib2.0-0_2.72.4-0ubuntu2_i386.deb ... Unpacking libglib2.0-0:i386 (2.72.4-0ubuntu2) over (2.72.4-0ubuntu1) ... Preparing to unpack .../03-libglib2.0-data_2.72.4-0ubuntu2_all.deb ... Unpacking libglib2.0-data (2.72.4-0ubuntu2) over (2.72.4-0ubuntu1) ... Preparing to unpack .../04-libldacbt-enc2_2.0.2.3+git20200429+ed310a0-4_amd64.de b ... Unpacking libldacbt-enc2:amd64 (2.0.2.3+git20200429+ed310a0-4) ... dpkg: error processing archive /tmp/apt-dpkg-install-PANafk/04-libldacbt-enc2_2.
0.2.3+git20200429+ed310a0-4_amd64.deb (--unpack): trying to overwrite '/usr/lib/x86_64-linux-gnu/libldacBT_enc.so.2', which is al so in package libldac:amd64 2.0.2.3~r26478861 Preparing to unpack .../05-libssl3_3.0.2-0ubuntu1.9_amd64.deb ... De-configuring libssl3:i386 (3.0.2-0ubuntu1.8), to allow configuration of libssl 3:amd64 (3.0.2-0ubuntu1.8) ... Unpacking libssl3:amd64 (3.0.2-0ubuntu1.9) over (3.0.2-0ubuntu1.8) ... Preparing to unpack .../06-libssl3_3.0.2-0ubuntu1.9_i386.deb ... Unpacking libssl3:i386 (3.0.2-0ubuntu1.9) over (3.0.2-0ubuntu1.8) ... Preparing to unpack .../07-openssl_3.0.2-0ubuntu1.9_amd64.deb ... Unpacking openssl (3.0.2-0ubuntu1.9) over (3.0.2-0ubuntu1.8) ... Preparing to unpack .../08-tzdata_2023c-0ubuntu0.22.04.1_all.deb ... Unpacking tzdata (2023c-0ubuntu0.22.04.1) over (2023c-0ubuntu0.22.04.0) ... Preparing to unpack .../09-ubuntu-advantage-tools_27.14.4~22.04_amd64.deb ... Unpacking ubuntu-advantage-tools (27.14.4~22.04) over (27.13.6~22.04.1) ... Preparing to unpack .../10-vim_2%3a8.2.3995-1ubuntu2.7_amd64.deb ... Unpacking vim (2:8.2.3995-1ubuntu2.7) over (2:8.2.3995-1ubuntu2.5) ... Preparing to unpack .../11-vim-tiny_2%3a8.2.3995-1ubuntu2.7_amd64.deb ... Unpacking vim-tiny (2:8.2.3995-1ubuntu2.7) over (2:8.2.3995-1ubuntu2.5) ... Preparing to unpack .../12-vim-runtime_2%3a8.2.3995-1ubuntu2.7_all.deb ... Unpacking vim-runtime (2:8.2.3995-1ubuntu2.7) over (2:8.2.3995-1ubuntu2.5) ... Preparing to unpack .../13-xxd_2%3a8.2.3995-1ubuntu2.7_amd64.deb ... Unpacking xxd (2:8.2.3995-1ubuntu2.7) over (2:8.2.3995-1ubuntu2.5) ... Preparing to unpack .../14-vim-common_2%3a8.2.3995-1ubuntu2.7_all.deb ... Unpacking vim-common (2:8.2.3995-1ubuntu2.7) over (2:8.2.3995-1ubuntu2.5) ... Preparing to unpack .../15-apt-transport-https_2.4.9_all.deb ... Unpacking apt-transport-https (2.4.9) over (2.4.8) ... Preparing to unpack .../16-dnsmasq-base_2.86-1.1ubuntu0.3_amd64.deb ... Unpacking dnsmasq-base (2.86-1.1ubuntu0.3) over (2.86-1.1ubuntu0.2) ... Preparing to unpack .../17-ipp-usb_0.9.20-1ubuntu0.22.04.1_amd64.deb ... Unpacking ipp-usb (0.9.20-1ubuntu0.22.04.1) over (0.9.20-1) ... Selecting previously unselected package linux-modules-5.15.0-71-generic. Preparing to unpack .../18-linux-modules-5.15.0-71-generic_5.15.0-71.78_amd64.de b ... Unpacking linux-modules-5.15.0-71-generic (5.15.0-71.78) ... Selecting previously unselected package linux-image-5.15.0-71-generic. Preparing to unpack .../19-linux-image-5.15.0-71-generic_5.15.0-71.78_amd64.deb ... Unpacking linux-image-5.15.0-71-generic (5.15.0-71.78) ... Selecting previously unselected package linux-modules-extra-5.15.0-71-generic. Preparing to unpack .../20-linux-modules-extra-5.15.0-71-generic_5.15.0-71.78_am d64.deb ... Unpacking linux-modules-extra-5.15.0-71-generic (5.15.0-71.78) ... Preparing to unpack .../21-linux-generic_5.15.0.71.69_amd64.deb ... Unpacking linux-generic (5.15.0.71.69) over (5.15.0.69.67) ... Preparing to unpack .../22-linux-image-generic_5.15.0.71.69_amd64.deb ... Unpacking linux-image-generic (5.15.0.71.69) over (5.15.0.69.67) ... Selecting previously unselected package linux-headers-5.15.0-71. Preparing to unpack .../23-linux-headers-5.15.0-71_5.15.0-71.78_all.deb ... Unpacking linux-headers-5.15.0-71 (5.15.0-71.78) ... Selecting previously unselected package linux-headers-5.15.0-71-generic. Preparing to unpack .../24-linux-headers-5.15.0-71-generic_5.15.0-71.78_amd64.de b ... Unpacking linux-headers-5.15.0-71-generic (5.15.0-71.78) ... Preparing to unpack .../25-linux-headers-generic_5.15.0.71.69_amd64.deb ... Unpacking linux-headers-generic (5.15.0.71.69) over (5.15.0.69.67) ... Preparing to unpack .../26-linux-libc-dev_5.15.0-71.78_amd64.deb ... Unpacking linux-libc-dev:amd64 (5.15.0-71.78) over (5.15.0-69.76) ... Selecting previously unselected package linux-signatures-nvidia-5.15.0-71-generi c. Preparing to unpack .../27-linux-signatures-nvidia-5.15.0-71-generic_5.15.0-71.7 8_amd64.deb ... Unpacking linux-signatures-nvidia-5.15.0-71-generic (5.15.0-71.78) ... Selecting previously unselected package linux-objects-nvidia-525-5.15.0-71-gener ic. Preparing to unpack .../28-linux-objects-nvidia-525-5.15.0-71-generic_5.15.0-71. 78_amd64.deb ... Unpacking linux-objects-nvidia-525-5.15.0-71-generic (5.15.0-71.78) ... Selecting previously unselected package linux-modules-nvidia-525-5.15.0-71-gener ic. Preparing to unpack .../29-linux-modules-nvidia-525-5.15.0-71-generic_5.15.0-71. 78_amd64.deb ... Unpacking linux-modules-nvidia-525-5.15.0-71-generic (5.15.0-71.78) ... Preparing to unpack .../30-linux-modules-nvidia-525-generic_5.15.0-71.78_amd64.d eb ... Unpacking linux-modules-nvidia-525-generic (5.15.0-71.78) over (5.15.0-69.76+1) ... 
Errors were encountered while processing: /tmp/apt-dpkg-install-PANafk/04-libldacbt-enc2_2.0.2.3+git20200429+ed310a0-4_am d64.deb

我的日志只追溯到本月 7 号,并没有提到 wine 安装。

似乎删除:linux-modules-nvidia-525-5.15.0-60-generic:amd64 (5.15.0-60.66)

提示

错误:子进程 /usr/bin/dpkg 返回错误代码 (1)

这是来自 packagekit role='install-packages'

基本上,自动删除、清除等都会一次又一次地抛出相同的错误。

感谢您的阅读,我非常感激您提供的任何建议。

**

更新

**

以下是 apt policy gstreamer1.0-plugins-bad 的输出:

gstreamer1.0-plugins-bad:
  Installed: 1.20.3-0ubuntu1
  Candidate: 1.20.3-0ubuntu1
  Version table:
 *** 1.20.3-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     1.20.1-1ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

尝试自动删除 libldacbt-enc2 会回到通常的循环,即说 gstreamer1.0-plugins-bad 具有未满足的依赖关系:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'libldacbt-enc2' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gstreamer1.0-plugins-bad : Depends: libldacbt-enc2 (>= 2.0.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

因此,当我尝试删除 --autoreomve gstreamer1.0-plugins-bad 时,它会吐出:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 pulseeffects : Depends: gstreamer1.0-plugins-bad but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

奇怪的是,当我输入 sudo apt remove --autoremove gstreamer1.0- 时,我没有看到 plugins-bad:

gstreamer1.0-adapter-pulseeffects      gstreamer1.0-pipewire
gstreamer1.0-alsa                      gstreamer1.0-plugins-base
gstreamer1.0-autogain-pulseeffects     gstreamer1.0-plugins-base-apps
gstreamer1.0-clutter-3.0               gstreamer1.0-plugins-good
gstreamer1.0-convolver-pulseeffects    gstreamer1.0-plugins-ugly
gstreamer1.0-crystalizer-pulseeffects  gstreamer1.0-pulseaudio
gstreamer1.0-gl                        gstreamer1.0-tools
gstreamer1.0-gtk3                      gstreamer1.0-vaapi
gstreamer1.0-libav                     gstreamer1.0-x
gstreamer1.0-packagekit 

仅供后人参考,这里是 apt policy libldac 的输出(这是一个我无法删除的第三方版本)

libldac:
  Installed: 2.0.2.3~r26478861
  Candidate: 2.0.2.3~r26478861
  Version table:
 *** 2.0.2.3~r26478861 100
        100 /var/lib/dpkg/status

和 libldacbtenc2:

libldac:
  Installed: 2.0.2.3~r26478861
  Candidate: 2.0.2.3~r26478861
  Version table:
 *** 2.0.2.3~r26478861 100
        100 /var/lib/dpkg/status

python --version 没有输出(据我了解 python2 已被弃用)

但是我安装了 python3:Python 3.10.6

以下是 apt policy python3 的输出:

python3:
  Installed: 3.10.6-1~22.04
  Candidate: 3.10.6-1~22.04
  Version table:
 *** 3.10.6-1~22.04 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.10.4-0ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

此外,我从未使用过突触包管理器,而且由于上述问题,我无法安装它。安装任何东西、更新任何东西等都会引发未满足的依赖性标志。

最后,我查看了我的旧日志,第一个日志出现更新错误:

Start-Date: 2023-03-28  23:57:46

Remove: linux-modules-nvidia-525-5.15.0-60-generic:amd64 (5.15.0-60.66)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2023-03-28  23:57:51

由于篇幅有限,不得不省略完整日志

从 3/28 到 4/7 有一个间隔,这很奇怪,据我所知,我从未更改过任何有关日志记录的方式。似乎是 nvidia 驱动程序的一个错误,我以前从未遇到过。目前它已恢复使用通用 xorg 驱动程序。

相关内容