Ollie R
Posts: 3
Joined: Mon Aug 23, 2021 9:06 am

Package updater fails

Mon Aug 23, 2021 9:14 am

Hi. I just got my first raspberry pi (raspberry pi 400).
When we did the setup, it went to update, but failed - I didn’t write down the error message.
Now, when I try to go into the recommended software section, it comes up with:

Error updating package data - E:
Repository’http://
raspbian.raspberrypi.org/raspbian buster
InRelease’ changed its ‘Suite’ value from
‘stable’ to ‘oldstable’

Then it just gives the option of “ok” and when you click that the recommended software screen closes.

Any help would be greatly appreciated!

Morphit
Posts: 2
Joined: Mon Jul 09, 2012 12:32 pm

Re: Package updater fails

Mon Aug 23, 2021 5:14 pm

I'm not sure what caused this but the same happened to me while using apt update. I tried accepting the change:

Code: Select all

sudo apt update --allow-releaseinfo-change
But this still didn't work:

E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources

I had to alter the file /etc/apt/apt.conf.d/99defaultrelease from

Code: Select all

APT::Default-Release "stable";
to

Code: Select all

APT::Default-Release "oldstable";
Then the above command worked. I'm not sure what this means long term, it might need to be reverted or an update applied some other way (is there a new release to upgrade to?).

Ollie R
Posts: 3
Joined: Mon Aug 23, 2021 9:06 am

Re: Package updater fails

Mon Sep 06, 2021 9:18 am

Thanks Morphit.
Unfortunately I don’t seem to have that file! Located the folder yours was in, but no file with that name, or anything similar. The only files in that folder are:
01autoremove
01autoremove-kernels
20listchanges
20packagekit
50raspi
70debconf

Any one have any tips?

Cloudcentric
Posts: 1277
Joined: Fri Sep 14, 2012 9:13 am

Re: Package updater fails

Mon Sep 06, 2021 9:20 am

Ollie R wrote:
Mon Sep 06, 2021 9:18 am
Thanks Morphit.
Unfortunately I don’t seem to have that file! Located the folder yours was in, but no file with that name, or anything similar. The only files in that folder are:
01autoremove
01autoremove-kernels
20listchanges
20packagekit
50raspi
70debconf

Any one have any tips?

Raspberry Pi Operating System open the Terminal:

Code: Select all

sudo apt update
sudo apt full-upgrade
sudo reboot
.
.

Ollie R
Posts: 3
Joined: Mon Aug 23, 2021 9:06 am

Re: Package updater fails

Tue Sep 07, 2021 9:03 am

Thank you! That worked.
Complete newbie, so I was completely lost.

Gruntfuttock59
Posts: 1
Joined: Thu Nov 04, 2021 4:23 pm

Re: Package updater fails

Thu Nov 04, 2021 4:31 pm

Hi,

joined just to say thank you to Cloudcentric for the solution provided. I have just purchased a Pi-400 and had exactly this issue when trying to update or load any new packages.

This lot worked a treat but the full-upgrade took quite a while (15 mins?).

sudo apt update
sudo apt full-upgrade
sudo reboot

harraz
Posts: 2
Joined: Sat Dec 12, 2020 9:02 pm

Re: Package updater fails

Fri Dec 31, 2021 6:22 pm

This works, thanks for posting!

medo001
Posts: 1
Joined: Mon May 02, 2022 12:52 pm

Re: Package updater fails

Mon May 02, 2022 12:56 pm

Thanks Cloudcentri. This has worked

Return to “Troubleshooting”