usrmerge error after upgrading from 20.10 to 21.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
usrmerge (Debian) |
Fix Released
|
Unknown
|
|||
usrmerge (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Hirsute |
Fix Released
|
Medium
|
Unassigned | ||
Impish |
Fix Released
|
Medium
|
Unassigned | ||
Jammy |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
* Starting with Ubuntu Hirsute, the 'usrmerge' package is pulled into the default installation, doing the merging of /{bin,sbin,lib}/ and /usr/{bin,sbin,lib} on upgrade. If there are left-over generated files it will fail with an error like this:
Setting up usrmerge (24ubuntu3) ...
FATAL ERROR:
Both /lib/udev/hwdb.bin and /usr/lib/
The upgrade has completed but there were errors during the upgrade
process.
* We want a fix in Hirsute+ that clears the old location (e.g. /lib/udev/hwdb.bin) if the file has already been re-generated at the new location (e.g. /usr/lib/
[Test Plan]
Prepare a recent, but non-usrmerge'd system (e.g. launch Bionic and upgrade to Focal then Hirsute):
$ lxc launch ubuntu:bionic usrmerge
# do-release-upgrade
[...]
# reboot
# ls -la / # to make sure that /lib is not (yet) a link to /usr/lib
Simulate duplicated generated files & upgrade:
# mkdir -p /usr/lib/udev && cp /lib/udev/hwdb.bin /usr/lib/udev/
# vim /etc/update-
# do-release-upgrade
[...]
=> Upgrade fails, press "C" to cancel bug report
=> "The upgrade has completed but there were errors during the upgrade process."
Verify that the script still fails:
# /usr/lib/
FATAL ERROR:
Both /lib/udev/hwdb.bin and /usr/lib/
Install relevant usrmerge package:
# wget https:/
# dpkg -i usrmerge_
=> The system has been successfully converted.
# /usr/lib/
=> The system has been successfully converted.
# echo $?
0
[Where problems could occur]
* The upload modifies the convert-usrmerge script, adding special handling for certain, generated files.
* If something goes wrong, it could delete the wrong state of udev's hwdb which would be re-generated by systemd-
* It could also interrupt the upgrade processes on installation of the usrmerge package, asking the user for manual action (e.g. solving some file conflict and re-running /usr/lib/
[Other Info]
* The patch was sent to Debian: https:/
=== Original Description ===
I got the following error after upgrading from 20.10 to 21.04:
Setting up usrmerge (24ubuntu3) ...
FATAL ERROR:
Both /lib/udev/hwdb.bin and /usr/lib/
You can try correcting the errors reported and running again
/usr/lib/
Do not install or update other Debian packages until the program
has been run successfully.
dpkg: error processing package usrmerge (--configure):
installed usrmerge package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
usrmerge
Running "sudo dpkg --configure -a", "sudo apt -f install" or "sudo /usr/lib/
affects: | ubuntu → usrmerge (Ubuntu) |
tags: | added: rls-hh-incoming |
tags: | added: fr-1475 |
tags: | removed: rls-hh-incoming |
description: | updated |
Changed in usrmerge (Debian): | |
status: | Unknown → New |
tags: |
added: dist-upgrade removed: usrmerge |
Changed in usrmerge (Ubuntu Hirsute): | |
importance: | Undecided → Medium |
Changed in usrmerge (Ubuntu Impish): | |
importance: | Undecided → Medium |
Changed in usrmerge (Ubuntu Jammy): | |
importance: | Undecided → Medium |
tags: | removed: verification-needed |
summary: |
- usrmerge error after upgradingfrom 20.10 to 21.04 + usrmerge error after upgrading from 20.10 to 21.04 |
Changed in usrmerge (Debian): | |
status: | New → Fix Released |
May be related to https:/ /bugs.launchpad .net/ubuntu/ +source/ usrmerge/ +bug/1924850