无法安装 libgl1-mesa-dri

无法安装 libgl1-mesa-dri

我无法通过终端或 Kubuntu Discover 安装 libgl1-mesa-dri。尝试通过终端执行此操作会返回以下内容:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gstreamer1.0-gtk3 libaperture-0-0 libbotan-2-19 libgl1-amber-dri libllvm13 libllvm13:i386 libqt5charts5
  libquazip5-1 libtspi1 qml-module-qtcharts
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  libgl1-mesa-dri
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
34 not fully installed or removed.
Need to get 0 B/7,664 kB of archives.
After this operation, 273 kB of additional disk space will be used.
(Reading database ... 214666 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.3.0+git2212090959.02d23a79bec~j~mesarc5_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.3.0+git2212090959.02d23a79bec~j~mesarc5) over (22.0.5-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.3.0+git2212090959.02d23a79bec~j~mesarc5_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri:amd64 21.3.7-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/libgl1-mesa-dri_22.3.0+git2212090959.02d23a79bec~j~mesarc5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

而使用 Kubuntu Discover 返回:

Package failed to install
Error while installing package: trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri

我该如何尝试修复此问题?系统正在运行 Kubuntu 22.04。

相关内容