Ubuntu 22.04.1 LTS 搭载 KDE Plasma 5.24.6
我从 Steam 官方网站下载了 steam_latest.deb。我通过 Ubuntu 中的软件安装程序安装了它,之后系统提示我下载一些软件包
Steam needs to install these additional packages:
libc6:amd64 libc6:i386 libegl1:amd64 libegl1:i386 libgbm1:amd64 libgbm1:i386 libgl1-mesa-dri:amd64 libgl1-mesa-dri:i386 libgl1:amd64 libgl1:i386 steam-libs-i386:i386
继续后我得到了这个输出
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libegl1 is already the newest version (1.4.0-1).
libgl1 is already the newest version (1.4.0-1).
libegl1:i386 is already the newest version (1.4.0-1).
libgl1:i386 is already the newest version (1.4.0-1).
libc6 is already the newest version (2.35-0ubuntu3.1).
libc6:i386 is already the newest version (2.35-0ubuntu3.1).
libgbm1 is already the newest version (22.2.0~rc3+git2208312110.f44745add97~j~mesarc1).
libgbm1:i386 is already the newest version (22.2.0~rc3+git2208312110.f44745add97~j~mesarc1).
libgl1-mesa-dri:i386 is already the newest version (22.2.0~rc3+git2208312110.f44745add97~j~mesarc1).
steam-libs-i386:i386 is already the newest version (1:1.0.0.75).
The following packages were automatically installed and are no longer required:
libgl1-amber-dri libllvm13
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
libgl1-mesa-dri
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
6 not fully installed or removed.
Need to get 0 B/7,887 kB of archives.
After this operation, 374 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 206760 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.2.0~rc3+git2208312110.f44745add97~j~mesarc1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.2.0~rc3+git2208312110.f44745add97~j~mesarc1) over (22.0.5-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.2.0~rc3+git2208312110.f44745add97~j~mesarc1_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.2.0~rc3+git2208312110.f44745add97~j~mesarc1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)```
现在使用任何 apt 命令都会遇到这些依赖项错误
sudo apt install pythonpy
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:
libgl1-mesa-dri : Depends: libglapi-mesa (= 22.0.5-0ubuntu0.1) but 22.2.0~rc3+git2208312110.f44745add97~j~mesarc1 is to be installed
Breaks: libgl1-mesa-dri:i386 (!= 22.0.5-0ubuntu0.1) but 22.2.0~rc3+git2208312110.f44745add97~j~mesarc1 is to be installed
libgl1-mesa-dri:i386 : Breaks: libgl1-mesa-dri (!= 22.2.0~rc3+git2208312110.f44745add97~j~mesarc1) but 22.0.5-0ubuntu0.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
使用 sudo apt --fix-broken install 后我得到了这个输出
googboog@googboog-desktop:~$ sudo apt --fix-broken install
[sudo] password for googboog:
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:
libgl1-amber-dri libllvm13
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libgl1-mesa-dri
The following packages will be upgraded:
libgl1-mesa-dri
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
6 not fully installed or removed.
Need to get 0 B/7,887 kB of archives.
After this operation, 374 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 206760 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.2.0~rc3+git2208312110.f44745add97~j~mesarc1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.2.0~rc3+git2208312110.f44745add97~j~mesarc1) over (22.0.5-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.2.0~rc3+git2208312110.f44745add97~j~mesarc1_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.2.0~rc3+git2208312110.f44745add97~j~mesarc1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试过的修复方法:
运行 sudo apt install -f
googboog@googboog-desktop:~$ sudo apt install -f
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:
libgl1-amber-dri libllvm13
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libgl1-mesa-dri
The following packages will be upgraded:
libgl1-mesa-dri
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
6 not fully installed or removed.
Need to get 0 B/7,887 kB of archives.
After this operation, 374 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 206760 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.2.0~rc3+git2208312110.f44745add97~j~mesarc1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.2.0~rc3+git2208312110.f44745add97~j~mesarc1) over (22.0.5-0ubuntu0.1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.2.0~rc3+git2208312110.f44745add97~j~mesarc1_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.2.0~rc3+git2208312110.f44745add97~j~mesarc1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
如果我遗漏了任何关键信息,请原谅,因为我对此还很陌生。