Verifying the change for base-files in resolute following the testplan:
Launching a fresh resolute container:
```
$ lxc launch ubuntu:resolute base-files-resolute
Launching base-files-resolute
$ lxc exec base-files-resolute -- su - ubuntu
ubuntu@base-files-resolute:~$
```
1. Confirming that the multilib dir is absent (all report No such file
or directory):
```
ubuntu@base-files-resolute:~$ ls -ld /usr/lib32 /usr/libo32 /usr/libx32 /lib32
/libo32 /libx32
ls: cannot access '/usr/lib32': No such file or directory
ls: cannot access '/usr/libo32': No such file or directory
ls: cannot access '/usr/libx32': No such file or directory
ls: cannot access '/lib32': No such file or directory
ls: cannot access '/libo32': No such file or directory
ls: cannot access '/libx32': No such file or directory
```
2. Reproducing with the current version:
```
ubuntu@base-files-resolute:~$ apt policy base-files
base-files:
Installed: 14ubuntu6.2
Candidate: 14ubuntu6.2
Version table:
*** 14ubuntu6.2 500
500 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64
Packages
100 /var/lib/dpkg/status
14ubuntu6 500
500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
ubuntu@base-files-resolute:~$ sudo apt install --reinstall base-files
Summary:
Upgrading: 0, Installing: 0, Reinstalling: 1, Removing: 0, Not Upgrading: 0
Download size: 74.9 kB
Space needed: 0 B / 11.9 GB available
Get:1 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 base-files
amd64 14ubuntu6.2 [74.9 kB]
Fetched 74.9 kB in 0s (270 kB/s)
(Reading database ... 44428 files and directories currently installed.)
Preparing to unpack .../base-files_14ubuntu6.2_amd64.deb ...
******************************************************************************
*
* The base-files package cannot be installed because
* /lib32 is a dangling symbolic link.
*
* This is an unexpected situation. Cannot proceed with the upgrade.
*
* For more information please read https://wiki.debian.org/UsrMerge.
*
******************************************************************************
dpkg: error processing archive
/var/cache/apt/archives/base-files_14ubuntu6.2_amd64.deb (--unp
ack):
new base-files package preinst maintainer script subprocess failed with exit
status 1
dmesg: read kernel buffer failed: Operation not permitted
motd-news.service is a
disabled or a
static unit not running, not starting it.
Errors were encountered while processing:
/var/cache/apt/archives/base-files_14ubuntu6.2_amd64.deb
needrestart is being skipped since dpkg has failed
Error: Sub-process /usr/bin/dpkg returned an error code (1)
```
As expected, dpkg fails with
`/lib32 is a dangling symbolic link ... Cannot proceed with the upgrade`
3. Enabling `-proposed` and upgrade:
```
ubuntu@base-files-resolute:~$ sudo apt install -t resolute-proposed base-files
Upgrading:
base-files motd-news-config
Summary:
Upgrading: 2, Installing: 0, Removing: 0, Not Upgrading: 52
Download size: 80.0 kB
Space needed: 0 B / 11.9 GB available
Continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu resolute-proposed/main amd64
motd-news-config all 14ubuntu6.3 [5286 B]
Get:2 http://archive.ubuntu.com/ubuntu resolute-proposed/main amd64 base-files
amd64 14ubuntu6.3 [74.7 kB]
Fetched 80.0 kB in 0s (271 kB/s)
(Reading database ... 44428 files and directories currently installed.)
Preparing to unpack .../motd-news-config_14ubuntu6.3_all.deb ...
Unpacking motd-news-config (14ubuntu6.3) over (14ubuntu6.2) ...
Preparing to unpack .../base-files_14ubuntu6.3_amd64.deb ...
Removing dangling /lib32 symbolic link.
Removing dangling /libo32 symbolic link.
Removing dangling /libx32 symbolic link.
Unpacking base-files (14ubuntu6.3) over (14ubuntu6.2) ...
Setting up base-files (14ubuntu6.3) ...
motd-news.service is a disabled or a static unit not running, not starting it.
Setting up motd-news-config (14ubuntu6.3) ...
Processing triggers for man-db (2.13.1-1build1) ...
Processing triggers for plymouth-theme-ubuntu-text
(24.004.60+git20250831.4a3c171d-0ubuntu8) .
..
Processing triggers for install-info (7.2-5ubuntu2) ...
Processing triggers for plymouth (24.004.60+git20250831.4a3c171d-0ubuntu8) ...
Processing triggers for dracut (110-11ubuntu0.1) ...
Scanning processes...
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
```
As expected, the output reports `Removing dangling /lib... symbolic link.`
and the new version is installed:
```
ubuntu@base-files-resolute:~$ dpkg -s base-files | grep Version
Version: 14ubuntu6.3
ubuntu@base-files-resolute:~$ ls -ld /lib32 /libo32 /libx32
ls: cannot access '/lib32': No such file or directory
ls: cannot access '/libo32': No such file or directory
ls: cannot access '/libx32': No such file or directory
```
As expected, "No such file or directory" for all three
4. Regression check, valid symlink kept and trigger still works:
```
ubuntu@base-files-resolute:~$ sudo apt install libc6-i386
ubuntu@base-files-resolute:~$ ls -ld /usr/lib32 # directory exists
drwxr-xr-x 1 root root 550 Oct 23 12:39 /usr/lib32
ubuntu@base-files-resolute:~$ readlink /lib32 # -> usr/lib32 (created by the
base-files trigger)
usr/lib32
ubuntu@base-files-resolute:~$ sudo apt install --reinstall base-files
Summary:
Upgrading: 0, Installing: 0, Reinstalling: 1, Removing: 0, Not Upgrading: 24
Download size: 74.7 kB
Space needed: 0 B / 11.6 GB available
Get:1 http://archive.ubuntu.com/ubuntu resolute-proposed/main amd64 base-files
amd64 14ubuntu6.3 [74.7 kB]
Fetched 74.7 kB in 1s (128 kB/s)
(Reading database ... 44711 files and directories currently installed.)
Preparing to unpack .../base-files_14ubuntu6.3_amd64.deb ...
Unpacking base-files (14ubuntu6.3) over (14ubuntu6.3) ...
Setting up base-files (14ubuntu6.3) ...
motd-news.service is a disabled or a static unit not running, not starting it.
Processing triggers for man-db (2.13.1-1build1) ...
Processing triggers for plymouth-theme-ubuntu-text
(24.004.60+git20250831.4a3c171d-0ubuntu8) .
..
Processing triggers for install-info (7.2-5ubuntu2) ...
Processing triggers for plymouth (24.004.60+git20250831.4a3c171d-0ubuntu8) ...
Processing triggers for dracut (110-11ubuntu0.1) ...
Scanning processes...
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
```
As expected, the install succeeds, NO `Removing dangling` message is
printed.
```
ubuntu@base-files-resolute:~$ readlink /lib32 # still -> usr/lib32
usr/lib32
ubuntu@base-files-resolute:~$ sudo apt purge libc6-i386 && sudo apt autoremove
--purge
REMOVING:
libc6-i386*
Summary:
Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 24
Freed space: 12.6 MB
Continue? [Y/n]
(Reading database ... 44709 files and directories currently installed.)
Removing libc6-i386 (2.43-2ubuntu2.4) ...
Processing triggers for base-files (14ubuntu6.3) ...
Processing triggers for libc-bin (2.43-2ubuntu2.4) ...
(Reading database ... 44427 files and directories currently installed.)
Purging configuration files for libc6-i386 (2.43-2ubuntu2.4) ...
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 24
ubuntu@base-files-resolute:~$ ls -ld /usr/lib32 /lib32
ls: cannot access '/usr/lib32': No such file or directory
ls: cannot access '/lib32': No such file or directory
```
As expected, both report `No such file or directory`
** Tags removed: verification-needed-resolute
** Tags added: verification-done-resolute
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2131303
Title:
[SRU] package base-files 13ubuntu10.2 failed to install/upgrade: new
base-files package pre-installation script subprocess returned error
exit status 1: /lib32 is a dangling symbolic link
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/2131303/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs