libpulse0 fails to fetch with apt (repo broken?)

Quite a few of my builds are failing to fetch libpulse0 which is in bionic repos:

Err:37 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse0 amd64 1:11.1-1ubuntu7.4
  404 Not Found [IP: 52.177.174.250 80]
Get:38 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-mainloop-glib0 amd64 1:11.1-1ubuntu7.4 [22.1 kB]
Get:39 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-dev amd64 1:11.1-1ubuntu7.4 [81.5 kB]
Get:40 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxcb-xkb1 amd64 1.13-2~ubuntu18.04 [30.1 kB]
Get:41 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxkbcommon-x11-0 amd64 0.8.2-1~ubuntu18.04.1 [13.4 kB]
Get:42 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 libzip-dev amd64 1.5.1-4+ubuntu18.04.1+deb.sury.org+2 [158 kB]
Fetched 2364 kB in 0s (5153 kB/s)
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/libpulse0_11.1-1ubuntu7.4_amd64.deb 404 Not Found [IP: 52.177.174.250 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
##[error]Process completed with exit code 100.

Is the apt repository corrupted?

This isn’t a consistent error either, as re-running the action fixes this. But whenever it fails, it’s always with the libpulse0 package.

This happens frequently, here is another run that failed:

Get:36 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsndfile1 amd64 1.0.28-4ubuntu0.18.04.1 [170 kB]
Err:37 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse0 amd64 1:11.1-1ubuntu7.4
  404 Not Found [IP: 52.177.174.250 80]
Err:38 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-mainloop-glib0 amd64 1:11.1-1ubuntu7.4
  404 Not Found [IP: 52.177.174.250 80]
Err:39 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-dev amd64 1:11.1-1ubuntu7.4
  404 Not Found [IP: 52.177.174.250 80]
Get:40 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxcb-xkb1 amd64 1.13-2~ubuntu18.04 [30.1 kB]
Get:41 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxkbcommon-x11-0 amd64 0.8.2-1~ubuntu18.04.1 [13.4 kB]
Get:42 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 libzip-dev amd64 1.5.1-4+ubuntu18.04.1+deb.sury.org+2 [158 kB]
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/libpulse0_11.1-1ubuntu7.4_amd64.deb 404 Not Found [IP: 52.177.174.250 80]
Fetched 2261 kB in 0s (4701 kB/s)
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/libpulse-mainloop-glib0_11.1-1ubuntu7.4_amd64.deb 404 Not Found [IP: 52.177.174.250 80]
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/libpulse-dev_11.1-1ubuntu7.4_amd64.deb 404 Not Found [IP: 52.177.174.250 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@vadi2 ,

Please try to add the " sudo apt update" command before the " sudo apt install" command to see if the problem can be solved.

- name: (Linux) Install apt dependencies
      if: runner.os == 'Linux'
      run: |
        sudo apt update
        sudo apt install pkg-config libzip-dev libglu1-mesa-dev libpulse-dev libxkbcommon-x11-0

The APT package index is basically a database that holds records of available packages from the repositories enabled in your system. I recommend you always update the package index before upgrading or installing new packages.

apt actually works on a database of available packages. If the database is not updated, the system won’t know if there are any newer packages available. This is why updating the repository should be the first thing to do in any Linux system after a fresh install.

1 Like

That’s what we ended up doing and it works.

@vadi2 ,

Glad that the problem has been solved.

If you have any other question about this ticket, feel free to tell us.