Ubuntu24.10无法更新的问题解决


Ubuntu系统无法自动更新,提示安装包问题。

1. 问题信息

执行自动更新的时候,报错,提示安装包存在问题:

albertqee@ZBG7W:~$ sudo apt-get install -f
[sudo] password for albertqee: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libdrm-nouveau2:i386 libllvm17t64 libllvm17t64:i386 libllvm18:i386
  libmozjs-115-0t64 nvidia-firmware-535-server-535.183.01
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libllvm19:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386
The following NEW packages will be installed:
  libllvm19:i386
The following packages will be upgraded:
  mesa-vulkan-drivers mesa-vulkan-drivers:i386
2 upgraded, 1 newly installed, 0 to remove and 56 not upgraded.
4 not fully installed or removed.
Need to get 0 B/59.5 MB of archives.
After this operation, 146 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 288571 files and directories currently installed.)
Preparing to unpack .../libllvm19_1%3a19.1.0-1ubuntu1_i386.deb ...
Unpacking libllvm19:i386 (1:19.1.0-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb (--unpack):
 trying to overwrite shared '/usr/lib/llvm-19/lib/libLLVM.so.19.1', which is different from other instances of package libllvm19:i386
Preparing to unpack .../mesa-vulkan-drivers_24.2.3-1ubuntu1_i386.deb ...
De-configuring mesa-vulkan-drivers:amd64 (24.2.2-1ubuntu1), to allow configuration of mesa-vulkan-drivers:i386 (24.2.3-1ubuntu1) ...
Unpacking mesa-vulkan-drivers:i386 (24.2.3-1ubuntu1) over (24.2.2-1ubuntu1) ...
Preparing to unpack .../mesa-vulkan-drivers_24.2.3-1ubuntu1_amd64.deb ...
Unpacking mesa-vulkan-drivers:amd64 (24.2.3-1ubuntu1) over (24.2.2-1ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
albertqee@ZBG7W:~$ 

上述的第25-26行提示了库文件libLLVM.so.19.1的问题,是导致此次更新失败的原因。

2. 解决方案

尝试手动安装可以更新的安装包,但是以失败告终。

albertqee@ZBG7W:~$ sudo apt update
Hit:1 https://mirrors.aliyun.com/ubuntu noble InRelease
Hit:2 https://mirrors.aliyun.com/ubuntu noble-security InRelease                                           
Hit:3 https://mirrors.aliyun.com/ubuntu noble-updates InRelease                                            
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease                                              
Hit:5 https://packages.microsoft.com/repos/code stable InRelease                                           
Hit:6 https://mirrors.aliyun.com/ubuntu noble-proposed InRelease                                           
Hit:7 http://security.ubuntu.com/ubuntu noble-security InRelease                                           
Hit:8 http://cz.archive.ubuntu.com/ubuntu oracular InRelease                                               
Hit:9 https://mirrors.aliyun.com/ubuntu noble-backports InRelease                                          
Get:11 https://dl.cloudsmith.io/public/asbru-cm/release/deb/ubuntu noble InRelease [4,868 B]               
Hit:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble InRelease                                          
Get:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates InRelease [126 kB]        
Hit:13 http://cz.archive.ubuntu.com/ubuntu noble InRelease                                            
Get:15 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7,532 B]                     
Hit:14 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports InRelease
Get:16 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7,468 B]
Get:17 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7,462 B]
Get:18 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7,461 B]
Fetched 161 kB in 3s (51.8 kB/s)      
56 packages can be upgraded. Run 'apt list --upgradable' to see them.
Notice: Missing Signed-By in the sources.list(5) entry for 'http://cn.archive.ubuntu.com/ubuntu'
albertqee@ZBG7W:~$ apt list --upgradable
fcitx5-frontend-qt5/oracular 5.1.6-1ubuntu1 amd64 [upgradable from: 5.1.6-1build1]
gir1.2-rsvg-2.0/oracular 2.59.0+dfsg-3 amd64 [upgradable from: 2.58.0+dfsg-1build2]
grub-common/oracular 2.12-5ubuntu5 amd64 [upgradable from: 2.12-5ubuntu4]
grub-efi-amd64-bin/oracular 2.12-5ubuntu5 amd64 [upgradable from: 2.12-5ubuntu4]
grub-efi-amd64-signed/oracular 1.209+2.12-5ubuntu5 amd64 [upgradable from: 1.208+2.12-5ubuntu4]
grub-efi-amd64-unsigned/oracular 2.12-5ubuntu5 amd64 [upgradable from: 2.12-5ubuntu4]
grub-efi-amd64/oracular 2.12-5ubuntu5 amd64 [upgradable from: 2.12-5ubuntu4]
grub2-common/oracular 2.12-5ubuntu5 amd64 [upgradable from: 2.12-5ubuntu4]
kwayland-integration/oracular 4:6.1.5-0ubuntu2 amd64 [upgradable from: 4:6.1.5-0ubuntu1]
kwayland5-data/oracular,oracular 4:5.116.0-0ubuntu3 all [upgradable from: 4:5.116.0-0ubuntu2]
libfcitx5-qt-data/oracular,oracular 5.1.6-1ubuntu1 all [upgradable from: 5.1.6-1build1]
libfcitx5-qt1/oracular 5.1.6-1ubuntu1 amd64 [upgradable from: 5.1.6-1build1]
libgl1-mesa-dev/oracular 24.2.3-1ubuntu1 amd64 [upgradable from: 24.2.2-1ubuntu1]
libkf5i18n-data/oracular,oracular 5.116.0-0ubuntu2 all [upgradable from: 5.116.0-0ubuntu1]
libkf5i18n5/oracular 5.116.0-0ubuntu2 amd64 [upgradable from: 5.116.0-0ubuntu1]
libkf5iconthemes-bin/oracular 5.116.0-0ubuntu2 amd64 [upgradable from: 5.116.0-0ubuntu1]
libkf5iconthemes-data/oracular,oracular 5.116.0-0ubuntu2 all [upgradable from: 5.116.0-0ubuntu1]
libkf5iconthemes5/oracular 5.116.0-0ubuntu2 amd64 [upgradable from: 5.116.0-0ubuntu1]
libkf5waylandclient5/oracular 4:5.116.0-0ubuntu3 amd64 [upgradable from: 4:5.116.0-0ubuntu2]
libkf5xmlgui-bin/oracular 5.116.0-0ubuntu2 amd64 [upgradable from: 5.116.0-0ubuntu1]
libkf5xmlgui-data/oracular,oracular 5.116.0-0ubuntu2 all [upgradable from: 5.116.0-0ubuntu1]
libkf5xmlgui5/oracular 5.116.0-0ubuntu2 amd64 [upgradable from: 5.116.0-0ubuntu1]
libqt5core5t64/oracular 5.15.15+dfsg-1ubuntu1 amd64 [upgradable from: 5.15.13+dfsg-4ubuntu1]
libqt5dbus5t64/oracular 5.15.15+dfsg-1ubuntu1 amd64 [upgradable from: 5.15.13+dfsg-4ubuntu1]
libqt5gui5t64/oracular 5.15.15+dfsg-1ubuntu1 amd64 [upgradable from: 5.15.13+dfsg-4ubuntu1]
libqt5network5t64/oracular 5.15.15+dfsg-1ubuntu1 amd64 [upgradable from: 5.15.13+dfsg-4ubuntu1]
libqt5positioning5/oracular 5.15.15+dfsg-1 amd64 [upgradable from: 5.15.13+dfsg-2]
libqt5printsupport5t64/oracular 5.15.15+dfsg-1ubuntu1 amd64 [upgradable from: 5.15.13+dfsg-4ubuntu1]
libqt5qml5/oracular 5.15.15+dfsg-1 amd64 [upgradable from: 5.15.13+dfsg-2]
libqt5qmlmodels5/oracular 5.15.15+dfsg-1 amd64 [upgradable from: 5.15.13+dfsg-2]
libqt5quick5/oracular 5.15.15+dfsg-1 amd64 [upgradable from: 5.15.13+dfsg-2]
libqt5quickwidgets5/oracular 5.15.15+dfsg-1 amd64 [upgradable from: 5.15.13+dfsg-2]
libqt5svg5/oracular 5.15.15-1 amd64 [upgradable from: 5.15.13-2]
libqt5texttospeech5/oracular 5.15.15-1 amd64 [upgradable from: 5.15.13-2]
libqt5waylandclient5/oracular 5.15.15-1 amd64 [upgradable from: 5.15.13-3]
libqt5waylandcompositor5/oracular 5.15.15-1 amd64 [upgradable from: 5.15.13-3]
libqt5webchannel5/oracular 5.15.15-1 amd64 [upgradable from: 5.15.13-2]
libqt5webengine-data/oracular,oracular 5.15.17+dfsg-4 all [upgradable from: 5.15.17+dfsg-3]
libqt5webenginecore5/oracular 5.15.17+dfsg-4 amd64 [upgradable from: 5.15.17+dfsg-3]
libqt5webenginewidgets5/oracular 5.15.17+dfsg-4 amd64 [upgradable from: 5.15.17+dfsg-3]
libqt5widgets5t64/oracular 5.15.15+dfsg-1ubuntu1 amd64 [upgradable from: 5.15.13+dfsg-4ubuntu1]
libqt5x11extras5/oracular 5.15.15-1 amd64 [upgradable from: 5.15.13-2]
libqt5xml5t64/oracular 5.15.15+dfsg-1ubuntu1 amd64 [upgradable from: 5.15.13+dfsg-4ubuntu1]
librsvg2-2/oracular 2.59.0+dfsg-3 amd64 [upgradable from: 2.58.0+dfsg-1build2]
librsvg2-common/oracular 2.59.0+dfsg-3 amd64 [upgradable from: 2.58.0+dfsg-1build2]
libxatracker2/oracular 24.2.3-1ubuntu1 amd64 [upgradable from: 24.2.2-1ubuntu1]
lshw/oracular 02.19.git.2021.06.19.996aaad9c7-2ubuntu2 amd64 [upgradable from: 02.19.git.2021.06.19.996aaad9c7-2ubuntu1]
mesa-va-drivers/oracular 24.2.3-1ubuntu1 amd64 [upgradable from: 24.2.2-1ubuntu1]
mesa-vdpau-drivers/oracular 24.2.3-1ubuntu1 amd64 [upgradable from: 24.2.2-1ubuntu1]
openssl/oracular 3.3.1-2ubuntu2 amd64 [upgradable from: 3.3.1-2ubuntu1]
python3-update-manager/oracular,oracular 1:24.10.6 all [upgradable from: 1:24.10.5]
qt5-gtk-platformtheme/oracular 5.15.15+dfsg-1ubuntu1 amd64 [upgradable from: 5.15.13+dfsg-4ubuntu1]
qtspeech5-speechd-plugin/oracular 5.15.15-1 amd64 [upgradable from: 5.15.13-2]
qtwayland5/oracular 5.15.15-1 amd64 [upgradable from: 5.15.13-3]
update-manager-core/oracular,oracular 1:24.10.6 all [upgradable from: 1:24.10.5]
update-manager/oracular,oracular 1:24.10.6 all [upgradable from: 1:24.10.5]
albertqee@ZBG7W:~$ apt list --upgradable | gawk -F'/' '{print $1}'

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Listing...
fcitx5-frontend-qt5
gir1.2-rsvg-2.0
grub-common
grub-efi-amd64-bin
grub-efi-amd64-signed
grub-efi-amd64-unsigned
grub-efi-amd64
grub2-common
kwayland-integration
kwayland5-data
libfcitx5-qt-data
libfcitx5-qt1
libgl1-mesa-dev
libkf5i18n-data
libkf5i18n5
libkf5iconthemes-bin
libkf5iconthemes-data
libkf5iconthemes5
libkf5waylandclient5
libkf5xmlgui-bin
libkf5xmlgui-data
libkf5xmlgui5
libqt5core5t64
libqt5dbus5t64
libqt5gui5t64
libqt5network5t64
libqt5positioning5
libqt5printsupport5t64
libqt5qml5
libqt5qmlmodels5
libqt5quick5
libqt5quickwidgets5
libqt5svg5
libqt5texttospeech5
libqt5waylandclient5
libqt5waylandcompositor5
libqt5webchannel5
libqt5webengine-data
libqt5webenginecore5
libqt5webenginewidgets5
libqt5widgets5t64
libqt5x11extras5
libqt5xml5t64
librsvg2-2
librsvg2-common
libxatracker2
lshw
mesa-va-drivers
mesa-vdpau-drivers
openssl
python3-update-manager
qt5-gtk-platformtheme
qtspeech5-speechd-plugin
qtwayland5
update-manager-core
update-manager
albertqee@ZBG7W:~$ apt list --upgradable | gawk -F'/' '{print $1}' | xargs -i sudo apt upgrade {}

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 mesa-libgallium:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
 mesa-vulkan-drivers:i386 : Depends: libllvm19:i386 (>= 1:19.1.0) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
