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!
Re: Package updater fails
I'm not sure what caused this but the same happened to me while using apt update. I tried accepting the 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
to
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?).
Code: Select all
sudo apt update --allow-releaseinfo-change
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";
Code: Select all
APT::Default-Release "oldstable";
Re: Package updater fails
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?
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?
-
- Posts: 1277
- Joined: Fri Sep 14, 2012 9:13 am
Re: Package updater fails
Ollie R wrote: ↑Mon Sep 06, 2021 9:18 amThanks 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
.
.
.
Re: Package updater fails
Thank you! That worked.
Complete newbie, so I was completely lost.
Complete newbie, so I was completely lost.
-
- Posts: 1
- Joined: Thu Nov 04, 2021 4:23 pm
Re: Package updater fails
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
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
Re: Package updater fails
This works, thanks for posting!
Re: Package updater fails
Thanks Cloudcentri. This has worked