Lucifer22334
Posts: 55
Joined: Wed Mar 06, 2019 7:36 am

Error on sudo apt-get update

Tue Jul 09, 2019 2:07 pm

Hi ,

I have just Loded the Raspbian full buster image in raspberry pi 3 B. when I typed sudo apt-get update it is giving me the error.
Image

How can I solve this Error?
Attachments
Error raspberry pi.PNG
Error raspberry pi.PNG (68.61 KiB) Viewed 664 times

jbudd
Posts: 878
Joined: Mon Dec 16, 2013 10:23 am

Re: Error on sudo apt-get update

Tue Jul 09, 2019 2:49 pm

Your problem is related to Raspian Buster having been offically released before Debian Buster.
It will no doubt go away when the next Raspbian image is released in a month or two.

Till then, start with sudo apt -y update

User avatar
PeterO
Posts: 4876
Joined: Sun Jul 22, 2012 4:14 pm

Re: Error on sudo apt-get update

Tue Jul 09, 2019 3:01 pm

Is no one able to use "search" to find the previous threads about this that contain the correct solution ?
https://www.raspberrypi.org/forums/view ... 1&t=245022
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
PeterO
Posts: 4876
Joined: Sun Jul 22, 2012 4:14 pm

Re: Error on sudo apt-get update

Tue Jul 09, 2019 3:02 pm

jbudd wrote:
Tue Jul 09, 2019 2:49 pm
Your problem is related to Raspian Buster having been offically released before Debian Buster.
It will no doubt go away when the next Raspbian image is released in a month or two.

Till then, start with sudo apt -y update
Wrong solution. :x
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Ernst
Posts: 1188
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Error on sudo apt-get update

Tue Jul 09, 2019 3:09 pm

PeterO wrote:
Tue Jul 09, 2019 3:02 pm
jbudd wrote:
Tue Jul 09, 2019 2:49 pm
Your problem is related to Raspian Buster having been offically released before Debian Buster.
It will no doubt go away when the next Raspbian image is released in a month or two.

Till then, start with sudo apt -y update
Wrong solution. :x
PeterO
I beg to differ, it solves the problem.
The road to insanity is paved with static ip addresses

MrEngman
Posts: 3836
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Error on sudo apt-get update

Tue Jul 09, 2019 3:24 pm

PeterO wrote:
Tue Jul 09, 2019 3:02 pm
jbudd wrote:
Tue Jul 09, 2019 2:49 pm
Your problem is related to Raspian Buster having been offically released before Debian Buster.
It will no doubt go away when the next Raspbian image is released in a month or two.

Till then, start with sudo apt -y update
Wrong solution. :x
PeterO
Doesn't look like it. It appears to be an alternative solution.

Looking here https://www.raspberrypi.org/forums/view ... 1&t=245022 appears to suggest you can use either

Code: Select all

sudo apt-get update --allow-releaseinfo-change
or

Code: Select all

sudo apt update -y
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

User avatar
PeterO
Posts: 4876
Joined: Sun Jul 22, 2012 4:14 pm

Re: Error on sudo apt-get update

Tue Jul 09, 2019 4:58 pm

Look at the man pages for apt-get.

Using "-y" just hides the issue. Do you know there are no other questions asked that you might want to answer "no" ?

"--allow-releaseinfo-change" addresses this specific issue and is there to be used in this specific case.

Both may work, but only one is the right answer.

PeterO

OH..... HOLD ON .....
You're using apt not apt-get... Why complicate the issue by using a different tool when there is an option designed specifically to deal with this situation in apt-get ? OP asked about problem with apt-get, so solution is to use the correct options, not ot use a different tool !
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

MrEngman
Posts: 3836
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Error on sudo apt-get update

Tue Jul 09, 2019 5:44 pm

PeterO wrote:
Tue Jul 09, 2019 4:58 pm
Look at the man pages for apt-get.

Using "-y" just hides the issue. Do you know there are no other questions asked that you might want to answer "no" ?

"--allow-releaseinfo-change" addresses this specific issue and is there to be used in this specific case.

Both may work, but only one is the right answer.

PeterO

