Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1019506: usrmerge: usr-is-merged claims system is not usr-merged but usrmerge is installed

1,508 views
Skip to first unread message

Philip Rinn

unread,
Sep 10, 2022, 3:30:03 PM9/10/22
to
Package: usrmerge
Version: 29
Severity: normal
X-Debbugs-Cc: ri...@debian.org

Hi,

I'm pretty sure I migrated my system to usr-merged long time ago (uninstalled
ursmerge again iirc). I now wanted to install usr-is-merged to avoid getting
usrmerge installed again - and usr-is-merge claimed my system was not usr-
merged. I installed usrmerge again but usr-is-merged still thinks it's not
merged:

philip@debian:~$ LANG=C sudo apt install usrmerge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
usrmerge is already the newest version (29).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

philip@debian:~$ LANG=C sudo 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 0 not upgraded.
Need to get 0 B/4332 B of archives.
After this operation, 12.3 kB of additional disk space will be used.
(Reading database ... 415597 files and directories currently installed.)
Preparing to unpack .../usr-is-merged_29_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_29_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_29_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Am I missing something here?

Best
Philip


-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (990, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages usrmerge depends on:
ii libfile-find-rule-perl 0.34-2
ii perl 5.34.0-5

usrmerge recommends no packages.

usrmerge suggests no packages.

-- no debconf information

Philip RInn

unread,
Sep 10, 2022, 4:10:03 PM9/10/22
to
Hi

I guess, I spotted the problem: it seems /lib32 is not merged.

lrwxrwxrwx 1 root root 7 20. Nov 2020 bin -> usr/bin
lrwxrwxrwx 1 root root 7 20. Nov 2020 lib -> usr/lib
drwxr-xr-x 2 root root 4,0K 3. Sep 10:33 lib32
lrwxrwxrwx 1 root root 9 20. Nov 2020 lib64 -> usr/lib64
lrwxrwxrwx 1 root root 8 20. Nov 2020 sbin -> usr/sbin


Not sure if it's of relevance, but that's what is in /lib32, /usr/lib32

philip@debian:~$ ls -la /lib32
drwxr-xr-x 2 root root 4,0K 3. Sep 10:33 .
drwxr-xr-x 19 root root 4,0K 9. Sep 14:56 ..
-rwxr-xr-x 1 root root 200K 27. Aug 13:38 ld-linux.so.2
-rw-r--r-- 1 root root 14K 27. Aug 13:38 libanl.so.1
-rw-r--r-- 1 root root 14K 27. Aug 13:38 libBrokenLocale.so.1
-rw-r--r-- 1 root root 43K 27. Aug 13:38 libc_malloc_debug.so.0
-rwxr-xr-x 1 root root 2,2M 27. Aug 13:38 libc.so.6
-rw-r--r-- 1 root root 14K 27. Aug 13:38 libdl.so.2
-rw-r--r-- 1 root root 18K 27. Aug 13:38 libmemusage.so
-rw-r--r-- 1 root root 1014K 27. Aug 13:38 libm.so.6
-rw-r--r-- 1 root root 94K 27. Aug 13:38 libnsl.so.1
-rw-r--r-- 1 root root 38K 27. Aug 13:38 libnss_compat.so.2
-rw-r--r-- 1 root root 14K 27. Aug 13:38 libnss_dns.so.2
-rw-r--r-- 1 root root 14K 27. Aug 13:38 libnss_files.so.2
-rw-r--r-- 1 root root 26K 27. Aug 13:38 libnss_hesiod.so.2
-rw-r--r-- 1 root root 14K 27. Aug 13:38 libpcprofile.so
-rw-r--r-- 1 root root 14K 27. Aug 13:38 libpthread.so.0
-rw-r--r-- 1 root root 62K 27. Aug 13:38 libresolv.so.2
-rw-r--r-- 1 root root 14K 27. Aug 13:38 librt.so.1
-rw-r--r-- 1 root root 22K 27. Aug 13:38 libSegFault.so
-rw-r--r-- 1 root root 38K 27. Aug 13:38 libthread_db.so.1
-rw-r--r-- 1 root root 14K 27. Aug 13:38 libutil.so.1

philip@debian:~$ ls -la /usr/lib32
drwxr-xr-x 3 root root 4,0K 10. Sep 12:21 .
drwxr-xr-x 15 root root 4,0K 15. Apr 12:54 ..
drwxr-xr-x 3 root root 36K 3. Sep 10:33 gconv
-rw-r--r-- 1 root root 150K 8. Sep 15:52 libgcc_s.so.1
lrwxrwxrwx 1 root root 19 8. Sep 15:52 libstdc++.so.6 -> libstdc++.so.6.0.30
-rw-r--r-- 1 root root 2,2M 8. Sep 15:52 libstdc++.so.6.0.30



Not sure how I got into that situation ... and not sure why installing usrmerge
again didn't fix it ...

Best,
Philip
OpenPGP_signature

Marco d'Itri

unread,
Sep 11, 2022, 1:10:04 PM9/11/22
to
On Sep 10, Philip RInn <ri...@debian.org> wrote:

> I guess, I spotted the problem: it seems /lib32 is not merged.
Did you install, remove and then install again the biarch libc, like
it was discussed in #926699?

> Not sure how I got into that situation ... and not sure why installing
> usrmerge again didn't fix it ...
Now I see the problem: usrmerge.postinst checks if /lib is a symlink,
but it does not check the biarch directories.
I think that the simple fix would be to take is_merged() from
usr-is-merged.preinst and use it in usrmerge.postinst as well.

For the time being, as a workaround you just need to run
/usr/lib/usrmerge/convert-usrmerge manually.

--
ciao,
Marco
signature.asc

Philip RInn

unread,
Sep 11, 2022, 1:40:04 PM9/11/22
to
On 11.09.22 at 18:59, Marco d'Itri wrote:
> On Sep 10, Philip RInn <ri...@debian.org> wrote:
>
>> I guess, I spotted the problem: it seems /lib32 is not merged.
> Did you install, remove and then install again the biarch libc, like
> it was discussed in #926699?

That might very well be. Unfortunately I only have dpkg/apt logs for the last
year and they just show upgrades of libc6-i386, so I can't say for sure :-/.

> For the time being, as a workaround you just need to run
> /usr/lib/usrmerge/convert-usrmerge manually.

Thanks, that worked.


Best,
Philip
OpenPGP_signature
0 new messages