Issues installing Virtualmin

Hi,

I’m trying to install Virtualmin on Debian 8 Jessie. I seem to be receiving a weird error.

I’ve added to my sources.list:
deb http://software.virtualmin.com/gpl/debian/ virtualmin-jessie main
deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main

It attempts to install Usermin and then says Usermin doesn’t seem to be installed or it needs to be the Debian version of Usermin. Does anyone have any suggestions what I could look for to fix this issue? Should I maybe try install.sh instead?

sudo apt-get install usermin webmin virtualmin-base

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
usermin-virtual-server-theme webmin-security-updates webmin-virtual-server webmin-virtual-server-theme webmin-virtualmin-awstats webmin-virtualmin-dav
webmin-virtualmin-htpasswd webmin-virtualmin-mailman webmin-virtualmin-svn
The following NEW packages will be installed:
usermin usermin-virtual-server-theme virtualmin-base webmin webmin-security-updates webmin-virtual-server webmin-virtual-server-theme webmin-virtualmin-awstats
webmin-virtualmin-dav webmin-virtualmin-htpasswd webmin-virtualmin-mailman webmin-virtualmin-svn
0 upgraded, 12 newly installed, 0 to remove and 43 not upgraded.
Need to get 0 B/47.3 MB of archives.
After this operation, 5,211 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package usermin.
(Reading database … 23334 files and directories currently installed.)
Preparing to unpack …/archives/usermin_1.670_all.deb …
Unpacking usermin (1.670) …
Preparing to unpack …/usermin-virtual-server-theme_6.8_all.deb …
Usermin does not appear to be installed on your system.
This package cannot be installed unless the Debian version of Usermin
is installed first.
dpkg: error processing archive /var/cache/apt/archives/usermin-virtual-server-theme_6.8_all.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Selecting previously unselected package webmin.
Preparing to unpack …/archives/webmin_1.760_all.deb …
Unpacking webmin (1.760) …
Preparing to unpack …/webmin-security-updates_4.5_all.deb …
Webmin does not appear to be installed on your system.
This package cannot be installed unless the Debian version of Webmin
is installed first.
dpkg: error processing archive /var/cache/apt/archives/webmin-security-updates_4.5_all.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Preparing to unpack …/webmin-virtual-server_4.18.gpl_all.deb …
Webmin does not appear to be installed on your system.
This package cannot be installed unless the Debian version of Webmin
is installed first.
dpkg: error processing archive /var/cache/apt/archives/webmin-virtual-server_4.18.gpl_all.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Preparing to unpack …/webmin-virtual-server-theme_9.0-2_all.deb …
Webmin does not appear to be installed on your system.
This package cannot be installed unless the Debian version of Webmin
is installed first.
dpkg: error processing archive /var/cache/apt/archives/webmin-virtual-server-theme_9.0-2_all.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Preparing to unpack …/webmin-virtualmin-awstats_5.1_all.deb …
Webmin does not appear to be installed on your system.
This package cannot be installed unless the Debian version of Webmin
is installed first.
dpkg: error processing archive /var/cache/apt/archives/webmin-virtualmin-awstats_5.1_all.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Preparing to unpack …/webmin-virtualmin-dav_3.7_all.deb …
Webmin does not appear to be installed on your system.
This package cannot be installed unless the Debian version of Webmin
is installed first.
dpkg: error processing archive /var/cache/apt/archives/webmin-virtualmin-dav_3.7_all.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Preparing to unpack …/webmin-virtualmin-htpasswd_2.6_all.deb …
Webmin does not appear to be installed on your system.
This package cannot be installed unless the Debian version of Webmin
is installed first.
dpkg: error processing archive /var/cache/apt/archives/webmin-virtualmin-htpasswd_2.6_all.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Preparing to unpack …/webmin-virtualmin-mailman_6.3_all.deb …
Webmin does not appear to be installed on your system.
This package cannot be installed unless the Debian version of Webmin
is installed first.
dpkg: error processing archive /var/cache/apt/archives/webmin-virtualmin-mailman_6.3_all.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Preparing to unpack …/webmin-virtualmin-svn_5.1_all.deb …
Webmin does not appear to be installed on your system.
This package cannot be installed unless the Debian version of Webmin
is installed first.
dpkg: error processing archive /var/cache/apt/archives/webmin-virtualmin-svn_5.1_all.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Selecting previously unselected package virtualmin-base.
Preparing to unpack …/virtualmin-base_1.0-37_all.deb …
Unpacking virtualmin-base (1.0-37) …
Processing triggers for systemd (215-17+deb8u1) …
Errors were encountered while processing:
/var/cache/apt/archives/usermin-virtual-server-theme_6.8_all.deb
/var/cache/apt/archives/webmin-security-updates_4.5_all.deb
/var/cache/apt/archives/webmin-virtual-server_4.18.gpl_all.deb
/var/cache/apt/archives/webmin-virtual-server-theme_9.0-2_all.deb
/var/cache/apt/archives/webmin-virtualmin-awstats_5.1_all.deb
/var/cache/apt/archives/webmin-virtualmin-dav_3.7_all.deb
/var/cache/apt/archives/webmin-virtualmin-htpasswd_2.6_all.deb
/var/cache/apt/archives/webmin-virtualmin-mailman_6.3_all.deb
/var/cache/apt/archives/webmin-virtualmin-svn_5.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried the install.sh and it worked!
So for anyone having the same issue, I would recommend trying install.sh.

Thanks guys.

Definitely. Start the script with ./install.sh and before give it a “chmod +x install.sh” to make it executable.

Howdy,

Glad you were able to get it working!

We definitely recommend the install.sh script – not only does it install the Virtualmin package, but it does quite a bit of configuration on your server to get things working properly.

We hope you enjoy using Virtualmin!

-Eric

Pay attention to this error: “Usermin does not appear to be installed on your system”

Just download and install the Usermin

dpkg --install usermin_1.690_all.deb

After that restart the install.sh

Cheers