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
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
Fetched 11.0 MB in 6min 57s (26.3 kB/s)
Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packagecloud.io trusty InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 4E6910DFCB68C9CD
W: Failed to fetch https://packagecloud.io/circleci/trusty/ubuntu/dists/trusty/InRelease
W: Some index files failed to download. They have been ignored, or old ones used instead.
Same here.
Also, I’ve tried to switch from circleci/classic:201710-01 to ubuntu-1604:201903-01 machine image but it still tries to fetch Trusty packages for some reason…
@panthony: the issue you link to is a different problem. The Machine executor can get itself into a pickle, and not be able to update, unless you run a loop to wait for it to unlock. The current issue is much more likely to be that the Ubuntu server is barely functional at present.