[Bug 2038530] [NEW] usrmerge failure during Release 22 to Release 23 upgrade

Tae-Hoon Chung 2038530 at bugs.launchpad.net
Thu Oct 5 10:54:04 UTC 2023


Public bug reported:

(1) I tried to upgrade from Release 22 to Release 23 and met a seriese
of FATAL ERRORs starting from usrmerge like this: (It seems like similar
things happened while installing several other packages as well as you
can see below)

...

Preparing to unpack .../xkb-data_2.38-0ubuntu1_all.deb ...
Unpacking xkb-data (2.38-0ubuntu1) over (2.33-1) ...
Preparing to unpack .../kbd_2.5.1-1ubuntu1_amd64.deb ...
Unpacking kbd (2.5.1-1ubuntu1) over (2.3.0-3ubuntu4.22.04) ...
Selecting previously unselected package usrmerge.
Preparing to unpack .../usrmerge_33ubuntu1_all.deb ...
Unpacking usrmerge (33ubuntu1) ...
Setting up usrmerge (33ubuntu1) ...
ionice: ioprio_set failed: Operation not permitted
chrt: failed to set pid 52829's policy: Operation not permitted

FATAL ERROR:
Both /lib/x86_64-linux-gnu/libselinux.so.1 and /usr/lib/x86_64-linux-gnu/libselinux.so.1 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
Exception during pm.DoInstall():  E:Sub-process /usr/bin/dpkg returned an error code (1)

Could not install the upgrades

The upgrade has aborted. Your system could be in an unusable state. A 
recovery will run now (dpkg --configure -a). 

Please report this bug in a browser at 
http://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+filebug 
and attach the files in /var/log/dist-upgrade/ to the bug report. 
E:Sub-process /usr/bin/dpkg returned an error code (1) 

...

