[Bug 2004351] [NEW] proxmox lxc upgrade to 22.04 failed

Larry Brock 2004351 at bugs.launchpad.net
Tue Jan 31 16:26:35 UTC 2023


Public bug reported:

Upgrading from 20.04.5 LTS to 22.04.1 says it failed with a message to
"report this bug". The logs at the end of the upgrade (including this
message) are below.  If I do "hostnamectl" or "cat /etc/os-release" now,
both show that I am at 22.04.1 although I don't know if my system is
stable or not.

This is an LXC container running on ProxMox 6.3-2.  Ubuntu 20.04.5 LTS
is the OS I was upgrading from.  I upgraded over SSH.

/var/log/dist-upgrade/ files attached

Prior to Upgrade:
:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
:~# hostnamectl
   Static hostname: lxc-x
         Icon name: computer-container
           Chassis: container
        Machine ID: b354c482f7cc342776f020ee5ea440c3
           Boot ID: 37c4df31eb7d44aba71d4cd3874b492f
    Virtualization: lxc
  Operating System: Ubuntu 20.04.5 LTS
            Kernel: Linux 5.4.78-1-pve
      Architecture: x86-64


Upgrade procedure:
:~# apt update -y && apt upgrade -y
root at lxc-larry01:~# apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
:~# apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
:~# apt install update-manager-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
update-manager-core is already the newest version (1:20.04.10.11).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
:~# do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1267 kB]
Fetched 1267 kB in 0s (0 B/s)
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg'
extracting 'jammy.tar.gz'


Logs at end of upgrade

Progress: [ 99%]
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for ca-certificates (20211016ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for dbus (1.12.20-2ubuntu4.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)

Setting up usrmerge (25ubuntu2) ...
Smartmatch is experimental at /usr/lib/usrmerge/convert-usrmerge line 172.
ionice: ioprio_set failed: Operation not permitted
chrt: failed to set pid 14954's policy: Operation not permitted

FATAL ERROR:
Both /sbin/genl and /usr/sbin/genl 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.

dpkg: error processing package usrmerge (--configure):
 installed usrmerge package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 usrmerge

Upgrade complete

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

To continue please press [ENTER]

My current status:

:~# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
:~# hostnamectl
 Static hostname: lxc-x
       Icon name: computer-container
         Chassis: container
      Machine ID: b354c482f7cc342776f020ee5ea440c3
         Boot ID: 37c4df31eb7d44aba71d4cd3874b492f
  Virtualization: lxc
Operating System: Ubuntu 22.04.1 LTS
          Kernel: Linux 5.4.78-1-pve
    Architecture: x86-64
:~# lsb_release -rd
Description:    Ubuntu 22.04.1 LTS
Release:        22.04

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

** Attachment added: "dist-upgrade.zip"
   https://bugs.launchpad.net/bugs/2004351/+attachment/5644153/+files/dist-upgrade.zip

-- 
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/2004351

Title:
  proxmox lxc upgrade to 22.04 failed

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

Bug description:
  Upgrading from 20.04.5 LTS to 22.04.1 says it failed with a message to
  "report this bug". The logs at the end of the upgrade (including this
  message) are below.  If I do "hostnamectl" or "cat /etc/os-release"
  now, both show that I am at 22.04.1 although I don't know if my system
  is stable or not.

  This is an LXC container running on ProxMox 6.3-2.  Ubuntu 20.04.5 LTS
  is the OS I was upgrading from.  I upgraded over SSH.

  /var/log/dist-upgrade/ files attached

  Prior to Upgrade:
  :~# cat /etc/os-release
  NAME="Ubuntu"
  VERSION="20.04.5 LTS (Focal Fossa)"
  ID=ubuntu
  ID_LIKE=debian
  PRETTY_NAME="Ubuntu 20.04.5 LTS"
  VERSION_ID="20.04"
  HOME_URL="https://www.ubuntu.com/"
  SUPPORT_URL="https://help.ubuntu.com/"
  BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
  PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
  VERSION_CODENAME=focal
  UBUNTU_CODENAME=focal
  :~# hostnamectl
     Static hostname: lxc-x
           Icon name: computer-container
             Chassis: container
          Machine ID: b354c482f7cc342776f020ee5ea440c3
             Boot ID: 37c4df31eb7d44aba71d4cd3874b492f
      Virtualization: lxc
    Operating System: Ubuntu 20.04.5 LTS
              Kernel: Linux 5.4.78-1-pve
        Architecture: x86-64

  
  Upgrade procedure:
  :~# apt update -y && apt upgrade -y
  root at lxc-larry01:~# apt dist-upgrade
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Calculating upgrade... Done
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  :~# apt autoremove
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  :~# apt install update-manager-core
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  update-manager-core is already the newest version (1:20.04.10.11).
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  :~# do-release-upgrade
  Checking for a new Ubuntu release
  Get:1 Upgrade tool signature [819 B]
  Get:2 Upgrade tool [1267 kB]
  Fetched 1267 kB in 0s (0 B/s)
  authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg'
  extracting 'jammy.tar.gz'

  
  Logs at end of upgrade

  Progress: [ 99%]
  Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
  Processing triggers for ca-certificates (20211016ubuntu0.22.04.1) ...
  Updating certificates in /etc/ssl/certs...
  0 added, 0 removed; done.
  Running hooks in /etc/ca-certificates/update.d...
  done.
  Processing triggers for dbus (1.12.20-2ubuntu4.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)

  Setting up usrmerge (25ubuntu2) ...
  Smartmatch is experimental at /usr/lib/usrmerge/convert-usrmerge line 172.
  ionice: ioprio_set failed: Operation not permitted
  chrt: failed to set pid 14954's policy: Operation not permitted

  FATAL ERROR:
  Both /sbin/genl and /usr/sbin/genl 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.

  dpkg: error processing package usrmerge (--configure):
   installed usrmerge package post-installation script subprocess returned error exit status 1
  Errors were encountered while processing:
   usrmerge

  Upgrade complete

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

  To continue please press [ENTER]

  My current status:

  :~# cat /etc/os-release
  PRETTY_NAME="Ubuntu 22.04.1 LTS"
  NAME="Ubuntu"
  VERSION_ID="22.04"
  VERSION="22.04.1 LTS (Jammy Jellyfish)"
  VERSION_CODENAME=jammy
  ID=ubuntu
  ID_LIKE=debian
  HOME_URL="https://www.ubuntu.com/"
  SUPPORT_URL="https://help.ubuntu.com/"
  BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
  PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
  UBUNTU_CODENAME=jammy
  :~# hostnamectl
   Static hostname: lxc-x
         Icon name: computer-container
           Chassis: container
        Machine ID: b354c482f7cc342776f020ee5ea440c3
           Boot ID: 37c4df31eb7d44aba71d4cd3874b492f
    Virtualization: lxc
  Operating System: Ubuntu 22.04.1 LTS
            Kernel: Linux 5.4.78-1-pve
      Architecture: x86-64
  :~# lsb_release -rd
  Description:    Ubuntu 22.04.1 LTS
  Release:        22.04

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




More information about the foundations-bugs mailing list