- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Issue installing sudo using apt-get
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:~#
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Issue installing sudo using apt-get
Since you log in via SSH as ROOT, you don't need sudo. Just run the command.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?