Answer the question
In order to leave comments, you need to log in
What does [COMMAND=/usr/lib/update-notifier/package-system-locked] mean in the logs?
I saw the following entries in the logs:
Apr 8 04:23:18 user1000 pkexec[7363]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Apr 8 04:23:18 user1000 pkexec[7363 ]: user1000: Executing command [USER=root] [TTY=unknown] [CWD=/home/
user1000 ] [COMMAND=/usr/lib/update-notifier/package-system-locked] did nothing at the moment. How to see in more detail what happened at the moment
Answer the question
In order to leave comments, you need to log in
In general - check for system updates. And in particular - checking that at the moment there is no installation of any packages (launched by someone earlier), so that there is no conflict. A lock file is created for the duration of the installation/update, so that by its presence nothing else starts to be installed/updated in parallel. This is the file that the script tries to detect:
[email protected]:~$ cat /usr/lib/update-notifier/package-system-locked
#!/bin/sh
# check if package system is locked
# return 0 if unlocked, 2 if locked, 1 on error
set -e
for f in /var/lib/dpkg/lock /var/cache/apt/archives/lock \
/var/lib/apt/lists/lock /run/unattended-upgrades.lock; do
[ -e $f ] || continue
# fuser succeeds if there is at least one user
if fuser $f; then
exit 2
fi
done
exit 0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question