dpkg: error processing package libnss-systemd:amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up libencode-locale-perl (1.05-3) ...
Setting up libdevel-callchecker-perl:amd64 (0.008-2) ...
Setting up libhtml-parser-perl:amd64 (3.81-1) ...
Setting up libhttp-message-perl (6.44-1) ...
Setting up libhttp-negotiate-perl (6.01-2) ...
Setting up libhtml-tree-perl (5.07-3) ...
Setting up libparams-classify-perl:amd64 (0.015-2build2) ...
Setting up libwww-perl (6.67-1) ...
Setting up libxml-parser-perl (2.46-4) ...
Setting up libxml-twig-perl (1:3.52-2) ...
Setting up libnet-dbus-perl (1.2.0-2) ...
Processing triggers for install-info (6.8-4build1) ...
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
Processing triggers for libc-bin (2.37-0ubuntu2.1) ...
Processing triggers for debianutils (5.7-0.4) ...
Processing triggers for ca-certificates (20230311ubuntu0.23.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Errors were encountered while processing:
 usrmerge
 systemd
 systemd-timesyncd
 libpam-systemd:amd64
 systemd-sysv
 libnss-systemd:amd64

Upgrade complete

The upgrade has completed but there were errors during the upgrade 
process. 

To continue please press [ENTER]


--------------------------------------------------------------------------------------------------------
(2) When I typed "lsb_release -a" after this, I got the following message but I think the upgrade is not complete due to the above mentioned errors in usrmerge, systemd, systemd-timesyncd, libpam-systemd:arm64, systemd-sysv, libnss-systemd:amd64.


No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 23.04
Release:	23.04
Codename:	lunar


---------------------------------------------------------------------------------------------------------
(3) Since the error report seemed to be due to existence of two "similar" library files in two different places, I "manually" changed one of the files for "all" occasions of such duplicate files like this:

sudo mv /usr/lib/x86_64-linux-gnu/libselinux.so.1 /usr/lib/x86_64-linux-gnu/libselinux.so.1.old
...


When I was done with these file name changes and ran the command "sudo /usr/lib/usrmerge/convert-usrmerge", I encountered the following error message:

ionice: ioprio_set failed: Operation not permitted
chrt: failed to set pid 62578's policy: Operation not permitted

FATAL ERROR:
Can't rename /bin: Invalid cross-device link at /usr/lib/usrmerge/convert-usrmerge line 284.

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.


---------------------------------------------------------------------------------------------------------
So, what should I do now?

** Affects: ubuntu-release-upgrader (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2038530

Title:
  usrmerge failure during Release 22 to Release 23 upgrade

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:
  (1) I tried to upgrade from Release 22 to Release 23 and met a seriese
  of FATAL ERRORs starting from usrmerge like this: (It seems like
  similar things happened while installing several other packages as
  well as you can see below)

  ...

  Preparing to unpack .../xkb-data_2.38-0ubuntu1_all.deb ...
  Unpacking xkb-data (2.38-0ubuntu1) over (2.33-1) ...
  Preparing to unpack .../kbd_2.5.1-1ubuntu1_amd64.deb ...
  Unpacking kbd (2.5.1-1ubuntu1) over (2.3.0-3ubuntu4.22.04) ...
  Selecting previously unselected package usrmerge.
  Preparing to unpack .../usrmerge_33ubuntu1_all.deb ...
  Unpacking usrmerge (33ubuntu1) ...
  Setting up usrmerge (33ubuntu1) ...
  ionice: ioprio_set failed: Operation not permitted
  chrt: failed to set pid 52829's policy: Operation not permitted

  FATAL ERROR:
  Both /lib/x86_64-linux-gnu/libselinux.so.1 and /usr/lib/x86_64-linux-gnu/libselinux.so.1 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
  Exception during pm.DoInstall():  E:Sub-process /usr/bin/dpkg returned an error code (1)

  Could not install the upgrades

  The upgrade has aborted. Your system could be in an unusable state. A 
  recovery will run now (dpkg --configure -a). 

  Please report this bug in a browser at 
  http://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+filebug 
  and attach the files in /var/log/dist-upgrade/ to the bug report. 
  E:Sub-process /usr/bin/dpkg returned an error code (1) 

  ...

  dpkg: error processing package libnss-systemd:amd64 (--configure):
   dependency problems - leaving unconfigured
  Setting up libencode-locale-perl (1.05-3) ...
  Setting up libdevel-callchecker-perl:amd64 (0.008-2) ...
  Setting up libhtml-parser-perl:amd64 (3.81-1) ...
  Setting up libhttp-message-perl (6.44-1) ...
  Setting up libhttp-negotiate-perl (6.01-2) ...
  Setting up libhtml-tree-perl (5.07-3) ...
  Setting up libparams-classify-perl:amd64 (0.015-2build2) ...
  Setting up libwww-perl (6.67-1) ...
  Setting up libxml-parser-perl (2.46-4) ...
  Setting up libxml-twig-perl (1:3.52-2) ...
  Setting up libnet-dbus-perl (1.2.0-2) ...
  Processing triggers for install-info (6.8-4build1) ...
  Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
  Processing triggers for libc-bin (2.37-0ubuntu2.1) ...
  Processing triggers for debianutils (5.7-0.4) ...
  Processing triggers for ca-certificates (20230311ubuntu0.23.04.1) ...
  Updating certificates in /etc/ssl/certs...
  0 added, 0 removed; done.
  Running hooks in /etc/ca-certificates/update.d...
  done.
  Errors were encountered while processing:
   usrmerge
   systemd
   systemd-timesyncd
   libpam-systemd:amd64
   systemd-sysv
   libnss-systemd:amd64

  Upgrade complete

  The upgrade has completed but there were errors during the upgrade 
  process. 

  To continue please press [ENTER]

  
  --------------------------------------------------------------------------------------------------------
  (2) When I typed "lsb_release -a" after this, I got the following message but I think the upgrade is not complete due to the above mentioned errors in usrmerge, systemd, systemd-timesyncd, libpam-systemd:arm64, systemd-sysv, libnss-systemd:amd64.

  
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu 23.04
  Release:	23.04
  Codename:	lunar

  
  ---------------------------------------------------------------------------------------------------------
  (3) Since the error report seemed to be due to existence of two "similar" library files in two different places, I "manually" changed one of the files for "all" occasions of such duplicate files like this:

  sudo mv /usr/lib/x86_64-linux-gnu/libselinux.so.1 /usr/lib/x86_64-linux-gnu/libselinux.so.1.old
  ...

  
  When I was done with these file name changes and ran the command "sudo /usr/lib/usrmerge/convert-usrmerge", I encountered the following error message:

  ionice: ioprio_set failed: Operation not permitted
  chrt: failed to set pid 62578's policy: Operation not permitted

  FATAL ERROR:
  Can't rename /bin: Invalid cross-device link at /usr/lib/usrmerge/convert-usrmerge line 284.

  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.

  
  ---------------------------------------------------------------------------------------------------------
  So, what should I do now?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2038530/+subscriptions




More information about the foundations-bugs mailing list