在 Debian Bullseye 升级后,我收到此错误:
Errors were encountered while processing:
python3
python3-ldb
apt-listchanges
lsb-release
python3-mediainfodll
caja-mediainfo
python3-distro
python3-talloc:amd64
python3-apt
python3-debconf
samba-libs:amd64
yelp
libsmbclient:amd64
mate-user-guide
gvfs-backends
每个包都有这样的消息:
dpkg: error processing package [PACKAGE NAME] (--configure):
dependency problems - leaving unconfigured
尝试重新配置但出现相同的错误:
sudo dpkg --configure -a
也尝试重新安装并收到此错误:
sudo apt install --reinstall python3 --fix-broken
E: Internal Error, No file name for python3:amd64
答案1
python3
您缓存中的包文件似乎apt
已损坏;跑步
sudo apt clean
sudo apt reinstall python3
强制重新下载。如果仍然失败,请手动下载包文件并安装:
wget http://deb.debian.org/debian/pool/main/p/python3-defaults/python3_3.9.2-3_amd64.deb
sudo dpkg -i python3_3.9.2-3_amd64.deb
然后尝试继续升级:
sudo dpkg --configure --pending