Missing CLI on new Ubuntu 14.04 install

6 posts / 0 new
Last post
#1 Tue, 04/05/2016 - 08:26
paulzag

Missing CLI on new Ubuntu 14.04 install

I have a brand new server with Ubuntu 14.04, never used Virtualmin GPL on that before.

I follow the install instructions on https://www.virtualmin.com/download.html

But the virtualmin CLI script is either missing or in a directory on in my path.

# virtualmin restore-domain --source /root/backups/virtualmin.tar.gz --all-virtualmin
-bash: virtualmin: command not found

Any ideas?

Tue, 04/05/2016 - 11:26
andreychek

Howdy,

Hmm, what is the output of these two commands:

ls -l /usr/sbin/virtualmin
dpkg -l webmin-virtual-server
Tue, 04/05/2016 - 19:47
paulzag
ls -l /usr/sbin/virtualmin
ls: cannot access /usr/sbin/virtualmin: No such file or directory

dpkg -l webmin-virtual-server
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                       Version                    Architecture               Description
+++-==========================================-==========================-==========================-=========================================================================================
ii  webmin-virtual-server                      5.01.gpl                   all                        Webmin module for 'Virtualmin Virtual Servers (GPL)'
Tue, 04/05/2016 - 21:10
andreychek

Wow, that's really strange... the Virtualmin package is installed, but not all the files appear to be there.

Could you try running this command:

apt-get install --reinstall webmin-virtual-server

Afterwards, do you then see the "virtualmin" command?

-Eric

Wed, 04/06/2016 - 08:13 (Reply to #4)
paulzag

That was weird Eric, but it worked.

apt-get install --reinstall webmin-virtual-server

I didn't think of that, I just ran install.sh several times without success.

Wed, 04/06/2016 - 09:51
andreychek

Great, glad to hear that helped!

Yeah the installer won't reinstall packages. It just ensures that the ones it wants are installed.

Now, it is possible to uninstall Virtualmin with the installer... after which you could then try reinstalling it. But now that things are working I wouldn't recommend that :-)

Topic locked