guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.45k stars 367 forks source link

Issue running apt-update on fresh image #753

Open marcelrv opened 2 years ago

marcelrv commented 2 years ago

Updating a fresh copy of the latest stable (18.0) of octopi and running update gives error

pi@octopi:~ $ sudo apt-get update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:3 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB]
Reading package lists... Done
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

What were you doing?

Installing and updating fresh copy

What did you expect to happen?

Running update without much manual interference

What happened instead?

update errors

Did the same happen when running OctoPrint in safe mode?

N/A - commandline

Version of OctoPi

1.7.0

Maybe a time to release a fresh octopi

cp2004 commented 2 years ago

Run sudo apt-get update --allow-releaseinfo-change, and it will be sorted, only has to be done once.

Using sudo apt update doesn't error, apt is the human usable version of apt-get which wraps all the functions in a more easily usable package, so you could just use that anyway.

guysoft commented 2 years ago

Its a rpi os bug: https://github.com/RPi-Distro/pi-gen/issues/546