You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debian sid/unstable with packagekit 1.2.4-1 and libapt-pkg6.0 2.3.13.
My root disk only had 7 MB of free space left. This seems to have caused packagekitd to hang despite, after cleaning up, enough free space is available now.
$ LANG=C sudo apt update
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 753 (packagekitd)
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/
$ sudo gdb --pid 753
[…]
0x00007fe10136ee2f in __GI___poll (fds=0x5612658d7c50, nfds=2, timeout=9991) at ../sysdeps/unix/sysv/linux/poll.c:29
29 ../sysdeps/unix/sysv/linux/poll.c: Datei oder Verzeichnis nicht gefunden.
[…]
(gdb) bt
#0 0x00007fe10136ee2f in __GI___poll (fds=0x5612658d7c50, nfds=2, timeout=9991) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007fe101945ebe in g_main_context_poll
(priority=<optimized out>, n_fds=2, fds=0x5612658d7c50, timeout=<optimized out>, context=0x5612658a9290) at ../../../glib/gmain.c:4478
#2 g_main_context_iterate (context=0x5612658a9290, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
at ../../../glib/gmain.c:4170
#3 0x00007fe101946213 in g_main_loop_run (loop=loop@entry=0x5612658a9380) at ../../../glib/gmain.c:4373
#4 0x0000561264cc7d9a in main (argc=<optimized out>, argv=<optimized out>) at ../src/pk-main.c:245
$ sudo gdb --pid 1565
[…]
0x00007fe101371543 in __GI___select (nfds=42, readfds=0x7fe0fd814810, writefds=0x7fe0fd814890, exceptfds=0x0, timeout=0x7fe0fd8147a0)
at ../sysdeps/unix/sysv/linux/select.c:41
41 ../sysdeps/unix/sysv/linux/select.c: Datei oder Verzeichnis nicht gefunden.
[…]
(gdb) bt
#0 0x00007fe101371543 in __GI___select (nfds=42, readfds=0x7fe0fd814810, writefds=0x7fe0fd814890, exceptfds=0x0, timeout=0x7fe0fd8147a0)
at ../sysdeps/unix/sysv/linux/select.c:41
#1 0x00007fe0feed10f5 in pkgAcquire::Run(int) () at /lib/x86_64-linux-gnu/libapt-pkg.so.6.0
#2 0x00007fe0fefd1c2d in AcquireUpdate(pkgAcquire&, int, bool, bool) () at /lib/x86_64-linux-gnu/libapt-pkg.so.6.0
#3 0x00007fe0fefd211e in ListUpdate(pkgAcquireStatus&, pkgSourceList&, int) () at /lib/x86_64-linux-gnu/libapt-pkg.so.6.0
#4 0x00007fe0ff8d36ae in AptIntf::refreshCache() (this=this@entry=0x56126599f000) at /usr/include/apt-pkg/cachefile.h:78
#5 0x00007fe0ff8e1ada in pk_backend_refresh_cache_thread(PkBackendJob*, GVariant*, gpointer)
(job=0x5612659bc450 [PkBackendJob], params=<optimized out>, user_data=<optimized out>) at ../backends/aptcc/pk-backend-aptcc.cpp:575
#6 0x0000561264cdc8aa in pk_backend_job_thread_setup (thread_data=0x5612658a6f00) at ../src/pk-backend-job.c:724
#7 0x00007fe10196fecd in g_thread_proxy (data=0x7fe0f800d800) at ../../../glib/gthread.c:827
#8 0x00007fe101449eae in start_thread (arg=0x7fe0fd815640) at pthread_create.c:46
$ sudo gdb --pid 1572
[…]
0x00007fc52b0df4f6 in __GI___select (nfds=1, readfds=0x7ffe1f8c2080, writefds=0x0, exceptfds=0x0, timeout=0x0)
at ../sysdeps/unix/sysv/linux/select.c:41
41 ../sysdeps/unix/sysv/linux/select.c: Datei oder Verzeichnis nicht gefunden.
[…]
(gdb) bt
#0 0x00007fc52b0df4f6 in __GI___select (nfds=1, readfds=0x7ffe1f8c2080, writefds=0x0, exceptfds=0x0, timeout=0x0)
at ../sysdeps/unix/sysv/linux/select.c:41
#1 0x00007fc52b7ae913 in WaitFd (Fd=<optimized out>, write=<optimized out>, timeout=0) at ./apt-pkg/contrib/fileutl.cc:844
#2 0x00005569f35c9e58 in ?? ()
#3 0x00005569f35ad3d0 in ?? ()
#4 0x00007fc52b011e4a in __libc_start_main (main=0x5569f35ad350, argc=1, argv=0x7ffe1f8c2798, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffe1f8c2788) at ../csu/libc-start.c:314
#5 0x00005569f35ad52a in ?? ()
The text was updated successfully, but these errors were encountered:
I have done quite a bit of work on the APT backend, so try the latest PK 1.2.6 and hopefully the issue won't happen again (I did not find anything that would cause this behavior explicitly though).
Debian sid/unstable with packagekit 1.2.4-1 and libapt-pkg6.0 2.3.13.
My root disk only had 7 MB of free space left. This seems to have caused packagekitd to hang despite, after cleaning up, enough free space is available now.
No idea, why process with id 1565 does not show up in the output of
ps
:Some backtraces captured with GNU gdb:
The text was updated successfully, but these errors were encountered: