Builds failing when trying to install yarn

Builds have been working fine this week - last night they suddenly stopped working. Re-running previously successful builds are also failing at the same point :

yml:

....
machine:
    image: circleci/classic:latest
....

Output :

#!/bin/bash -eo pipefail
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn rsync
OK
deb https://dl.yarnpkg.com/debian/ stable main
Ign http://us-central1.gce.archive.ubuntu.com trusty InRelease                 
Ign http://archive.canonical.com trusty InRelease                              
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]           
Get:2 http://us-central1.gce.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:3 http://us-central1.gce.archive.ubuntu.com trusty-backports InRelease [65.9 kB]
Get:4 http://ppa.launchpad.net trusty InRelease [20.8 kB]                      
Hit http://archive.canonical.com trusty Release.gpg                            
Ign http://toolbelt.heroku.com ./ InRelease                                    
Ign http://dl.google.com stable InRelease                                      
Get:5 http://us-central1.gce.archive.ubuntu.com trusty Release.gpg [933 B]     
Hit http://archive.canonical.com trusty Release                                
Get:6 http://dl.google.com stable Release.gpg [819 B]                          
Get:7 http://us-central1.gce.archive.ubuntu.com trusty Release [58.5 kB]       
Ign https://dl.yarnpkg.com stable InRelease                                    
Get:8 http://us-central1.gce.archive.ubuntu.com trusty-updates/main Sources [431 kB]
Get:9 http://toolbelt.heroku.com ./ Release.gpg [473 B]                        
Get:10 http://us-central1.gce.archive.ubuntu.com trusty-updates/restricted Sources [6,313 B]
Get:11 http://ppa.launchpad.net trusty InRelease [15.4 kB]                 
Get:12 http://dl.google.com stable Release [943 B]                         
Get:13 http://us-central1.gce.archive.ubuntu.com trusty-updates/universe Sources [231 kB]
Get:14 http://security.ubuntu.com trusty-security/main Sources [172 kB]        
Hit http://toolbelt.heroku.com ./ Release                                      
Get:15 http://us-central1.gce.archive.ubuntu.com trusty-updates/multiverse Sources [7,535 B]
Err http://dl.google.com stable Release                                        
  
Hit http://archive.canonical.com trusty/partner amd64 Packages                 
Get:16 http://us-central1.gce.archive.ubuntu.com trusty-updates/main amd64 Packages [1,177 kB]
Get:17 http://security.ubuntu.com trusty-security/universe Sources [102 kB]    
Ign https://dl.yarnpkg.com stable Release.gpg                                  
Get:18 http://security.ubuntu.com trusty-security/main amd64 Packages [835 kB] 
Get:19 http://us-central1.gce.archive.ubuntu.com trusty-updates/restricted amd64 Packages [17.2 kB]
Get:20 http://ppa.launchpad.net trusty/main amd64 Packages [3,473 B]           
Get:21 https://download.docker.com trusty/edge Translation-en_US               
Get:22 http://us-central1.gce.archive.ubuntu.com trusty-updates/universe amd64 Packages [525 kB]
Hit http://archive.canonical.com trusty/partner Translation-en                 
Get:23 http://security.ubuntu.com trusty-security/universe amd64 Packages [294 kB]
Hit http://toolbelt.heroku.com ./ Packages                                     
Get:24 http://us-central1.gce.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.6 kB]
Get:25 http://us-central1.gce.archive.ubuntu.com trusty-updates/main Translation-en [582 kB]
Get:26 http://security.ubuntu.com trusty-security/main Translation-en [448 kB] 
Get:27 http://ppa.launchpad.net trusty/main Translation-en [2,588 B]           
Err https://packagecloud.io trusty InRelease                                   
  
