"apt-get update" fails if another instance is running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
This snippet:
sudo apt-get update & sudo apt-get update & wait; wait
will result in one apt-get run succeeding and the other failing on the lock:
[1] 3006473
[2] 3006474
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Reading package lists... Done
E: Could not get lock /var/lib/
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/
Reading package lists... Done
[1]- Done sudo apt-get update
[2]+ Exit 100 sudo apt-get update
Note that apt-get upgrade will correctly wait.
ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: apt 2.1.10ubuntu0.3
ProcVersionSign
Uname: Linux 5.8.0-48-generic aarch64
ApportVersion: 2.20.11-0ubuntu50.7
Architecture: arm64
CasperMD5CheckR
Date: Thu Aug 12 07:50:16 2021
ProcEnviron:
LC_TIME=C.UTF-8
TERM=xterm-
PATH=(custom, no user)
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: apt
UpgradeStatus: Upgraded to groovy on 2021-03-25 (139 days ago)
Thank you for reporting this bug to Ubuntu.
Ubuntu 20.10 (groovy) reached end-of-life on July 22, 2021.
See this document for currently supported Ubuntu releases: /wiki.ubuntu. com/Releases
https:/
We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please re-report the issue using `ubuntu-bug`.