Missing or wrong symlink - /usr/bin/python2 can not be found

Bug #1770449 reported by Alexander Micke
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
getmail (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 18.04 LTS / getmail 5.5-3

When you run "getmail" after doing the configuration you recieve the following error:

"bash: /usr/bin/getmail: /usr/bin/python2: bad interpreter: No such file or directory"

This is caused by the first line of the getmail script stating "#!/usr/bin/python2" as the interpreter.

When checking "/usr/bin" you do not find a symlink for "python2" linking to "python2.7" (but there is one for "python3" linking to "python3.6").

Executing

"sudo ln -s /usr/bin/python2.7 /usr/bin/python2"

adds the missing symlink and solves the problem.

In case this bug can not be addressed to "getmail" i kindly ask for indulgence - this is my first bug report ever.

Tags: bionic
tags: added: bionic
Revision history for this message
Andreas Gruhler (andreas-gruhler) wrote :

For me, "sudo apt-get install python" also created the symlink for python2.

Revision history for this message
crash (crash369) wrote :

I too am missing this link.
For me, re-running `apt install python` did not fix the error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.