Jump to content

Orange Pi Zero error during apt update


ismurdegus

Recommended Posts

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

Link to comment
Share on other sites

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 ...

 

Link to comment
Share on other sites

@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

 

Link to comment
Share on other sites

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>

 

Link to comment
Share on other sites

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 :)

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines