Virtualmin install script fails

11 posts / 0 new
Last post
#1 Tue, 03/09/2010 - 19:54
janderk

Virtualmin install script fails

I tried to install Virtualmin today and it failes with the message below. This is on a clean Debian Lenny VM. Weird thing is that a few days ago it worked perfectly. I tried on another server and had the same error there.

I am a newby but this part sound suspicious:

W: Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/main/binary-amd64/Packages.gz Hash Sum mismatch

Could it be that the package in the repository has a wrong hash value? Or is it just me doing something stupid?

Jan Derk


debian:~# ./install.sh

Welcome to the Virtualmin GPL installer, version 1.0.3

WARNING:

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 install.sh 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:

http://www.virtualmin.com/os-support.html

Continue? (y/n) y
Checking for HTTP client...found /usr/bin/wget -nv
Checking for perl...found /usr/bin/perl
2010-03-09 19:45:12 URL:http://software.virtualmin.com/lib/spinner [579/579] -> "spinner" [1]
Loading log4sh logging library...
2010-03-09 19:45:12 URL:http://software.virtualmin.com/lib/log4sh [21395/21395] -> "log4sh" [1]
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname...
INFO - Hostname OK: fully qualified as debian.digitaldutch.info
INFO - Installing serial number and license key into /etc/virtualmin-license
INFO - Loading OS selection library...
2010-03-09 19:45:13 URL:http://software.virtualmin.com/lib/oschooser.pl [4461/4461] -> "oschooser.pl" [1]
INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - Loading OS list...
2010-03-09 19:45:13 URL:http://software.virtualmin.com/lib/os_list.txt [3047/3047] -> "os_list.txt" [1]
INFO - Download of http://software.virtualmin.com/lib/os_list.txt 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 http://security.debian.org lenny/updates Release.gpg
Hit http://ftp.nl.debian.org lenny Release.gpg
Hit http://ftp.nl.debian.org lenny Release
Hit http://security.debian.org lenny/updates Release
Get:1 http://debian.syscp.org lenny/ Release.gpg [197B]
Ign http://ftp.nl.debian.org lenny/main Packages/DiffIndex
Hit http://debian.syscp.org lenny/ Release
Hit http://volatile.debian.org lenny/volatile Release.gpg
Err http://debian.syscp.org lenny/ Release

Ign http://ftp.nl.debian.org lenny/main Sources/DiffIndex
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Get:2 http://debian.syscp.org lenny/ Release [523B]
Ign http://debian.syscp.org lenny/ Release
Hit http://ftp.nl.debian.org lenny/main Packages
Hit http://volatile.debian.org lenny/volatile Release
Hit http://ftp.nl.debian.org lenny/main Sources
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Ign http://debian.syscp.org lenny/ Packages/DiffIndex
Hit http://security.debian.org lenny/updates/main Packages
Hit http://debian.syscp.org lenny/ Packages
Hit http://security.debian.org lenny/updates/main Sources
Ign http://volatile.debian.org lenny/volatile/main Packages/DiffIndex
Ign http://volatile.debian.org lenny/volatile/main Sources/DiffIndex
Hit http://volatile.debian.org lenny/volatile/main Packages
Hit http://volatile.debian.org lenny/volatile/main Sources
Fetched 720B in 0s (1692B/s)
Reading package lists... Done
W: GPG error: http://debian.syscp.org lenny/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB8BDC4195A7D80C
W: You may want to run apt-get update to correct these problems
INFO - Cleaning up apt headers and packages, so we can start fresh...
INFO -
2010-03-09 19:45:14 URL:http://software.virtualmin.com/lib/apt.conf.noninteractive [243/243] -> "apt.conf.noninteractive" [1]
INFO - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Succeeded.
INFO - Installing Webmin and Virtualmin package signing keys...
2010-03-09 19:45:15 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin [1690/1690] -> "RPM-GPG-KEY-virtualmin" [1]
INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Succeeded.
2010-03-09 19:45:15 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin [1320/1320] -> "RPM-GPG-KEY-webmin" [1]
INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeeded.
INFO - OK
INFO - OK
W: GPG error: http://debian.syscp.org lenny/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB8BDC4195A7D80C
W: Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/main/binary-amd64/Packages.gz 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
...in 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
...in 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 installable
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 installable
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 installation can be
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

