我无法在我的计算机上安装 vim,未满足依赖项 libpython3.8

我无法在我的计算机上安装 vim,未满足依赖项 libpython3.8
$ sudo apt install vim
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vim : Depends: libpython3.8 (>= 3.8.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

如何解决这个问题?

答案1

我从 18.04(实际上是 16.04)更新到 20.04 时遇到了同样的问题。

手动安装软件包后libpython3.8,出现了不同的错误,我发现此主题。他们建议的命令产生了几个警告,并建议apt运行apt --fix-broken install,在我看来,这似乎解决了所有问题。

答案2

我从 18 升级到 20 后遇到了同样的问题。我尝试了所有我能记得的方法。这是唯一有帮助的方法:

sudo apt install aptitude

sudo aptitude install -f vim

相关内容