Get:28 http://us-central1.gce.archive.ubuntu.com trusty-updates/multiverse Translation-en [7,616 B]
Ign https://dl.yarnpkg.com stable Release                                      
Get:29 http://security.ubuntu.com trusty-security/universe Translation-en [162 kB]
Get:30 http://us-central1.gce.archive.ubuntu.com trusty-updates/restricted Translation-en [4,028 B]
Get:31 http://us-central1.gce.archive.ubuntu.com trusty-updates/universe Translation-en [281 kB]
Get:32 http://ppa.launchpad.net trusty/main amd64 Packages [9,898 B]           
Get:33 http://us-central1.gce.archive.ubuntu.com trusty-backports/main Sources [9,709 B]
Get:34 http://us-central1.gce.archive.ubuntu.com trusty-backports/restricted Sources [28 B]
Get:35 http://us-central1.gce.archive.ubuntu.com trusty-backports/universe Sources [35.4 kB]
Get:36 http://us-central1.gce.archive.ubuntu.com trusty-backports/multiverse Sources [1,896 B]
Get:37 http://us-central1.gce.archive.ubuntu.com trusty-backports/main amd64 Packages [13.3 kB]
Ign https://download.docker.com trusty/edge Translation-en_US                  
Get:38 http://ppa.launchpad.net trusty/main Translation-en [3,250 B]           
Ign https://download.docker.com trusty/edge Translation-en                     
Get:39 http://us-central1.gce.archive.ubuntu.com trusty-backports/restricted amd64 Packages [28 B]
Get:40 http://us-central1.gce.archive.ubuntu.com trusty-backports/universe amd64 Packages [43.1 kB]
Get:41 http://us-central1.gce.archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1,567 B]
Get:42 http://us-central1.gce.archive.ubuntu.com trusty-backports/main Translation-en [7,503 B]
Get:43 http://us-central1.gce.archive.ubuntu.com trusty-backports/multiverse Translation-en [1,215 B]
Get:44 http://us-central1.gce.archive.ubuntu.com trusty-backports/restricted Translation-en [28 B]
Ign http://toolbelt.heroku.com ./ Translation-en_US                            
Get:45 http://us-central1.gce.archive.ubuntu.com trusty-backports/universe Translation-en [36.8 kB]
Get:46 http://us-central1.gce.archive.ubuntu.com trusty/main Sources [1,064 kB]
Ign http://toolbelt.heroku.com ./ Translation-en                              
Get:47 http://us-central1.gce.archive.ubuntu.com trusty/restricted Sources [5,433 B]
Get:48 http://us-central1.gce.archive.ubuntu.com trusty/universe Sources [6,399 kB]
Get:49 http://us-central1.gce.archive.ubuntu.com trusty/multiverse Sources [174 kB]
Get:50 http://us-central1.gce.archive.ubuntu.com trusty/main amd64 Packages [1,350 kB]
Get:51 http://us-central1.gce.archive.ubuntu.com trusty/restricted amd64 Packages [13.0 kB]
Get:52 http://us-central1.gce.archive.ubuntu.com trusty/universe amd64 Packages [5,859 kB]
Get:53 http://us-central1.gce.archive.ubuntu.com trusty/multiverse amd64 Packages [132 kB]
Get:54 http://us-central1.gce.archive.ubuntu.com trusty/main Translation-en [762 kB]
Get:55 http://us-central1.gce.archive.ubuntu.com trusty/multiverse Translation-en [102 kB]
Get:56 http://us-central1.gce.archive.ubuntu.com trusty/restricted Translation-en [3,457 B]
Get:57 http://us-central1.gce.archive.ubuntu.com trusty/universe Translation-en [4,089 kB]
Ign http://us-central1.gce.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us-central1.gce.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://us-central1.gce.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://us-central1.gce.archive.ubuntu.com trusty/universe Translation-en_US
Err https://dl.yarnpkg.com stable/main amd64 Packages
  Bad header line
Ign https://dl.yarnpkg.com stable/main Translation-en_US
Ign https://dl.yarnpkg.com stable/main Translation-en
Fetched 25.8 MB in 11s (2,275 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: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13

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: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  

W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/main/binary-amd64/Packages  Bad header line

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package yarn

Exited with code exit status 100
CircleCI received exit code 100

This is the common failure for all of them - not necessarily at the same point but the same step and the same reason.

status.circleci.com looks fine - thoughts?

One of the failed workflows : https://app.circleci.com/pipelines/github/SeanCannon/aca-client/34/workflows/84c3522c-e091-4d70-b1ea-a15a913d222e/jobs/40

I have a similar issue. I was using:

  build:
    machine:
      image: circleci/classic:201711-01

and switched to:

  build:
    machine:
      image: ubuntu-1604:201903-01

With either image, I’m getting a lot of 404s on a build that was otherwise working:

sudo apt-get install -y git python3 curl python-pip

Reading package lists... Done


Building dependency tree       


Reading state information... Done

python3 is already the newest version (3.5.1-3).
python-pip is already the newest version (8.1.1-2ubuntu0.4).
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-cvs git-mediawiki git-svn
The following packages will be upgraded:
  curl git git-man libcurl3-gnutls
4 upgraded, 0 newly installed, 0 to remove and 123 not upgraded.
Need to get 8,059 kB of archives.
After this operation, 3,312 kB of additional disk space will be used.

Err:1 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial/main amd64 git amd64 1:2.23.0-0ppa1~ubuntu16.04.1
  404  Not Found

Err:2 http://security.ubuntu.com/ubuntu xenial-security/main amd64 curl amd64 7.47.0-1ubuntu2.13
  404  Not Found [IP: 91.189.88.152 80]

This seems to have resolved itself today - builds working fine again. Anything we should know about from @CircleCI-Employees ? Or just a hiccup we can disregard? Next time would be helpful if these types of issues were reported in the status check page.