Virtualmin install script fails due to hash failure

The script fails on two different servers (one newly installed debian lenny dedicated and a VM) with the same hash error.

W: Failed to fetch Hash Sum mismatch

The complete output of the install script is here:

lars:~# ./

Welcome to the Virtualmin GPL installer, version 1.0.3


The installation is quite stable and functional when run on a freshly
installed supported Operating System, but upgrades from existing .wbm-
based systems, or systems that already have Apache VirtualHost
directives or mail users, will very likely run into numerous problems.
Please read the Virtualmin Administrators Guide before proceeding if
your system is not a freshly installed and supported OS.

This script is not intended to update your system! It should only be
used to install Virtualmin, on a supported OS. If you have previously
installed Virtualmin via this script or the GPL version of this script,
upgrades and updates should be handled within Virtualmin itself. Once
Virtualmin is installed, you never need to run this script again.

The systems currently supported by are:
CentOS 4 and 5 on i386 and x86_64
Debian 4.0 and 5.0 on i386 and amd64
Ubuntu 8.04 LTS on i386 and amd64

If your OS is not listed above, this script will fail. More details
about the systems supported by the script can be found here:

Continue? (y/n) y
Checking for HTTP client...found /usr/bin/wget -nv
Checking for perl...found /usr/bin/perl
2010-03-10 09:50:14 URL: [579/579] -> "spinner" [1]
Loading log4sh logging library...
2010-03-10 09:50:15 URL: [21395/21395] -> "log4sh" [1]
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname...
hostname: Unknown host
INFO - Hostname is not fully qualified.
Please enter a fully qualified hostname (for example, [EDITED]
INFO - Hostname OK: fully qualified as [EDITED]
INFO - Primary address detected as [EDITED]
[EDITED] Debian-50-lenny-64-minimal
INFO - Entry for IP exists in /etc/hosts.
INFO - Updating with new hostname.
INFO - Installing serial number and license key into /etc/virtualmin-license
INFO - Loading OS selection library...
2010-03-10 09:50:26 URL: [4461/4461] -> "" [1]
INFO - Download of Succeeded.
INFO - Loading OS list...
2010-03-10 09:50:27 URL: [3047/3047] -> "os_list.txt" [1]
INFO - Download of Succeeded.
INFO - Operating system name: Debian Linux
INFO - Operating system version: 5.0
INFO - Configuring package manager for Debian Linux 5.0...
INFO - Enabling universe repositories, if not already available...
INFO - Disabling cdrom repositories...
Hit lenny/updates Release.gpg
Hit lenny Release.gpg
Hit lenny/updates Release.gpg
Hit lenny Release
Hit lenny/updates Release
Hit lenny Release.gpg
Hit lenny/updates Release
Get:1 lenny/main Packages/DiffIndex
Ign lenny/main Packages/DiffIndex
Get:2 lenny/contrib Packages/DiffIndex
Ign lenny/contrib Packages/DiffIndex
Get:3 lenny/non-free Packages/DiffIndex
Ign lenny/non-free Packages/DiffIndex
Hit lenny Release
Get:4 lenny/updates/main Packages/DiffIndex
Ign lenny/updates/main Packages/DiffIndex
Get:5 lenny/updates/contrib Packages/DiffIndex
Ign lenny/updates/contrib Packages/DiffIndex
Ign lenny/updates/main Packages/DiffIndex
Get:6 lenny/updates/non-free Packages/DiffIndex
Ign lenny/updates/non-free Packages/DiffIndex
Hit lenny/main Packages
Hit lenny/contrib Packages
Hit lenny/non-free Packages
Hit lenny/updates/main Packages
Hit lenny/updates/contrib Packages
Ign lenny/updates/contrib Packages/DiffIndex
Ign lenny/updates/non-free Packages/DiffIndex
Ign lenny/updates/main Sources/DiffIndex
Ign lenny/updates/contrib Sources/DiffIndex
Ign lenny/updates/non-free Sources/DiffIndex
Hit lenny/updates/non-free Packages
Ign lenny/main Packages/DiffIndex
Hit lenny/updates/main Packages
Hit lenny/updates/contrib Packages
Hit lenny/updates/non-free Packages
Hit lenny/updates/main Sources
Ign lenny/non-free Packages/DiffIndex
Ign lenny/contrib Packages/DiffIndex
Ign lenny/main Sources/DiffIndex
Ign lenny/non-free Sources/DiffIndex
Ign lenny/contrib Sources/DiffIndex
Hit lenny/updates/contrib Sources
Hit lenny/main Packages
Hit lenny/updates/non-free Sources
Hit lenny/non-free Packages
Hit lenny/contrib Packages
Hit lenny/main Sources
Hit lenny/non-free Sources
Hit lenny/contrib Sources
Reading package lists... Done
INFO - Cleaning up apt headers and packages, so we can start fresh...
2010-03-10 09:50:28 URL: [243/243] -> "apt.conf.noninteractive" [1]
INFO - Download of Succeeded.
INFO - Installing Webmin and Virtualmin package signing keys...
2010-03-10 09:50:28 URL: [1690/1690] -> "RPM-GPG-KEY-virtualmin" [1]
INFO - Download of Succeeded.
2010-03-10 09:50:28 URL: [1320/1320] -> "RPM-GPG-KEY-webmin" [1]
INFO - Download of Succeeded.
W: Failed to fetch Hash Sum mismatch

E: Some index files failed to download, they have been ignored, or old ones used instead.
INFO - Hit
INFO - Removing Debian standard Webmin package, if they exist (because they're broken)...
INFO - Removing Debian apache packages...
INFO - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip progress, please wait... INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip: Succeeded.
INFO - Succeeded.
INFO - Installing Virtualmin and all related packages now using the command:
INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base progress, please wait... \E: Broken packages /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem:
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
virtualmin-base: Depends: usermin-virtual-server-theme but it is not installab
Depends: webmin-security-updates but it is not installable
Depends: webmin-virtual-server but it is not installable
Depends: webmin-virtual-server-theme but it is not installabl
Depends: webmin-virtualmin-awstats but it is not installable
Depends: webmin-virtualmin-dav but it is not installable
Depends: webmin-virtualmin-htpasswd but it is not installable
Depends: webmin-virtualmin-mailman but it is not installable
Depends: webmin-virtualmin-svn but it is not installable

FATAL - Fatal Error Occurred: Installation failed: 0
FATAL - Cannot continue installation.
FATAL - Attempting to remove virtualmin repository configuration, so the install
FATAL - re-attempted after any problems have been resolved.
FATAL - Removing temporary directory and files.
FATAL - If you are unsure of what went wrong, you may wish to review the log
FATAL - in /root/virtualmin-install.log

Closed (fixed)


Can verify this. Happens on a clean Debian 5.0 amd64 install.

Joe is taking a look into this now..

For those seeing this, are you running 32-bit or 64-bit systems? I didn't see this problem during an install on a 32-bit Ubuntu 8.04 system..

Both systems on which I had the problem were running 64bit Debian 5.0 (lenny).

I can confirm it's happening on amd64 systems.


It's both 32-bit and 64-bit Debian. Ubuntu is not affected because the (and Release.gpg) file is current.

The Release and Release.gpg files at aren't reflecting the new Packages files in the debian versions: -- The Packages files were modified yesterday at 2:14.

I think you just need to regenerate the Release file and sign it...

I've got the same problem... I tried to install on fresh and clean Debian 5.0 Lenny 32 bit.

The hash for the GPL debian repo is broken. No one can install or upgrade until this is fixed.

Can we get an update on this?

Looks to me like its a serious problem with a simple fix!

And i cant get my new web server set up till its fixed!

Yes, I need to setup a new box as well :(

However, like sgrayban said. It's only the GPL release, so the fix will probably take a while. In the meantime we can follow the intention and buy the Pro version.

Is there a way to tell the install script to ignore the hash error and just proceed? Because I really like to evaluate Virtualmin, but am unable to install it.

I thought that could be fixed fast because it doesn't seems to be really big problem... still waiting :(

I would like to see this resolved soon, as I have a few projects that need it at the moment.

+1 on this.

I know it's not the paid version of the product, but this is quite a long time for this bug to be open for a problem of this type...

I too would like to see this resolved soon... I have a new box to build.

Issue seen on clean Debian 5.0.4 Lenny on amd64

Joe's picture
Submitted by Joe on Fri, 03/12/2010 - 18:43 Pro Licensee

I think I have this fixed now. I'm starting another test run now, and will close once I've confirmed it.

Thank you, Joe!

I can verify, it works now. At least for Debian 5.0-amd64.

I can confirm the install is now fine! Thanks for the fix :)

Works here too. Thanks for fixing. Install seems to work well.

Joe's picture
Submitted by Joe on Sun, 03/14/2010 - 15:58 Pro Licensee

Thanks for the updates, guys. I won't happen again. I was rewriting all the scripts for managing the repos, so that it all happens on a central build machine (that Jamie and Eric have will have access to, just in case I'm unavailable and something goes wrong), and I made a few typos along the way that led to some repos not getting updated, and others getting the wrong Release file. Things should be more robust going forward, and updates should be able to happen more quickly (particularly on Debian, where my old build setup had some odd bottlenecks that made repo metadata generation take up to an hour to process).

Automatically closed -- issue fixed for 2 weeks with no activity.

Unfortunately, Debian 5 "Lenny" reached it's end of life back in 2012. It's no longer supported by the folks at Debian, or by Virtualmin.

Our suggestion is to use a supported Debian version, I would recommend Debian 8 if possible since it's supported for a long time still.

However, Debian 6 will be supported until February 2016, and Debian 7 until May 2018.

OK, was just upgrading stuff on an old server and noticed that.

Unfortunately, the old repositories are no longer maintained. Perhaps I should talk to Joe about removing them entirely, though we've been reluctant to do that for some reason.

We'd highly recommend upgrading that server to use a distro that's being maintained, as it hasn't received any updates in over 3 years.

However, if you needed to, you could always manually download a Webmin and Virtualmin .deb from a newer repository and install that manually.