albertqee@ZBG7W:~$ 

上述的报错依然是libllvm19:i386导致的问题。

通过执行命令sudo apt --fix-broken install的方式解决依赖异常的问题,以及通过将混村的安装包删除等方式解决此问题,依然无法凑效。具体如下:

albertqee@ZBG7W:~$ dpkg -l | egrep libllvm19
ii  libllvm19:amd64                                   1:19.1.0-1ubuntu1                        amd64        Modular compiler and toolchain technologies, runtime library
albertqee@ZBG7W:~$ sudo apt --fix-broken install
Correcting dependencies... Done 
The following packages were automatically installed and are no longer required:
  libdrm-nouveau2:i386  libllvm17t64:i386  libmozjs-115-0t64
  libllvm17t64          libllvm18:i386     nvidia-firmware-535-server-535.183.01
Use 'sudo apt autoremove' to remove them.

Installing dependencies:
  libllvm19:i386

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 56
  6 not fully installed or removed.
  Download size: 0 B / 33.2 MB
  Space needed: 146 MB / 104 GB available

Continue? [Y/n] y
(Reading database ... 288571 files and directories currently installed.)
Preparing to unpack .../libllvm19_1%3a19.1.0-1ubuntu1_i386.deb ...
Unpacking libllvm19:i386 (1:19.1.0-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb (--unpack):
 trying to overwrite shared '/usr/lib/llvm-19/lib/libLLVM.so.19.1', which is different from other instances 
of package libllvm19:i386
Errors were encountered while processing:
 /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)
