ismurdegus Posted October 10, 2021 Share Posted October 10, 2021 Hey guys Hope everyone doing well I have a Orange Pi Zero running 21.02.2 Focal and Pi-hole installed. When I run "sudo apt update" this is the output: root@PiHoleNapoli:~# sudo apt update Get:1 http://deb.debian.org/debian stable InRelease [116 kB] Hit:2 http://mirrors.dotsrc.org/armbian-apt focal InRelease Hit:3 http://ports.ubuntu.com focal InRelease Get:4 http://deb.debian.org/debian stable-updates InRelease [39.4 kB] Get:5 http://ports.ubuntu.com focal-updates InRelease [114 kB] Ign:6 http://deb.debian.org/debian-security stable/updates InRelease Err:7 http://deb.debian.org/debian-security stable/updates Release 404 Not Found [IP: 151.101.86.132 80] Get:8 http://ports.ubuntu.com focal-backports InRelease [101 kB] Get:9 http://deb.debian.org/debian stable/main armhf Packages [10.8 MB] Get:10 http://ports.ubuntu.com focal-updates/universe armhf Packages [883 kB] Get:11 http://ports.ubuntu.com focal-updates/main armhf Packages [1,040 kB] Reading package lists... Done E: The repository 'http://deb.debian.org/debian-security stable/updates Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. N: Repository 'http://deb.debian.org/debian stable InRelease' changed its 'Version' value from '11.0' to '11.1' Anyone can help to resolve this error ? Thanks 0 Quote Link to comment Share on other sites More sharing options...
tparys Posted October 10, 2021 Share Posted October 10, 2021 Offhand, probably not a great idea to mix and match Debian and Ubuntu repositories. You may want to reinstall with the Debian derived Armbian before continuing. There's a very good chance you'll end up with library versioning issues, unless you know what you're doing. That said, it looks like you put "stable/updates" instead of "stable-updates" in your /etc/apt/sources.list ... 1 Quote Link to comment Share on other sites More sharing options...
guidol Posted October 10, 2021 Share Posted October 10, 2021 @ismurdegusthe following content are the right sources for focal (no debian url needed for security). Fill the named 2 files with this content and your update should be safe /etc/apt/sources.list # =================================== deb http://ports.ubuntu.com/ focal main restricted universe multiverse #deb-src http://ports.ubuntu.com/ focal main restricted universe multiverse deb http://ports.ubuntu.com/ focal-security main restricted universe multiverse #deb-src http://ports.ubuntu.com/ focal-security main restricted universe multiverse deb http://ports.ubuntu.com/ focal-updates main restricted universe multiverse #deb-src http://ports.ubuntu.com/ focal-updates main restricted universe multiverse deb http://ports.ubuntu.com/ focal-backports main restricted universe multiverse #deb-src http://ports.ubuntu.com/ focal-backports main restricted universe multiverse /etc/apt/sources.list.d/armbian.list # =================================== deb http://apt.armbian.com/region/EU/ focal main focal-utils focal-desktop 0 Quote Link to comment Share on other sites More sharing options...
ismurdegus Posted October 13, 2021 Author Share Posted October 13, 2021 @guidol Thanks for your replay. I did exactly what you say but still have the same issue. Not sure what to do 0 Quote Link to comment Share on other sites More sharing options...
tparys Posted October 13, 2021 Share Posted October 13, 2021 This will find any debian repository entries on your system. You will need to fix, or remove these files. $ grep -l debian /etc/apt/sources.list /etc/apt/sources.list.d/* Best bet is to open these files with a text editor (nano is fairly simple if you're new), and comment any lines that have debian in them with a '#' at the start. $ sudo nano -w /etc/apt/sources.list.d/my-debian-file <make your edits> <hit Control-O, Enter to save> <hit Control-X to exit> 0 Quote Link to comment Share on other sites More sharing options...
ismurdegus Posted October 13, 2021 Author Share Posted October 13, 2021 Hey @tparys thanks you did it! So I run your command: grep -l debian /etc/apt/sources.list /etc/apt/sources.list.d/* Edit the list by add # with nano Save the file Run again apt update & apt upgrade No errors! Thanks a lot for your help! 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted October 14, 2021 Share Posted October 14, 2021 4 hours ago, tparys said: $ sudo nano -w /etc/apt/sources.list.d/my-debian-file <make your edits> <hit Control-O, Enter to save> <hit Control-X to exit> You do not even need to do extra saving via ^O since nano will ask if chances should be saved when trying to exit 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.