× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Fixing apt update repo issues and key errors on ReadyNas 628x running 6.10.8

good4y0u
Star

Fixing apt update repo issues and key errors on ReadyNas 628x running 6.10.8

Here is how you fix the apt update repo issues and key errors on ReadyNas 628x running 6.10.8

The root of the problem lies in the fact that Netgear has ceased its support for Readynas and deprecated the update servers. This situation leaves your existing NAS in a precarious state, making it challenging to perform updates and maintain its functionality. To compound the issue, the reliance on Debian Jessie, which is no longer supported by the Debian community, and the absence of an LTS version utilized by Netgear, make it increasingly difficult to locate the necessary updates.

Here is a solution that addresses the problem:

  1. APT Source Adjustment: The first step involves updating your apt sources configuration to utilize the Debian Archives instead of relying on Netgear's now-discontinued servers. This adjustment will ensure that you can continue to access the essential packages and updates you require.

  2. Optional Mirror Setup: As part of the solution, I will guide you through the process of establishing an optional mirror. This mirror will be capable of replicating both the Debian and Netgear archives, offering you a reliable source for future updates.

By implementing these steps, you can regain control over your ReadyNas 628x device, ensuring its continued functionality and resilience, even in the absence of official Netgear support.

Workstream 1 - Update APT installer Sources:

* Note that Netgear has also not correctly permission'd the readynas 6.10.8 list so therefore it's here for whenever that happens, if it happens.

 

Use the following as your Sources File

 

 

root@NETGEAR-NAS:/home/machine# cat /etc/apt/sources.list

deb https://apt.readynas.com/packages/readynasos 6.10.8 updates apps main
deb https://apt.readynas.com/packages/readynasos 6.10.7 updates apps main
# deb http://mirrors.kernel.org/debian jessie main
# deb http://security.debian.org/ jessie/updates main
deb [trusted=yes] http://archive.debian.org/debian/ jessie main
deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main

deb [trusted=yes] http://archive.kernel.org/debian-archive/debian jessie main contrib non-free
deb [trusted=yes] http://archive.kernel.org/debian-archive/debian jessie-backports main contrib non-free

 

 


Update /etc/apt/apt.conf

 

 

root@NETGEAR-NAS:/home/machine# cat /etc/apt/apt.conf
Get::AllowUnauthenticated true;
Acquire::Check-Valid-Until false;

 

 

use the following in

run

 

 

sudo apt update -y

 

 



Workstream 2 - Optional Mirror:

* Note this is going to be ~200GB - 400 GB of mirrored archive files.

** If anyone has a better list of sources that minimized the mirror size to just what we need let me know

Install Mirror using the steps from https://apt-mirror.github.io/

Note in the example blow I set set base_path to /home/machine/apt-mirror because this is located on my 20TB of RAID storage which is the only place I can store the 300GB of mirrored files.

User the following for the Mirror List

 

 

root@NETGEAR-NAS:/home/machine# cat /etc/apt/mirror.list
############# config ##################
#
# set base_path    /var/spool/apt-mirror
set base_path    /home/machine/apt-mirror
#
# set mirror_path  $base_path/mirror
# set skel_path    $base_path/skel
# set var_path     $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch  <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############

deb http://ftp.us.debian.org/debian unstable main contrib non-free
deb-src http://ftp.us.debian.org/debian unstable main contrib non-free
##start custom
deb https://apt.readynas.com/packages/readynasos 6.10.8 updates apps main
deb https://apt.readynas.com/packages/readynasos 6.10.7 updates apps main
#deb http://mirrors.kernel.org/debian jessie main
#deb http://security.debian.org/jessie/updates main
deb http://archive.debian.org/debian/ jessie main
deb http://archive.debian.org/debian-security jessie/updates main

deb http://archive.kernel.org/debian-archive/debian jessie main contrib non-free
deb http://archive.kernel.org/debian-archive/debian jessie-backports main contrib non-free

##end custom
# mirror additional architectures

clean http://ftp.us.debian.org/debian

 

 



Example Errors Prior to my latest fix:

 

 

root@NETGEAR-NAS:/home/machine# sudo apt update -y
0% [Working]

Hit:1 http://deb.debian.org/debian buster-backports InRelease
Ign:2 http://archive.kernel.org/debian-archive/debian jessie InRelease
Get:3 http://archive.kernel.org/debian-archive/debian jessie-backports InRelease [166 kB]
Hit:4 http://deb.debian.org/debian unstable InRelease
Hit:5 http://archive.kernel.org/debian-archive/debian jessie Release
Get:6 http://archive.kernel.org/debian-archive/debian jessie Release.gpg [2,420 B]
Get:7 https://apt.readynas.com/packages/readynasos 6.10.8 InRelease [22.7 kB]
Get:8 https://download.docker.com/linux/debian jessie InRelease [44.8 kB]
Hit:9 https://apt.readynas.com/packages/readynasos 6.10.7 InRelease
Ign:3 http://archive.kernel.org/debian-archive/debian jessie-backports InRelease
Ign:6 http://archive.kernel.org/debian-archive/debian jessie Release.gpg
Fetched 236 kB in 3s (65.2 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
47 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: GPG error: http://archive.kernel.org/debian-archive/debian jessie-backports InRelease: The following signatures were invalid: KEYEXPIRED 1587841717  KEYEXPIRED 1587841717  KEYEXPIRED 1587841717  KEYEXPIRED 1587841717  KEYEXPIRED 1587841717  KEYEXPIRED 1668891673
W: GPG error: http://archive.kernel.org/debian-archive/debian jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717  KEYEXPIRED 1587841717  KEYEXPIRED 1587841717  KEYEXPIRED 1587841717  KEYEXPIRED 1587841717
root@NETGEAR-NAS:/home/machine#

 

 

 Update failure errors:
* I was unable to install dnsutils to get the dig command because APT was stuck pulling from outdated repos.

 

 

sudo apt-get install dnsutils -y

 

 

It is a similar issue to this user, and basically the same error : https://community.netgear.com/t5/Using-your-ReadyNAS-in-Business/apt-readynas-com-Broken-repo/m-p/23...

This fix is very similar to https://community.netgear.com/t5/Using-your-ReadyNAS-in-Business/How-I-got-apt-update-and-install-to...

Message 1 of 1
Top Contributors
Discussion stats
  • 0 replies
  • 696 views
  • 2 kudos
  • 1 in conversation
Announcements