albertqee@ZBG7W:~$ rm -f /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb
rm: cannot remove '/var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb': Permission denied
albertqee@ZBG7W:~$ sudo rm -f /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb
albertqee@ZBG7W:~$ sudo apt --fix-broken install
Correcting dependencies... Done 
The following packages were automatically installed and are no longer required:
  libdrm-nouveau2:i386  libllvm17t64:i386  libmozjs-115-0t64
  libllvm17t64          libllvm18:i386     nvidia-firmware-535-server-535.183.01
Use 'sudo apt autoremove' to remove them.

Installing dependencies:
  libllvm19:i386

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 56
  6 not fully installed or removed.
  Download size: 33.2 MB
  Space needed: 146 MB / 104 GB available

Continue? [Y/n] y
Get:1 http://cz.archive.ubuntu.com/ubuntu oracular/main i386 libllvm19 i386 1:19.1.0-1ubuntu1 [33.2 MB]
Fetched 33.2 MB in 3min 41s (150 kB/s)                                                                     
(Reading database ... 288571 files and directories currently installed.)
Preparing to unpack .../libllvm19_1%3a19.1.0-1ubuntu1_i386.deb ...
Unpacking libllvm19:i386 (1:19.1.0-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb (--unpack):
 trying to overwrite shared '/usr/lib/llvm-19/lib/libLLVM.so.19.1', which is different from other instances 
of package libllvm19:i386
Errors were encountered while processing:
 /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)
