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

Re: How I got apt update and install to work (with Debian Jessie retired)

StephenB
Guru

Re: How I got apt update and install to work (with Debian Jessie retired)


@XtheUnknown wrote:

That didn't work for me - I found my OS partition (directory: var/spool/apt-mirror/mirror) filling up rapidly...

 

So, I've edited the apt-mirror script (line 103) to specify my desired save location in the base-path configuration variable, which is probably not the best way to do it (I'm not a linux expert), but it seems to work (201GB downloading as I write)...

 

 


 $base_path was already set to /data/apt-mirror - I don't recall doing that, perhaps I did.

 

 

Message 26 of 41
Sandshark
Sensei

Re: How I got apt update and install to work (with Debian Jessie retired)

All OS6 ARM units should be able to use ARMHF, which is 64-bit.  But not every package is available as ARMHF, so it falls back to ARMEL when it's not.

 

I never even got apt-mirror to run on my NAS.  But I am still on 6.9.6 on my NAS, so that could be it.  I've been reluctant to update to 6.10.x for fear some apps will stop working.

Message 27 of 41
StephenB
Guru

Re: How I got apt update and install to work (with Debian Jessie retired)


@Sandshark wrote:

All OS6 ARM units should be able to use ARMHF, which is 64-bit. 

 


Not convinced that is the case. The only packages Netgear has in their ARMHF repositories are "*_all.deb"  A lot of stuff is armel only (for instance, wget).

 

EDIT - looking again, I am seeing some armhf libraries

 


@Sandshark wrote:

 

I never even got apt-mirror to run on my NAS. 


What happened when you ran it?  

Message 28 of 41
XtheUnknown
Guide

Re: How I got apt update and install to work (with Debian Jessie retired)

Numpty question I know, but:

 

Having downloaded the repositories, how do I ensure that the OS knows they are there? My sources.list for example is still pointing at the internet...?

Message 29 of 41
StephenB
Guru

Re: How I got apt update and install to work (with Debian Jessie retired)


@XtheUnknown wrote:

My sources.list for example is still pointing at the internet...?


You'd have to change that.

Message 30 of 41
Gregsta
Aspirant

Re: How I got apt update and install to work (with Debian Jessie retired)

I followed the steps in the first message but see all these kind of errors. Why does apt-get attempt to install the deb8u1 version of these packages if deb8u2 is already installed?  This type of error is seen for most package installs. 
Looks like something is defaulting to deb8u2 while something else is defaulting to deb8u1 packages...

