[Bug 2138772] Re: do-release-upgrade fails with "Your python3 install is corrupted"

Ulli Horlacher 2138772 at bugs.launchpad.net
Tue Jan 27 12:08:11 UTC 2026


I found the problem and could fix it!

The absolute symlink /bin -> /usr/bin was problematic. I changed it to /bin -> usr/bin 
and do-release-upgrade then run without error abort.

I cannot say what created this wrong absolute symlink, but do-release-
upgrade should be a little more liberal and accept absolute symlinks,
too.

I am not the only one who had this kind of problem, see:
https://askubuntu.com/a/1530420

A generic workaround fix is:

apt install usrmerge
cd /
for i in bin sbin lib; do rm $i; ln -s usr/$i; done

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2138772

Title:
  do-release-upgrade fails with "Your python3 install is corrupted"

Status in ubuntu-release-upgrader package in Ubuntu:
  Invalid

Bug description:
  
  I tried to upgrade from Ubuntu 22.04.5 to 24.04 with do-release-upgrade but it fails with:

  Can not upgrade

  Your python3 install is corrupted. Please fix the '/usr/bin/python3'
  symlink.
  === Command detached from window (Tue Jan 20 14:06:37 2026) ===

  
  My python3 seems to be ok:

  root at obertux:~# ls -l /usr/bin/python3
  lrwxrwxrwx 1 root root 25 Jan 20 14:43 /usr/bin/python3 -> /etc/alternatives/python3

  root at obertux:~# ls -l /etc/alternatives/python3
  lrwxrwxrwx 1 root root 19 Jan 20 14:43 /etc/alternatives/python3 -> /usr/bin/python3.10

  root at obertux:~# ls -l /usr/bin/python3.10
  -rwxr-xr-x 1 root root 5937672 Jan  8 07:52 /usr/bin/python3.10

  root at obertux:~# /usr/bin/python3 --version
  Python 3.10.12

  I run "apt reinstall python3.10" but do-release-upgrade still fails.

  I have reported it also at
  https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-
  upgrader/+bug/1825655 but this ticket is 7 years old and belongs to
  Ubuntu 18

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2138772/+subscriptions




More information about the foundations-bugs mailing list