Issue with apt update on new Piaware install

I’m attempting to move my setup from Wi-Fi on a Pi Zero 2, to a Pi 2B on ethernet.

Setup the Pi 2B with a fresh install of the Piaware image. No issues imaging or using my existing feeder-id, it is successfully checking in.

When I try to run sudo apt update or sudo apt-get update I get the following with errors;

Hit:1 http://www.flightaware.com/mirror/raspbian/raspbian bullseye InRelease
Hit:2 http://www.flightaware.com/adsb/piaware/files/packages bullseye InRelease
Get:3 http://www.flightaware.com/mirror/raspberrypi/debian bullseye InRelease
Get:4 http://www.flightaware.com/mirror/raspberrypi/debian bullseye/main armhf Packages [313 kB]
Ign:4 http://www.flightaware.com/mirror/raspberrypi/debian bullseye/main armhf Packages
Ign:4 http://flightaware.com/mirror/raspberrypi/debian bullseye/main armhf Packages
Err:4 http://flightaware.com/mirror/raspberrypi/debian bullseye/main armhf Packages
  File has unexpected size (313216 != 313214). Mirror sync in progress? [IP: 104.18.39.201 80]
Fetched 23.6 kB in 3s (8,350 B/s)
Reading package lists... Done
N: Repository 'http://www.flightaware.com/mirror/raspberrypi/debian bullseye InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Failed to fetch http://flightaware.com/mirror/raspberrypi/debian/dists/bullseye/main/binary-armhf/Packages  File has unexpected size (313216 != 313214). Mirror sync in progress? [IP: 104.18.39.201 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Some things I found online that I tried;

  • sudo apt-get --allow-releaseinfo-change update
  • sudo apt-get --allow-releaseinfo-change-suite update
  • The above with just apt
  • Changing HTTP → HTTPS and adding www. to entry in /etc/apt/sources.list.d/flightaware-apt-repository.list
  • Formatting the mSD card and reimaging
  • sudo apt full-upgrade -y
  • sudo apt dist-upgrade
  • sudo apt upgrade
  • Ran “Upgrade and restart PiAware” from site configuration page

Here is the contents of /etc/apt/sources.list.d/flightaware-apt-repository.list
deb [ signed-by=/usr/share/keyrings/flightaware-archive-keyring.gpg ] http://flightaware.com/adsb/piaware/files/packages bullseye piaware

Anyone have any ideas?

I am getting same error so curious on what to do as well

Try this

I think that is it this is the output list for my sources.list.d, I assume I would need to update all of these with bullseye:
$ ls -l /etc/apt/sources.list.d/
total 20
-rw-r–r-- 1 root root 60 Feb 17 2019 opensky.list
-rw-r–r-- 1 root root 70 Mar 11 2021 piaware-buster.list
-rw-r–r-- 1 root root 193 Mar 14 2021 raspi.list
-rw-r–r-- 1 root root 38 May 25 2021 rb24.list

I changed raspi.list to https and then had no issues

Yes, I have been getting the same error intermittently for quite some time. It looks like one of the mirror servers has a corrupted file. Retrying some time later normally finds a server with a valid file.

1 Like