root@steammills:/data# apt-get install gcc-4.9
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gcc-4.9 : Depends: cpp-4.9 (= 4.9.2-10+deb8u1) but it is not going to be installed
           Depends: gcc-4.9-base (= 4.9.2-10+deb8u1) but 4.9.2-10+deb8u2 is to be installed
           Depends: libgcc-4.9-dev (= 4.9.2-10+deb8u1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

 

Message 31 of 41
eton
Luminary

Re: How I got apt update and install to work (with Debian Jessie retired)

In my previous post I forgot to add the sources I use. They are:

 

deb http://archive.debian.org/debian/ jessie main contrib non-free
deb http://archive.debian.org/debian-security jessie/updates main contrib non-free

 

In /etc/apt/sources.list

 

The backport sources mentioned by  @Sandshark might be better.

Server: RN312 with 2 x Hitachi Deskstar 5K3000 2TB, backup: DB-ALU3E-6G (ext2).
Router: PC Engines APU2D4 (pfSense). Switch: UniFi Lite 8 PoE. AP: UniFi nanoHD.
Message 32 of 41
phs989
Aspirant

Re: How I got apt update and install to work (with Debian Jessie retired)

Id love to do this change to my ReadyNAS.  Im actually trying to install Remote.it but cant due to the lack of jq on the debian platform and errors to upgrade. 

 

Im a total newbie when it comes to this but can use SSH and can connect to my ReadyNAS.  Can you help with some more detailed step by steps for me?  

Message 33 of 41
schumaku
Guru

Re: How I got apt update and install to work (with Debian Jessie retired)


@phs989 wrote:

Id love to do this change to my ReadyNAS.  Im actually trying to install Remote.it but cant due to the lack of jq on the debian platform and errors to upgrade.  


Start from the two files @Sandshark explained to modify resp. add back in April 2023 https://community.netgear.com/t5/Using-your-ReadyNAS-in-Business/How-I-got-apt-update-and-install-to... 

 

A little bit to vague on what "Remote" you are asking about....

Message 34 of 41
phs989
Aspirant

Re: How I got apt update and install to work (with Debian Jessie retired)

Managed to get the 2 files modified and added to the required folder.  Sorry youre right the use of remote was vague.  This is the service i am trying to set up https://www.remote.it/benefits to enable remote access to my ReadyNAS.  Im a basic user of this and mostly my NAS is used for local file sharing but sometimes i need to share with external sources too.  

I managed to run apt-update and it seemed to work but im getting errors when i try and install the remote.it package.  Ive sent the error to their support for help.  

Their support told me i needed jq 1.6 and when i checked it states i have jq 1.4-2.1 so i dont understand why this would be an issue? 

jq is already the newest version (1.4-2.1+deb8u1)


 

Message 35 of 41
StephenB
Guru

Re: How I got apt update and install to work (with Debian Jessie retired)


@phs989 wrote:

 

Their support told me i needed jq 1.6 and when i checked it states i have jq 1.4-2.1 so i dont understand why this would be an issue? 

 


jq 1.6 would be newer than 1.4-2.1. 

 

But it was apparently never backported to Debian 8 (Jessie), so I think you are out of luck.

 

 

Message 36 of 41
Sandshark
Sensei

Re: How I got apt update and install to work (with Debian Jessie retired)

OK, for those still struggling to follow the whole thread or having difficulty with VI or trying to use a Windows editor, here is a summary and quick solution:

 

This is my current /etc/apt/sources.list with firmware 6.10.9:

deb https://apt.readynas.com/packages/readynasos 6.10.9 updates apps main

# deb http://mirrors.kernel.org/debian jessie main
# deb http://security.debian.org/ 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
deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main non-free contrib

 

/etc/apt/apt.conf remains unchanged for my original post:

Get::AllowUnauthenticated true;
Acquire::Check-Valid-Until false;

 

Now, if you are having trouble getting them this done, here is a solution. Note that these files are from my personal DropBox, so may disappear after a few months.  You still need SSH, but don't have to edit anything.

 

https://www.dropbox.com/scl/fi/zoqxg8u1y0ztqjkfrvod7/sources.list?rlkey=5ouaymaz3ejn0ssc58ad8nfrk&dl... 

https://www.dropbox.com/scl/fi/25hs7nn12830vz9xk2phx/apt.conf?rlkey=maf95f9ncug9q09v4znm0kiwt&dl=0 

 

Put these somewhere on your NAS using SMB, the GUI, or whatever. Then, from SSH, you simply need to copy them from where you put them to their proper place. Then do an apt-get update (Note: NOT upgrade!). When you do so, these are the only warnings you should see:

W: GPG error: http://archive.kernel.org/debian-archive/debian jessie-backports InRelease: The following signatures were invalid: KEYEXPIRED 1587841717 KEYEXPIRED 1668891673
W: GPG error: http://archive.kernel.org/debian-archive/debian jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717

 

Well, those are the only ones unless an app has put something in /etc/apt/sources.list.d, in which case you may have to add [trusted=yes] there as well.


And once you get this done, run apt-get install nano to get yourself a usable editor.  If you are sticking with ReadyNAS, there's a good chance you'll need it down the road.

Message 37 of 41
ietsrl
Aspirant

Re: How I got apt update and install to work (with Debian Jessie retired)

whats change in apt.conf?

Thanks

 

Message 38 of 41
StephenB
Guru

Re: How I got apt update and install to work (with Debian Jessie retired)


@ietsrl wrote:

whats change in apt.conf?

 


It's actually not in the default ReadyNAS config at all.

 

Just read the info in the post right above yours...

 

Then you need to create /etc/apt/apt.conf with the following content:

Get::AllowUnauthenticated true;
Acquire::Check-Valid-Until false;

 

Message 39 of 41
Paniim
Aspirant

Re: How I got apt update and install to work (with Debian Jessie retired)

Thanks for the answer. I have looked at this solution. I would like to apply it to me. But I have never used SSH. I won't take orders. Hope someone can help me with this.

Message 40 of 41
dhl
Luminary
Luminary

Re: How I got apt update and install to work (with Debian Jessie retired)

Hi All,

 

After going back and re-reading this and the ZeroTier as ReadyCloud Replacement threads, I finally got 1.6.6 running and online!

 

It totally works! I see the remote server in the macOS network tab and I can log on with my credentials and everything I expect is there. It's a fine replacement for ReadyCloud and the team is stoked to be able to work remotely again.

 

Thanks @Sandshark@StephenB, and everyone else for your help!😊

Message 41 of 41
Top Contributors
Discussion stats
  • 40 replies
  • 10866 views
  • 9 kudos
  • 13 in conversation
Announcements