Broken apt upgrade (PEBKAC)

jon danniken jondanniken at gmail.com
Tue Sep 1 20:11:46 UTC 2020


Hi all, I was upgrading (sudo apt upgrade) my Kubuntu 18.04 system, and I
was presented with a grub config file that was different than the installed
version, and asked which version to keep.  I chose to show the difference,
but instead of hitting "Q" I hit CTRL-Z.

Oops.

Short story long, I now have a dpkg lock:

--------------------------------
$sudo apt -f install
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource
temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend),
is another process using it?
---------------------------------

I tried the following and got some useful information:

---------------------------------
$sudo dpkg --audit
Another process has locked the database for writing, and might currently be
modifying it, some of the following problems might just be due to that.

The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 grub-common          GRand Unified Bootloader (common files)
 grub-efi-amd64-bin   GRand Unified Bootloader, version 2 (EFI-AMD64
binaries)
 grub-efi-amd64-signed GRand Unified Bootloader, version 2 (EFI-AMD64
version,
 grub-pc              GRand Unified Bootloader, version 2 (PC/BIOS version)
 grub-pc-bin          GRand Unified Bootloader, version 2 (PC/BIOS binaries)
 grub2-common         GRand Unified Bootloader (common files for version 2)
 libpcap0.8:amd64     system interface for user-level packet capture
 libsnmp-base         SNMP configuration script, MIBs and documentation
 libsnmp30:amd64      SNMP (Simple Network Management Protocol) library
 linux-generic        Complete Generic Linux kernel and headers
 linux-headers-generic Generic Linux kernel headers
 linux-image-4.15.0-115-generic Signed kernel image generic
 linux-image-generic  Generic Linux kernel image
 linux-modules-extra-4.15.0-115-generic Linux kernel extra modules for
version
 linux-signed-generic Complete Signed Generic Linux kernel and headers
(dummy t

The following packages have been triggered, but the trigger processing
has not yet been done.  Trigger processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
 install-info         Manage installed documentation in info format
 libc-bin             GNU C Library: Binaries
 man-db               on-line manual pager
 systemd              system and service manager
 ureadahead           Read required files in advance
-----------------------------------

Unfortunately, dpkg won't let me get back to the configure point:

----------------------------------------
$sudo dpkg --configure
dpkg: error: dpkg frontend is locked by another process
----------------------------------------

Any ideas where should I go from here?

Thanks,

Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20200901/f6bd76f0/attachment.html>


More information about the ubuntu-users mailing list