While updating my nvidia drivers I got a warning about inconsistent python 3 package and the advise to reinstall python 3.

Searching the forum gave me another post with the exact same warning (Python 3 not working) and a nice solution by David Foerster https://askubuntu.com/a/914589/672852.

However, after trying this:

sudo apt install -f --reinstall python3 python3.4 python3-minimal python3.4-minimal libpython3.4-minimal

I got the following notice:

Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd 
De statusinformatie wordt gelezen... Klaar
Let op, 'libpython3.4-minimal' wordt geselecteerd omwille van de regex 'python3.4'
Let op, 'libpython3.4-minimal' wordt geselecteerd omwille van de regex 'python3.4-minimal'
Pakket libpython3.4-minimal is niet beschikbaar, hoewel er naar verwezen wordt door
een ander pakket. Mogelijk betekent dit dat het pakket ontbreekt,
verouderd is, of enkel beschikbaar is van een andere bron
E: Pakket 'libpython3.4-minimal' heeft geen kandidaat voor installatie

And for the non-Dutch speakers:

Package libpython3.4-minimal is not available [...]
E: Package 'libpython3.4-minimal does not have a candidate for installation.

The question being: how do I reinstall Python3 now?

Oh yes, this problem started after a fresh install of 16.04. And I did the fresh install due to problems with the 17.04 upgrade.

  • 1
    Ubuntu 16.04 and also 17.04 have python3.5 instead of python3.4, so I suggest you try your command again, replacing all occurrences of 3.4 with 3.5. – Byte Commander Oct 1 '17 at 12:04
  • @ByteCommander Great, download worked. Unfortunately the next step: sudo dpkg -i *python3*.deb gives me the following errors: - no access to archive, file or folder doesn't exist. - error found while processing python3.deb – Jedidja Oct 1 '17 at 12:23
  • You don't need to manually install any .deb packages for Python. Why do you want to do that? – Byte Commander Oct 1 '17 at 12:41
  • @ByteCommander Well, I'm a novice and just following the instructions from someone more experienced. Does your comment mean I don't have to do anything else after downloading? – Jedidja Oct 1 '17 at 12:43
  • Yes, I just looked at David's answer and the second command block with the dpkg and stuff is only "If this doesn't work". So at the sudo apt install -f --reinstall ... seems to have worked in your case, you should be done. – Byte Commander Oct 1 '17 at 14:20

Ubuntu 16.04 and newer versions have python3.5 instead of python3.4, see these search results on packages.ubuntu.com.

Therefore I suggest you try your command again, replacing all occurrences of 3.4 with 3.5:

sudo apt install -f --reinstall python3 python3.5 python3-minimal python3.5-minimal libpython3.5-minimal

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.