(我意识到之前有人问过类似的问题,但那里的答案没有处理这些细节)
我在 Ubuntu 10.10 上,需要 python2.5(来自 deadnsakes—— https: //launchpad.net/~fkrull/+archive/deadsnakes )和 python-profiler
不幸的是,这两个包都尝试安装 /usr/lib/python2.5/profile.py 所以 apt-get 不允许我同时安装
显然这是一个打包错误,但我需要尽快修复。反正有没有完全忽略这些错误而只是炸掉那个文件?
这是具体问题:
The following packages have unmet dependencies:
libpython3.10-stdlib : Depends: libpython3.10-minimal (= 3.10.4-1+focal1) but it is not going to be installed
python3.10-minimal : Depends: libpython3.10-minimal (= 3.10.4-1+focal2) but it is not going to be installed
Recommends: python3.10 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
我应该清除或重新安装哪个软件包?系统不允许两者都不做autoremove, fix broken, dist-upgrade
?
库班图 20.04 LTS
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
Run Code Online (Sandbox Code Playgroud)
我尝试了以下方法,但没有一个有效。
sudo apt --fix-broken install
sudo apt upgrade
Run Code Online (Sandbox Code Playgroud)
sudo apt-get purge python3.7
sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install …
Run Code Online (Sandbox Code Playgroud)