sudo lsof /var/lib/dpkg/lock
( man lsof
) mostrará todos os processos que tiverem o arquivo aberto. No meu sistema (YMMV), com synaptic
em execução:
$ sudo lsof /var/lib/dpkg/lock
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
synaptic 14382 root 15uW REG 8,6 0 424990 /var/lib/dpkg/lock