Ubuntu 20.04.4 LTS
我尝试运行软件更新程序但出现以下错误:
libpython3.7: Depends: libpython3.7-stdlib (= 3.7.13-1+focal3) but it is not installed
Depends: zlib1g (>= 1:1.2.0) but 1:1.2.11.dfsg-2ubuntu1.3 is installed
libpython3.7-dev: Depends: libpython3.7-stdlib (= 3.7.13-1+focal3) but it is not installed
Depends: libpython3.7 (= 3.7.13-1+focal3) but 3.7.13-1+focal3 is installed
python3.7: Depends: python3.7-minimal (= 3.7.13-1+focal3) but 3.7.13-1+focal3 is installed
Depends: libpython3.7-stdlib (= 3.7.13-1+focal3) but it is not installed
我尝试了以下方法,但均不起作用。
sudo apt --fix-broken install
sudo apt upgrade
sudo apt-get purge python3.7
sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install python3.7*
答案1
我在尝试从 ppa 升级 Ansible 时遇到了同样的问题。
我使用此问题中的建议删除了 python: 以下软件包有未满足的依赖项 python 3.7
sudo apt --fix-missing purge $(dpkg -l | grep 'python3\.7' | awk '{print $2}')
然后运行apt upgrade
,问题似乎已解决。