Public bug reported: I've been upgrading an Ubunutu server install (that probably originated with v12 or so, many years ago), and it failed during the upgrade to 24.04.1 with the error:
``` E:Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 8439 (apt-get), W:Be aware that removing the lock file is not a solution and may break your system., E:Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? dpkg: error: dpkg frontend lock was locked by another process with pid 8439 ``` I was running nothing else of note at the time, and seconds after the error when I checked, and pid 8439 did not exist (presumably it was part of the release upgrade process). ``` > lsb_release -rd Description: Ubuntu 22.04.5 LTS Release: 22.04 ``` The last messages displayed were: ``` Get:1429 http://us.archive.ubuntu.com/ubuntu noble/universe amd64 pocketsphinx-en-us all 0.8.0+real5prealpha+1-15ubuntu5 [27.4 MB] Get:1430 http://us.archive.ubuntu.com/ubuntu noble/main amd64 ssh-import-id all 5.11-0ubuntu2 [10.0 kB] Fetched 2,117 MB in 6s (7,087 kB/s) Upgrading Fetched 0 B in 0s (0 B/s) Upgrading: libc6-dbg:amd64 < 2.35-0ubuntu3.8 | 2.39-0ubuntu8.3 @ii umH Ib > due to libc6-dbg:amd64 Depends on libc6:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU Ib > (= 2.35-0ubuntu3.8) Upgrading: libnih1:amd64 < 1.0.3-12build1 @ii mK Ib > due to libnih1:amd64 Depends on libc6:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU Ib > (< 2.36) Upgrading: libc6-i386:amd64 < 2.35-0ubuntu3.8 | 2.39-0ubuntu8.3 @ii umH Ib > due to libc6-i386:amd64 Depends on libc6:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU Ib > (= 2.35-0ubuntu3.8) Upgrading: libc6-dev:amd64 < 2.35-0ubuntu3.8 | 2.39-0ubuntu8.3 @ii umH Ib > due to libc6-dev:amd64 Depends on libc6:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU Ib > (= 2.35-0ubuntu3.8) Upgrading: libc-dev-bin:amd64 < 2.35-0ubuntu3.8 | 2.39-0ubuntu8.3 @ii umH NPb Ib > due to libc-dev-bin:amd64 Depends on libc6:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU Ib > (< 2.36) Upgrading: libc-bin:amd64 < 2.35-0ubuntu3.8 | 2.39-0ubuntu8.3 @ii umH Ib > due to libc-bin:amd64 Depends on libc6:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU Ib > (< 2.36) MarkInstall libc6:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU Ib > FU=1 MarkInstall locales:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU Ib > FU=0 Installing libc-bin:amd64 as Depends of locales:amd64 MarkInstall libc-bin:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU > FU=0 MarkInstall libc6-dbg:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU > FU=0 MarkInstall libnih1:amd64 < 1.0.3-12build1 @ii mK Ib > FU=0 libnih1:amd64 Depends on libc6:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii pumU > (< 2.36) can't be satisfied! (dep) Removing: libnih1:amd64 as upgrade is not possible MarkDelete libnih1:amd64 < 1.0.3-12build1 @ii mK Ib > FU=0 MarkInstall libc6-i386:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU > FU=0 MarkInstall libc6-dev:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU Ib > FU=0 Installing libc-dev-bin:amd64 as Depends of libc6-dev:amd64 MarkInstall libc-dev-bin:amd64 < 2.35-0ubuntu3.8 -> 2.39-0ubuntu8.3 @ii umU NPb IPb > FU=0 ignore old unsatisfied important dependency on libc-devtools:amd64 Starting pkgProblemResolver with broken count: 2 Starting 2 pkgProblemResolver with broken count: 2 Investigating (0) libnih-dbus1:amd64 < 1.0.3-12build1 @ii mK Ib > Broken libnih-dbus1:amd64 Depends on libnih1:amd64 < 1.0.3-12build1 @ii mR > (= 1.0.3-12build1) Considering libnih1:amd64 0 as a solution to libnih-dbus1:amd64 -1 Removing libnih-dbus1:amd64 rather than change libnih1:amd64 MarkDelete libnih-dbus1:amd64 < 1.0.3-12build1 @ii mK Ib > FU=0 Investigating (0) mountall:amd64 < 2.54ubuntu1 @ii mK Ib > Broken mountall:amd64 Depends on libnih-dbus1:amd64 < 1.0.3-12build1 @ii mR > (>= 1.0.0) Considering libnih-dbus1:amd64 -1 as a solution to mountall:amd64 -2 Removing mountall:amd64 rather than change libnih-dbus1:amd64 MarkDelete mountall:amd64 < 2.54ubuntu1 @ii mK Ib > FU=0 Done Upgrading 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:Could not get lock /var/lib/dpkg/lock-frontend. It is held by ``` Upon closer inspection, possibly the error message displayed at the end is not the error that caused the upgrade to fail, but an error that happened when it tried to recover? I restored my /etc/apt/sources.list and tried again, and the same messages were displayed up until "Upgrading" and then it continued fine after that: ``` Upgrading Fetched 0 B in 0s (0 B/s) Preconfiguring packages ... Preconfiguring packages ... Preconfiguring packages ... (Reading database ... 188327 files and directories currently installed.) Preparing to unpack .../libc6-dbg_2.39-0ubuntu8.3_amd64.deb ... Unpacking libc6-dbg:amd64 (2.39-0ubuntu8.3) over (2.35-0ubuntu3.8) ... Progress: [ 5%] ``` It seems the retry has succeeded, so, no reproduction case here, no assistance needed on my side, but it said to please report this bug so I did, cheers! ** Affects: ubuntu-release-upgrader (Ubuntu) Importance: Undecided Status: New ** Attachment added: "contents of /var/log/dist-upgrade" https://bugs.launchpad.net/bugs/2087989/+attachment/5836748/+files/dist-upgrade.tgz -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2087989 Title: do-release-upgrade failure from 22.04.5 to 24.04.1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2087989/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
