Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orange Pi Zero error during apt update

Featured Replies

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

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

 

@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

 

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>

 

  • Author

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!

 

 

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

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.