Thanks for your time Greg
This occurred from updates only no installs for a while.
I did try moving some of the files and sym linking, then rebooting to
check, all worked (inc libc) but got bored doing it after about 30
times. I also tried sym linking /usr/bin and /usr/lib etc but it locked
up then :).
This system is old now repeatedly doing upgrade, dist-upgrade and
full-upgrade through the years. So maybe its time is done ! :( One
mistake, through laziness, I never update the config files, so maybe a
re-install (Sounds Windows-ish) may help.
This is the original text:
aurora:~# apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 604 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up usrmerge (31) ...
FATAL ERROR:
Both /lib/x86_64-linux-gnu/libc.so.6 and
/usr/lib/x86_64-linux-gnu/libc.so.6 exist.
You can try correcting the errors reported and running again
/usr/lib/usrmerge/convert-usrmerge until it will complete without errors.
Do not install or update other Debian packages until the program
has been run successfully.
E: usrmerge failed.
dpkg: error processing package usrmerge (--configure):
installed usrmerge package post-installation script subprocess
returned error exit status 1
Errors were encountered while processing:
usrmerge
E: Sub-process /usr/bin/dpkg returned an error code (1)
also:
aurora:~# apt install usr-is-merged
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
usr-is-merged
0 upgraded, 1 newly installed, 0 to remove and 604 not upgraded.
1 not fully installed or removed.
Need to get 4,920 B of archives.
After this operation, 12.3 kB of additional disk space will be used.
Get:1 http://ftp.uk.debian.org/debian testing/main amd64 usr-is-merged
all 31 [4,920 B]
Fetched 4,920 B in 0s (35.6 kB/s)
Selecting previously unselected package usr-is-merged.
(Reading database ... 493237 files and directories currently installed.)
Preparing to unpack .../usr-is-merged_31_all.deb ...
******************************************************************************
*
* The usr-is-merged package cannot be installed because this system does
* not have a merged /usr.
*
* Please install the usrmerge package to convert this system to merged-/usr.
*
* For more information please read https://wiki.debian.org/UsrMerge.
*
******************************************************************************
dpkg: error processing archive
/var/cache/apt/archives/usr-is-merged_31_all.deb (--unpack):
new usr-is-merged package pre-installation script subprocess returned
error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/usr-is-merged_31_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Billy
On 01/10/2022 13:40, Greg Wooledge wrote:
On Sat, Oct 01, 2022 at 11:06:55AM +0100, billium wrote:
Since the last update to my debian testing I am unable to install anything
or upgrade.
Setting up usrmerge (31) ...
FATAL ERROR:
Both /lib/x86_64-linux-gnu/libc.so.6 and /usr/lib/x86_64-linux-gnu/libc.so.6
exist.
How did you arrive in this state? Is /lib already a symlink to /usr/lib
on your system?
I can move the stated file and create a symlink
DO NOT TRY THAT!
That's libc. If you try to move that in the most naive way imaginable,
your system will break immediately.
If you've already got a fully merged /usr, there is a package you can
install to indicate this (usr-is-merged). Install that, and usrmerge
won't try to set itself up. Or something like that. So I'm told. I'm
not running testing at this time.
If you've got a *partially* merged /usr, then I may not be able to help
you much. You'll need an expert. A good start would be understanding
whatever state you're in and how you got there.
Did a previous apt-get operation try to install usrmerge and fail? Do
you have the original error message? Can you trace through the steps
that usrmerge performs, and undo whichever ones have already been done?
Or, if you're close to completion, complete the remaining steps by hand,
and then install usr-is-merged?
In the worst possible case, you might need to reinstall from scratch.
So, no matter what you try to do at this point, making a full backup
of your important data (/home /etc /usr/local and so on) would be highly
advisable.