Could not get lock ?
What to do ?
Wait - for what ? " is another process using it? " I do not know , if it is what can it be done to stop it ? Code:
a@a-desktop:~$ sudo apt upgrade |
Personally, I'd just reboot.
The correct answer is to use tools like fuser and lsof to determine which process is using /var/lib/dpkg/lock-frontend. |
Your system is probably doing an automatic search for new updates or possibly doing an automatic update if so configured. Just wait for it to finish.
|
I second what michaelk said. I have witnessed that a lot of DEs do a check for updates immediately upon login and periodically thereafter.
|
c@c-SATA:~$ reboot
Operation inhibited by "APT" (PID 29616 "unattended-upgr", user root), reason is "APT is installing or removing packages". Please retry operation after closing inhibitors and logging out other users. Alternatively, ignore inhibitors and users with 'systemctl reboot -i'. c@c-SATA:~$ uname -a Linux c-SATA 4.15.0-122-generic #124~16.04.1-Ubuntu SMP Thu Oct 15 16:08:36 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux c@c-SATA:~$ |
^ There you are, you don't even need to do it manually, it is automated.
But if you do it manually you must run 'apt update' before 'apt upgrade'. |
All times are GMT -5. The time now is 03:01 PM. |