我尝试更新 Python,但我不知道版本隔离,而是删除版本,因此,我删除了 Ubuntu 16.04 VPS 中的所有 Python 版本。现在我无法通过 apt-get 安装任何东西。
:
root@vps15:/# apt-get install --reinstall python3.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
dh-python : Depends: python3:any (>= 3.3.2-2~)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
我尝试手动安装以将 Python 2.7 源安装到 /usr/lib ,现在可以工作了,但现在的问题是这个依赖项:“dh-python”。
# apt-get install python3.5-minimal
Reading package lists... Done
Building dependency …Run Code Online (Sandbox Code Playgroud)