ubuntu 提示错误:error processing archive /var/cache/apt/archives/libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb (--unpack)
Ubuntu 无法执行 apt upgrade, 也无法执行 apt remove:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python3.10 : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
python3.10-minimal : Depends: libpython3.10-minimal (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
解决方法:
ls -l /var/lib/dpkg/info | grep -i libpython3.10-minimal
sudo mv /var/lib/dpkg/info/libpython3.10-minimal:amd64.* /tmp
sudo apt --fix-broken install
参考: