Install Webmin newest version via SSH

Hi All,

I’m using Virtual Private Server for hosting several of my websites. I have installed Ubuntu and Webmin 1.470 for managing the server. For a few days I can’t access the Webmin interface via browser (https://my_domain.com:10000/) and I was thinking about to install the newest version of Webmin, hoped it will ‘rewrite’ some system files so I will have access to Webmin once again. I downloaded the newest Webmin via SSH successfully but when trying to install, I got this error :


root@viktor:~# ls -l
total 27752
-rw-r--r-- 1 root root 13760140 Mar 18  2009 webmin_1.470_all.deb
-rw-r--r-- 1 root root 14607442 Aug 29 04:24 webmin_1.520_all.deb
root@viktor:~# dpkg --install webmin_1.520_all.deb
(Reading database ... 29983 files and directories currently installed.)
Preparing to replace webmin 1.470 (using webmin_1.520_all.deb) ...
Unpacking replacement webmin ...
dpkg: dependency problems prevent configuration of webmin:
 webmin depends on apt-show-versions; however:
  Package apt-show-versions is not installed.
dpkg: error processing webmin (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 webmin
root@viktor:~#

I’m not a Linux guru, so any help will be highly appreciated!!! :slight_smile:

do
apt-get install apt-show-versions
before running that command - that is the package that webmin wants so much :wink:

I tried


apt-get install apt-show-versions

the response was :


root@viktor:~# apt-get install apt-show-versions
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:
  apt-show-versions: Depends: libapt-pkg-perl (>= 0.1.21) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

then I typed


apt-get -f install

Then it asked me to install 2 new packages


The following extra packages will be installed:
  apt-show-versions libapt-pkg-perl
The following NEW packages will be installed:
  apt-show-versions libapt-pkg-perl

I confirmed to install and then chosen to install the new Webmin, after that :


Installing new version of config file /etc/pam.d/webmin ...
Webmin install complete. You can now login to https://my_domain.com:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.

BUT I still cannot access the Webmin interface,


The connection has timed out!

annoying at the browser… I tried to restart Webmin, no changes… I’m desperate… Any ideas???

When logged into console, can you connect to localhost port 10000 ?

telnet localhost 10000

The response should look something like:

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

If you can connect this way, then this is most probably firewall issue and you need to configure it to let others connect to port 10000 on this host.
if, on the other hand you get response like this:

Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

then most probably the webmin is not started - or it is started, but not on that port. Try browsing through log files.

Thank you Aleksejs for your help! I tried to connect to telnet in SSH and the response was


Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.

so I suppose it’s working… My problem is that I’m not familiar with managing the server through the terminal/SSH so I suppose I will have to learn more in this field. How can I view/change the settings of the firewall???