Ubuntu Version:
Ubuntu 22.04.5 LTS
Desktop Environment (if applicable):
cli
Problem Description:
I am trying to upgrade Ubuntu 22.04.5 LTS to Ubuntu 26.04 LTS
when I try do-release-upgrade, it wants to upgrade to Ubuntu 24.04 LTS – this also fails because
Cannot upgrade system with unmerged /usr
Please install the usrmerge package to fix this, and then try theupgrade again.
When I install usrmerge:
Smartmatch is experimental at /usr/lib/usrmerge/convert-usrmerge line 172.
FATAL ERROR:Both /lib/x86_64-linux-gnu/libnss_files.so.2 and /usr/lib/x86_64-linux-gnu/libnss_files.so.2 exist
These are the two files:
ls -l /lib/x86_64-linux-gnu/libnss_files.so.2 /usr/lib/x86_64-linux-gnu/libnss_files.so.2
-rw-r–r-- 1 root root 14352 Jan 30 08:20 /lib/x86_64-linux-gnu/libnss_files.so.2
-rw-r–r-- 1 root root 14336 Mar 30 2024 /usr/lib/x86_64-linux-gnu/libnss_files.so.2
I have tried following various solutions to the above, involving creating a link, these either fail because there’s no loader any more, so I have to use /bin/busybox to get them back, or, when I do create a link it is overwritten again, as above.
What I’ve Tried:
I have, as I say above, tried all the recommendations I can find.