Hello,
Creating a new issue because the following has been closed and I cannot comment on it anymore:
For several days I had a similar issue and it got worse and worse and now it more or less doesn’t work at all anymore.
I get the error:
sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? Exited with code 100
I tried an older classic image, I tried ubuntu-1604:201903-01
, I tried a sleep, nothing works.
If I SSH on the machine:
circleci@default-8ef29195-a002-4bfe-9265-677069f25164:~$ ps aux | grep "apt-get"
circlec+ 2006 0.0 0.0 11224 3212 ? Ss 13:22 0:00 /bin/bash -l -c echo '* soft nofile 65536' | sudo tee -a /etc/security/limits.conf; echo '* hard nofile 65536' | sudo tee -a /etc/security/limits.conf; sudo sed -i.bak -e 's|http://us-east1.gce.archive.ubuntu.com/ubuntu/|http://archive.ubuntu.com/ubuntu/|g' /etc/apt/sources.list; sudo rm -rf /etc/apt/sources.list.d/mysql.list; # CIRCLE-15840, CIRCLE-16707 sudo apt-get -o Acquire::http::AllowRedirect=false update; sudo apt-get -o Acquire::http::AllowRedirect=false install -y apt openssh-client; true
root 2019 0.0 0.0 68012 4160 ? S 13:22 0:00 sudo apt-get -o Acquire::http::AllowRedirect=false update
root 2020 0.0 0.0 31208 5700 ? S 13:22 0:00 apt-get -o Acquire::http::AllowRedirect=false update
circleci@default-8ef29195-a002-4bfe-9265-677069f25164:~$ sudo fuser /var/lib/apt/lists/lock
/var/lib/apt/lists/lock: 2020
If I kill the process and try the apt-get update myself it gets really REALLY slow here (like ~ 10Kb/s):
Get:3 http://archive.ubuntu.com trusty/universe amd64 Packages [5,859 kB]
99% [3 Packages 5,163 kB/5,859 kB 88%] [Connecting to security.ubuntu.com (91.1
Then it get stuck on Connecting to archive.ubuntu.com (91.189.88.162)
.
What can be done to workaround this issue?