Tue, 03/09/2010 - 20:49
andreychek

Well, first off, you may want to disable the "debian.syscp.org" mirror. It seems to be generating a lot of errors, and certainly isn't helping :-)

Once you do that -- what I'd suggest doing is running "apt-get update", and then try running the install script again, and we'll see what happens from there.

-Eric

Tue, 03/09/2010 - 22:04
trey

I'm getting this error too. It looks like the Release file at http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/ hasn't been updated to reflect the newly created Packages.* files in main/binary-i386/ and possibly others (haven't checked them).

Wed, 03/10/2010 - 03:16 (Reply to #3)
janderk

Does that mean that I just have to patient until the repository is all right?

Wed, 03/10/2010 - 03:14
janderk

Sorry about that syscp mirror. I don't think it causes the problem though. Here are the result source from running the install script on a totally different clean dedicated server at Hetzner:

lars:~# ./install.sh

Welcome to the Virtualmin GPL installer, version 1.0.3

WARNING:

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 install.sh 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:

http://www.virtualmin.com/os-support.html

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:http://software.virtualmin.com/lib/spinner [579/579] -> "spinner" [1]
Loading log4sh logging library...
2010-03-10 09:50:15 URL:http://software.virtualmin.com/lib/log4sh [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, example.com): [EDITED]
INFO - Hostname OK: fully qualified as [EDITED]
INFO - Primary address detected as [EDITED]
[EDITED] Debian-50-lenny-64-minimal
INFO - Entry for IP [EDITED] 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:http://software.virtualmin.com/lib/oschooser.pl [4461/4461] -> "oschooser.pl" [1]
INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - Loading OS list...
2010-03-10 09:50:27 URL:http://software.virtualmin.com/lib/os_list.txt [3047/3047] -> "os_list.txt" [1]
INFO - Download of http://software.virtualmin.com/lib/os_list.txt 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 http://security.debian.org lenny/updates Release.gpg
Hit ftp://mirror.hetzner.de lenny Release.gpg
Hit ftp://mirror.hetzner.de lenny/updates Release.gpg
Hit ftp://mirror.hetzner.de lenny Release
Hit ftp://mirror.hetzner.de lenny/updates Release
Hit http://ftp.de.debian.org lenny Release.gpg
Hit http://security.debian.org lenny/updates Release
Get:1 ftp://mirror.hetzner.de lenny/main Packages/DiffIndex
Ign ftp://mirror.hetzner.de lenny/main Packages/DiffIndex
Get:2 ftp://mirror.hetzner.de lenny/contrib Packages/DiffIndex
Ign ftp://mirror.hetzner.de lenny/contrib Packages/DiffIndex
Get:3 ftp://mirror.hetzner.de lenny/non-free Packages/DiffIndex
Ign ftp://mirror.hetzner.de lenny/non-free Packages/DiffIndex
Hit http://ftp.de.debian.org lenny Release
Get:4 ftp://mirror.hetzner.de lenny/updates/main Packages/DiffIndex
Ign ftp://mirror.hetzner.de lenny/updates/main Packages/DiffIndex
Get:5 ftp://mirror.hetzner.de lenny/updates/contrib Packages/DiffIndex
Ign ftp://mirror.hetzner.de lenny/updates/contrib Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Get:6 ftp://mirror.hetzner.de lenny/updates/non-free Packages/DiffIndex
Ign ftp://mirror.hetzner.de lenny/updates/non-free Packages/DiffIndex
Hit ftp://mirror.hetzner.de lenny/main Packages
Hit ftp://mirror.hetzner.de lenny/contrib Packages
Hit ftp://mirror.hetzner.de lenny/non-free Packages
Hit ftp://mirror.hetzner.de lenny/updates/main Packages
Hit ftp://mirror.hetzner.de lenny/updates/contrib Packages
Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex
Ign http://security.debian.org lenny/updates/non-free Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Ign http://security.debian.org lenny/updates/contrib Sources/DiffIndex
Ign http://security.debian.org lenny/updates/non-free Sources/DiffIndex
Hit ftp://mirror.hetzner.de lenny/updates/non-free Packages
Ign http://ftp.de.debian.org lenny/main Packages/DiffIndex
Hit http://security.debian.org lenny/updates/main Packages
Hit http://security.debian.org lenny/updates/contrib Packages
Hit http://security.debian.org lenny/updates/non-free Packages
Hit http://security.debian.org lenny/updates/main Sources
Ign http://ftp.de.debian.org lenny/non-free Packages/DiffIndex
Ign http://ftp.de.debian.org lenny/contrib Packages/DiffIndex
Ign http://ftp.de.debian.org lenny/main Sources/DiffIndex
Ign http://ftp.de.debian.org lenny/non-free Sources/DiffIndex
Ign http://ftp.de.debian.org lenny/contrib Sources/DiffIndex
Hit http://security.debian.org lenny/updates/contrib Sources
Hit http://ftp.de.debian.org lenny/main Packages
Hit http://security.debian.org lenny/updates/non-free Sources
Hit http://ftp.de.debian.org lenny/non-free Packages
Hit http://ftp.de.debian.org lenny/contrib Packages
Hit http://ftp.de.debian.org lenny/main Sources
Hit http://ftp.de.debian.org lenny/non-free Sources
Hit http://ftp.de.debian.org lenny/contrib Sources
Reading package lists... Done
INFO - Cleaning up apt headers and packages, so we can start fresh...
INFO -
2010-03-10 09:50:28 URL:http://software.virtualmin.com/lib/apt.conf.noninteractive [243/243] -> "apt.conf.noninteractive" [1]
INFO - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Succeeded.
INFO - Installing Webmin and Virtualmin package signing keys...
2010-03-10 09:50:28 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin [1690/1690] -> "RPM-GPG-KEY-virtualmin" [1]
INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Succeeded.
2010-03-10 09:50:28 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin [1320/1320] -> "RPM-GPG-KEY-webmin" [1]
INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeeded.
INFO - OK
INFO - OK
W: Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/main/binary-amd64/Packages.gz 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
...in 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
...in 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

I tried other mirrors but that does not solve the problem either. There is always the same hash sum mismatch error on http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/mai...
====================
W: Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/mai... Hash Sum mismatch
====================

Shall I file this as a bug?

Jan Derk

Wed, 03/10/2010 - 08:29
andreychek

I passed that info along to Joe to look into. He's been working on a new build system lately, and he says it's possible something there went awry.

That said -- do feel free to file a bug report so it's officially in the tracker :-)

-Eric

Wed, 03/10/2010 - 08:41 (Reply to #6)
janderk

Thanks Eric,

I filed it here:

http://www.virtualmin.com/node/13711

Jan Derk

Fri, 03/12/2010 - 08:47 (Reply to #7)
Kolin

Hi Eric,

Have you had any updates on when this might be fixed?

Cheers, Colin

Thu, 03/11/2010 - 11:29
reQuorter

When it will be fixed?

Thu, 03/11/2010 - 15:56 (Reply to #9)
trey

I hope soon, waiting since the 9th to install 2 new servers... :-(

Sat, 04/03/2010 - 12:37
andreychek

Howdy,

The problem with the Debian repository was resolve a few weeks ago, as per this bug report:

https://www.virtualmin.com/node/13707

Topic locked