OK, as expected, this bit again. As noted, this is not at all rare!

$ sudo apt update
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 810491 
(apt-get)
N: Be aware that removing the lock file is not a solution and may break your 
system.
E: Unable to lock directory /var/lib/apt/lists/


$ ps aux|grep apt
root      810459  0.0  0.0   2800  1588 ?        Ss   May16   0:00 /bin/sh 
/usr/lib/apt/apt.systemd.daily update
root      810463  0.0  0.0   2800  1592 ?        S    May16   0:00 /bin/sh 
/usr/lib/apt/apt.systemd.daily lock_is_held update
root      810491  0.0  0.0  32400 20328 ?        S    May16   0:40 apt-get -qq 
-y update
_apt      810501  0.0  0.0  25440  8092 ?        S    May16   0:00 
/usr/lib/apt/methods/http
_apt      810502  0.0  0.0  25504  7880 ?        S    May16   0:00 
/usr/lib/apt/methods/http
_apt      810503  0.0  0.0  25376  7516 ?        S    May16   0:00 
/usr/lib/apt/methods/https
_apt      810504  0.0  0.0  29476 12828 ?        S    May16   0:00 
/usr/lib/apt/methods/https
_apt      810576  0.0  0.0  18284  5392 ?        S    May16   0:00 
/usr/lib/apt/methods/gpgv
_apt      810755  0.0  0.0  26796 12696 ?        t    May16   0:00 
/usr/lib/apt/methods/store


Here's a backtrace:

TRACEBACKS FOR PID 810576

Thread 1 (Thread 0x7f2f4c662880 (LWP 810576) "gpgv"):
#0  0x00007f2f4cc5ac3e in __GI___select (nfds=1, readfds=0x7ffc682d9280, 
writefds=0x0, exceptfds=0x0, timeout=0x0) at 
../sysdeps/unix/sysv/linux/select.c:69
#1  0x00007f2f4d0e638c in WaitFd(int, bool, unsigned long) () from 
/lib/x86_64-linux-gnu/libapt-pkg.so.6.0
#2  0x00007f2f4d09b0f3 in pkgAcqMethod::Run(bool) () from 
/lib/x86_64-linux-gnu/libapt-pkg.so.6.0
#3  0x0000582b689849fe in ?? ()
#4  0x00007f2f4cb5e1ca in __libc_start_call_main 
(main=main@entry=0x582b689848b0, argc=argc@entry=1, 
argv=argv@entry=0x7ffc682d9798) at ../sysdeps/nptl/libc_start_call_main.h:58
#5  0x00007f2f4cb5e28b in __libc_start_main_impl (main=0x582b689848b0, argc=1, 
argv=0x7ffc682d9798, init=<optimised out>, fini=<optimised out>, 
rtld_fini=<optimised out>, stack_end=0x7ffc682d9788) at ../csu/libc-start.c:360
#6  0x0000582b68984b85 in ?? ()
[Inferior 1 (process 810576) detached]


(I tried to get one for each process, but I accidentally did the same one 6 
times, then killed it before I realised my mistake. Apologies.)

It looks like my suspicion was correct: The application is stuck waiting
on a network call that'll never return.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109495

Title:
  unattended-upgrades can (and regularly does) pause mid-update
  indefinitely with no error or feedback

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2109495/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to