install webmin ubuntu dependency solution

I am a hardcore fan of CentOS and never actually gave enough idea to any other OS. This seriously needed to change. So, in Debian, I started with Ubuntu. First thing I tried out is WebMin installation on Ubuntu 12.04 and 13.04; 32bit and 64bit both.

This is how I did it (with resolution to dependency errors).

Login to your server SSH (shell) using PuTTY or any other client you like.

NOTE: Remove ‘sudo’ if you are already using root or admin equivalent logins.

Now, lets download the debian package of WebMin;

sudo wget http://www.webmin.com/download/deb/webmin-current.deb

This will always pull the latest version of WebMin from the WebMin site.

To install it copy-paste the below command,

sudo dpkg --install webmin-current.deb

Ubuntu will unpack WebMin package and install it. In most cases this will go just fine. In my case, I got hit with several errors for dependencies. These all were pearl dependencies which were missing.

(Reading database ... 47458 files and directories currently installed.)
Preparing to replace webmin 1.650 (using webmin-current.deb) ...
Unpacking replacement webmin ...
dpkg: dependency problems prevent configuration of webmin:
 webmin depends on libnet-ssleay-perl; however:
  Package libnet-ssleay-perl is not installed.
 webmin depends on libauthen-pam-perl; however:
  Package libauthen-pam-perl is not installed.
 webmin depends on libio-pty-perl; however:
  Package libio-pty-perl is not installed.
 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

This took a little time but got resolved in the end. First I tried this;

sudo apt-get install apt-show-versions libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl

But to my surprise it threw me another error. 🙁

Reading package lists... Done
Building dependency tree... Done
Package libnet-ssleay-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libauthen-pam-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libio-pty-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package apt-show-versions is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'apt-show-versions' has no installation candidate
E: Unable to locate package libapt-pkg-perl
E: Package 'libauthen-pam-perl' has no installation candidate
E: Package 'libio-pty-perl' has no installation candidate
E: Package 'libnet-ssleay-perl' has no installation candidate

It came to my notice that actually Ubuntu needs an update first and I never ran an update. My bad! So, next step was to update Ubuntu,

sudo apt-get update
sudo apt-get upgrade

Then again I tried the above command

sudo apt-get install apt-show-versions libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl

install webmin ubuntu dependency solution

Not only it worked like charm but it also installed WebMin without going for it manually. Hmmm… need to know more about Ubuntu.

When it is finished you will be able to login in WebMin at;

http://yoursite or IP:10000

However, I recommend to run above two update commands again. You may get a surprise. Trust me.

The login for WebMin will be the same as your SSH login. ‘root’ user in most cases.

I hope this will help people having issues with WebMin. Let me know if there’s something else we can talk about!

By Mrinal Buddekar

Data Manager and a technology enthusiast! Mrinal Buddekar is Pune based blogger who loves building server, websites, technology, and affiliate blogging.

Hey there!

Help us reach out to awesome people lie you out there. We publish Tech and WordPress, Deals, and Reviews. WE DON'T SPAM!

Your Information will never be shared with any third party