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

Issue installing sudo using apt-get

GJSchaller
Guide

Issue installing sudo using apt-get

I am attempting to install sudo on my ReadyNAS to be able to run some stuff from the command line.  When I attempt to do so using apt-get, I get an error - full output is below (Spaces are added for ease of reading):

 

Welcome to ReadyNASOS 6.9.4
Last login: Tue Sep 18 16:28:19 2018 from ool-2f160162.static.optonline.net

root@GeoffNAS:~# apt-get install sudo

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 mariadb-server : Depends: mariadb-server-10.0 (>= 10.0.36-0+deb8u1) but 10.0.35-0+deb8u1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

root@GeoffNAS:~# apt-get -f install

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libssh2-1
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  mariadb-server-10.0
Suggested packages:
  mailx mariadb-test tinyca
Recommended packages:
  libhtml-template-perl
The following packages will be upgraded:
  mariadb-server-10.0
1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
4 not fully installed or removed.
Need to get 0 B/3,435 kB of archives.
After this operation, 11.3 kB disk space will be freed.
Do you want to continue? [Y/n] Y

debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 37099 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.0_10.0.36-0+deb8u1_armel.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
2540
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
2540
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.0_10.0.36-0+deb8u1_armel.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).
Errors were encountered while processing:
 /var/cache/apt/archives/mariadb-server-10.0_10.0.36-0+deb8u1_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@GeoffNAS:~#
Model: RN214|4 BAY Desktop ReadyNAS Storage
Message 1 of 5
kohdee
NETGEAR Expert

Re: Issue installing sudo using apt-get

You are failing to install mariadb... you need to remove that since it is not installing properly and then try to install sudo. 

[edit] it actually says you have mysql running and you need to stop it before you can install mariadb. 

There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!

 

Message 2 of 5
Sandshark
Sensei

Re: Issue installing sudo using apt-get

Since you log in via SSH as ROOT, you don't need sudo.  Just run the command.

Message 3 of 5
GJSchaller
Guide

Re: Issue installing sudo using apt-get

The function I was needing to run was giving a message it needed to be run specifically as Admin, not Root, but I realized I was able to just SSH in as Admin and do it that way instead.

Message 4 of 5
StephenB
Guru

Re: Issue installing sudo using apt-get


@GJSchaller wrote:

The function I was needing to run was giving a message it needed to be run specifically as Admin, not Root, but I realized I was able to just SSH in as Admin and do it that way instead.


Something wrong there, root is what you always should use.  You can really mess things up if you try to install packages as admin. 

 

What function were you running?

Message 5 of 5
Top Contributors
Discussion stats
  • 4 replies
  • 2311 views
  • 0 kudos
  • 4 in conversation
Announcements