Score:1

Error installing vim after upgrading from ubuntu 16.04 LTS to 18.04 LTS

it flag

Today I upgraded my ubuntu from 16.04 LTS to 18.04 LTS. The upgrade was successful.

But when I tried to install vim, it throws error.

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.6 (>= 3.6.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

How can I solve it? I tried to install libpython3.6, but it throws the unmet dependencies error.

The Cool Man avatar
cn flag
what is the unmet dependencies for libpython3.6
Monojit Sarkar avatar
it flag
@Adem libpython3.6-stdlib (= 3.6.9-1~18.04ubuntu1.4) but 3.6.13-1+xenial2 is to be installed
The Cool Man avatar
cn flag
try installing that
Monojit Sarkar avatar
it flag
It is already installed the latest version, but still the problem persists
The Cool Man avatar
cn flag
are there any more dependecies
Monojit Sarkar avatar
it flag
Nope, there are not more.
The Cool Man avatar
cn flag
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/126862/discussion-between-adem-and-monojit-sarkar).
Score:0
cn flag

Installing the unmet dependencies until one of the dependencies are unavailble. Install the DEB file for that dependency, then try again.

Score:0
zw flag

You have to fix broken dependencies by installing default python versions for Ubuntu 18.04 LTS:

sudo apt-get install --reinstall libpython3.6=3.6.9-1~18.04ubuntu1.4 libpython3.6-minimal=3.6.9-1~18.04ubuntu1.4 libpython3.6-stdlib=3.6.9-1~18.04ubuntu1.4 python3.6=3.6.9-1~18.04ubuntu1.4 python3.6-minimal=3.6.9-1~18.04ubuntu1.4

and then install Vim.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.