Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 393  / 2 Years ago, wed, january 26, 2022, 9:22:42

OS : Linux kaushal 5.8.0-36-generic #40~20.04.1-Ubuntu SMP Wed Jan 6 10:15:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux


Every Day when my pc boots up and write the first command apt update I got the following error.


After some time it auto resolved. This is normal?


kaushal@kaushal:~$ sudo apt update
[sudo] password for kaushal:
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 2346 (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/
kaushal@kaushal:~$ sudo apt update
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 2346 (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/
kaushal@kaushal:~$ sudo apt update
Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:7 https://mega.nz/linux/MEGAsync/xUbuntu_20.04 ./ InRelease [2,441 B]
Fetched 2,441 B in 2s (1,115 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
kaushal@kaushal:~$

More From » boot

 Answers
4

Ubuntu checks for updates on every boot automatically. You can't run the same command manually at the same time.


If you really want to do it manually, disable automatic updates.


The setting is in the Software & Updates application.


[#2106] Thursday, January 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ightrushi

Total Points: 129
Total Questions: 125
Total Answers: 127

Location: French Southern and Antarctic Lands
Member since Fri, Jan 6, 2023
1 Year ago
;