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

Ulli Horlacher 2138772 at bugs.launchpad.net
Thu Jan 22 12:05:12 UTC 2026


I have found misconfiguration on my system obertux:

root at obertux:~# ls -ld /bin /usr/bin
drwxr-xr-x 1 root root 23024 Jan 21 15:51 /bin
lrwxrwxrwx 1 root root     4 May 20  2023 /usr/bin -> /bin

root at jellyfish:~# ls -ld /bin /usr/bin
lrwxrwxrwx 1 root root     7 Nov 23  2022 /bin -> usr/bin
drwxr-xr-x 1 root root 26118 Jan 16 06:28 /usr/bin

Host jellyfish is another Ubunt 22.04 system
I then run:

root at obertux:~# rm /usr/bin
root at obertux:~# apt install usrmerge
root at obertux:~# ls -ld /*bin /usr/*bin /lib /usr/lib
lrwxrwxrwx 1 root root     8 Jan 21 18:22 /bin -> /usr/bin
lrwxrwxrwx 1 root root     7 Jan 22 12:35 /lib -> usr/lib
lrwxrwxrwx 1 root root     8 Jan 22 12:35 /sbin -> usr/sbin
drwxr-xr-x 1 root root 23024 Jan 21 15:51 /usr/bin
drwxr-xr-x 1 root root  2864 Jan 22 12:35 /usr/lib
drwxr-xr-x 1 root root  7844 Jan 22 12:35 /usr/sbin

looks better!

But then:

root at obertux:~# do-release-upgrade
(...)
Cannot upgrade system with unmerged /usr

Please install the usrmerge package to fix this, and then try the
upgrade again.


root at obertux:~# dpkg -l | grep usrmerge
ii  usrmerge    25ubuntu2   all       Convert the system to the merged /usr directories scheme


Any hints for handling this .. besides new installation?

-- 
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