albertqee@ZBG7W:~$ du -sh /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb
32M	/var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb
albertqee@ZBG7W:~$ sudo -i dpkg -i /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb
(Reading database ... 288571 files and directories currently installed.)
Preparing to unpack .../libllvm19_1%3a19.1.0-1ubuntu1_i386.deb ...
Unpacking libllvm19:i386 (1:19.1.0-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb (--install):
 trying to overwrite shared '/usr/lib/llvm-19/lib/libLLVM.so.19.1', which is different from other instances of package libllvm19:i386
Processing triggers for libc-bin (2.40-1ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb
 albertqee@ZBG7W:~$ 

最终通过将该文件重命名为备份文件的格式,然后手动安装的方式解决了无法更新的问题。具体如下:

albertqee@ZBG7W:~$ sudo mv /usr/lib/llvm-19/lib/libLLVM.so.19.1{,.bak}
albertqee@ZBG7W:~$ sudo -i dpkg -i /var/cache/apt/archives/libllvm19_1%3a19.1.0-1ubuntu1_i386.deb
(Reading database ... 288571 files and directories currently installed.)
Preparing to unpack .../libllvm19_1%3a19.1.0-1ubuntu1_i386.deb ...
Unpacking libllvm19:i386 (1:19.1.0-1ubuntu1) ...
Setting up libllvm19:i386 (1:19.1.0-1ubuntu1) ...
Processing triggers for libc-bin (2.40-1ubuntu3) ...
albertqee@ZBG7W:~$ sudo apt --fix-broken install
The following packages were automatically installed and are no longer required:
  libdrm-nouveau2:i386  libllvm17t64:i386  libmozjs-115-0t64
  libllvm17t64          libllvm18:i386     nvidia-firmware-535-server-535.183.01
Use 'sudo apt autoremove' to remove them.

Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 56
  6 not fully installed or removed.
  Space needed: 0 B / 104 GB available

Setting up mesa-vulkan-drivers:amd64 (24.2.3-1ubuntu1) ...
Setting up mesa-vulkan-drivers:i386 (24.2.3-1ubuntu1) ...
Setting up mesa-libgallium:i386 (24.2.3-1ubuntu1) ...
Setting up libgbm1:i386 (24.2.3-1ubuntu1) ...
Setting up libgl1-mesa-dri:i386 (24.2.3-1ubuntu1) ...
Setting up libglx-mesa0:i386 (24.2.3-1ubuntu1) ...
Processing triggers for libc-bin (2.40-1ubuntu3) ...
albertqee@ZBG7W:~$ 

至此,自动更新问题中的异常依赖问题就解决了,此后就可以正常自动更新系统了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值