OH..... HOLD ON .....
You're using apt not apt-get... Why complicate the issue by using a different tool when there is an option designed specifically to deal with this situation in apt-get ? OP asked about problem with apt-get, so solution is to use the correct options, not ot use a different tool !
Fair enough.

I usually use apt-get so I used

Code: Select all

sudo apt-get update --allow-releaseinfo-change
to sort out that problem. Just happened to see someone in the other post say they fixed it when using

Code: Select all

sudo apt update -y
.

If

Code: Select all

sudo apt update -y
is just a temp way around the issue then sorry.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

cruster
Posts: 98
Joined: Mon Sep 01, 2014 7:56 pm

Re: Error on sudo apt-get update

Tue Jul 09, 2019 6:59 pm


If

Code: Select all

sudo apt update -y
is just a temp way around the issue then sorry.


MrEngman

I don't think there's any need to apologise. Some folk just appear to be a little "crusty" on here ;-)

jbudd
Posts: 878
Joined: Mon Dec 16, 2013 10:23 am

Re: Error on sudo apt-get update

Tue Jul 09, 2019 7:19 pm

You are completely right PeterO.

I tried both suggested work-arounds and they both allow successful update and upgrade. I don't believe that any other questions were put and automatically accepted by apt -y.

I have not done extensive reading to find out possible side effects of either command. I did see in the forum the phrase "you only need to do it once" regarding sudo apt-get --allow-releaseinfo-change" which made me think it might lead to a problem in future. My instinct though says a flag like that will only have an effect on the current command line rather than a lasting change.

So that minor worry, combined with the fact that sudo apt -y is easier to type and apt seems to be widely preferred over apt-get led me to suggest the shorter solution.

Apologies if that annoyed you.

The RIGHT solution: the Raspbian image should be updated asap.

Edit - fixed cell phone autocorrect!

User avatar
PeterO
Posts: 4876
Joined: Sun Jul 22, 2012 4:14 pm

Re: Error on sudo apt-get update

Tue Jul 09, 2019 7:26 pm

jbudd wrote:
Tue Jul 09, 2019 7:19 pm
I have not done extensive reading to find out possible side effects of either command. I did see in the forum the phrase "you only need to do it once" regarding sudo apt-get --allow-releaseinfo-change" which made me think it might lead to a problem in future.
You only need to do it once because it is the correct action to take and is designed to deal with precisely this situation. Any other "work around" may work in the short term but might lead to a problem in the future !

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
Beerkan
Posts: 3
Joined: Tue Jul 02, 2019 9:58 am
Location: Blighty

Re: Error on sudo apt-get update

Tue Jul 09, 2019 7:52 pm

Guys,

Can I confirm, after I

Code: Select all

sudo apt update -y
I should immediately

Code: Select all

sudo apt upgrade -y
['Hip','Hip']

User avatar
B.Goode
Posts: 8045
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Error on sudo apt-get update

Tue Jul 09, 2019 7:56 pm

Beerkan wrote:
Tue Jul 09, 2019 7:52 pm
Guys,

Can I confirm, after I

Code: Select all

sudo apt update
I should immediately

Code: Select all

sudo apt upgrade



This is what the Raspberry Pi organisation say in their own documentation: https://www.raspberrypi.org/documentati ... pdating.md


What lies behind your question? In what timeframe is 'immediately'?

User avatar
davidcoton
Posts: 3944
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK

Re: Error on sudo apt-get update

Tue Jul 09, 2019 9:45 pm

At the risk of further muddying the waters, does this work?

Code: Select all

sudo apt update --allow-releaseinfo-change
AIUI apt is intended for interactive (command -line) use, while apt-get is retained for batch file use (backwards compatibility).
While the differences are minor and may not be significant, on this forum we should try to encourage the most appropriate command, in case there is further divergence in the future.
Signature retired

Lucifer22334
Posts: 55
Joined: Wed Mar 06, 2019 7:36 am

Re: Error on sudo apt-get update

Wed Jul 10, 2019 5:34 am

Thank you all for all your responses I will try to do :

Code: Select all

sudo apt-get update --allow-releaseinfo-change
and then :

Code: Select all

sudo apt-get upgrade
if this doesn't solves I will try :

Code: Select all

sudo apt -y update
then :

Code: Select all

sudo apt -y upgrade

Return to “General discussion”