Virtualmin install fails: Error Downloading Packages

As title says, installer can't download packages. Here is the log:

Continue? (y/n) y
Checking for HTTP client...found /usr/bin/curl -s -O
Checking for perl...found /usr/bin/perl
Loading log4sh logging library...
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname...
INFO - Hostname OK: fully qualified as info.com
INFO - Installing serial number and license key into /etc/virtualmin-license
INFO - Loading OS selection library...
INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - Loading OS list...
INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - Operating system name:    CentOS Linux
INFO - Operating system version: 5
INFO - Configuring package manager for CentOS Linux 5...
INFO - Disabling SELinux during installation...
/usr/sbin/setenforce: SELinux is disabled
INFO -   setenforce 0 failed: 1
INFO - Download of http://software.virtualmin.com/gpl/rhel/5/i386/virtualmin-release-latest.noarch.rpm Succeeded.
Running updatedb so locate works...this will take a little while.
Attempting to import various system RPM-GPG-KEY files...Errors may occur,
if you've already imported them.  It is safe to ignore these errors.
INFO -  Succeeded.
INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate
...in progress, please wait...                                                 |http://software.virtualmin.com/gpl/rhel/5/i386/mod_ssl-2.2.3-82.vm.i386.rpm: [Errno -1] Package does not match intended download
Trying other mirror.
http://software.virtualmin.com/gpl/rhel/5/i386/rubygems-0.9.2-1.el5.noarch.rpm: [Errno -1] Package does not match intended download
Trying other mirror.                                                           \http://software.virtualmin.com/gpl/rhel/5/i386/httpd-2.2.3-82.vm.i386.rpm: [Errno -1] Package does not match intended download
Trying other mirror.


Error Downloading Packages:
  1:httpd-2.2.3-82.vm.i386: failure: httpd-2.2.3-82.vm.i386.rpm from virtualmin: [Errno 256] No more mirrors to try.
  2:mod_ssl-2.2.3-82.vm.i386: failure: mod_ssl-2.2.3-82.vm.i386.rpm from virtualmin: [Errno 256] No more mirrors to try.
  rubygems-0.9.2-1.el5.noarch: failure: rubygems-0.9.2-1.el5.noarch.rpm from virtualmin: [Errno 256] No more mirrors to try.
                                                                               /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate failed.  Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem:
ruby-irb               i386     1.8.5-31.el5_9              base          72 k
ruby-libs              i386     1.8.5-31.el5_9              base         1.6 M
ruby-rdoc              i386     1.8.5-31.el5_9              base         138 k
unixODBC-libs          i386     2.2.11-10.el5               base         551 k
xorg-x11-filesystem    noarch   7.1-2.fc6                   base         5.4 k
zlib-devel             i386     1.2.3-7.el5                 base         102 k

Transaction Summary
================================================================================
Install      87 Package(s)
Upgrade       1 Package(s)

Total size: 75 M
Total download size: 3.9 M
Downloading Packages:

FATAL - Fatal Error Occurred: Something went wrong during installation: 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
[root@info ~]#
Status: 
Active

Comments

Thanks for pointing this out -- we're looking into what might be causing those errors.

Okay, we think we determined the cause of that error -- can you try it again?

Andreychek. Just tested and still the same errors. :(

Continue? (y/n) y
Checking for HTTP client...found /usr/bin/curl -s -O
Checking for perl...found /usr/bin/perl
Loading log4sh logging library...
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname...
INFO - Hostname OK: fully qualified as info.com
INFO - Installing serial number and license key into /etc/virtualmin-license
INFO - Loading OS selection library...
INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - Loading OS list...
INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - Operating system name:    CentOS Linux
INFO - Operating system version: 5
INFO - Configuring package manager for CentOS Linux 5...
INFO - Disabling SELinux during installation...
/usr/sbin/setenforce: SELinux is disabled
INFO -   setenforce 0 failed: 1
INFO - Download of http://software.virtualmin.com/gpl/rhel/5/i386/virtualmin-release-latest.noarch.rpm Succeeded.
Running updatedb so locate works...this will take a little while.
Attempting to import various system RPM-GPG-KEY files...Errors may occur,
if you've already imported them.  It is safe to ignore these errors.
INFO -  Succeeded.
INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate
...in progress, please wait...                                                 -http://software.virtualmin.com/gpl/rhel/5/i386/mod_ssl-2.2.3-82.vm.i386.rpm: [Errno -1] Package does not match intended download
Trying other mirror.                                                           \http://software.virtualmin.com/gpl/rhel/5/i386/rubygems-0.9.2-1.el5.noarch.rpm: [Errno -1] Package does not match intended download
Trying other mirror.                                                           /http://software.virtualmin.com/gpl/rhel/5/i386/httpd-2.2.3-82.vm.i386.rpm: [Errno -1] Package does not match intended download
Trying other mirror.


Error Downloading Packages:
  1:httpd-2.2.3-82.vm.i386: failure: httpd-2.2.3-82.vm.i386.rpm from virtualmin: [Errno 256] No more mirrors to try.
  2:mod_ssl-2.2.3-82.vm.i386: failure: mod_ssl-2.2.3-82.vm.i386.rpm from virtualmin: [Errno 256] No more mirrors to try.
  rubygems-0.9.2-1.el5.noarch: failure: rubygems-0.9.2-1.el5.noarch.rpm from virtualmin: [Errno 256] No more mirrors to try.
                                                                               /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate failed.  Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem:
ruby-irb               i386     1.8.5-31.el5_9              base          72 k
ruby-libs              i386     1.8.5-31.el5_9              base         1.6 M
ruby-rdoc              i386     1.8.5-31.el5_9              base         138 k
unixODBC-libs          i386     2.2.11-10.el5               base         551 k
xorg-x11-filesystem    noarch   7.1-2.fc6                   base         5.4 k
zlib-devel             i386     1.2.3-7.el5                 base         102 k

Transaction Summary
================================================================================
Install      87 Package(s)
Upgrade       1 Package(s)

Total size: 75 M
Total download size: 3.9 M
Downloading Packages:

FATAL - Fatal Error Occurred: Something went wrong during installation: 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
[root@info ~]#

[root@vds ~]# sh install.sh

Welcome to the Virtualmin GPL installer, version 1.1.0

WARNING:

The installation is quite stable and functional when run on a freshly installed supported Operating System.

If you have existing websites, email users, or if you manually installed Virtualmin via a Webmin 'wbm' module, you are likely to run into 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 perform your initial Virtualmin installation. If you have previously run the Virtualmin installer, you can perform upgrades and updates from within Virtualmin itself, or using your system's package manager. Once Virtualmin is installed, you never need to run this script again.

The systems currently supported by install.sh are: CentOS and RHEL 5-6 on i386 and x86_64 Scientific Linux 6 on i386 and x86_64 Debian 6.0 and 7.0 on i386 and amd64 Ubuntu 8.04 LTS and 10.04 LTS, and 12.04 LTS on i386 and amd64 Amazon Linux 2012.03 on i386 and x86_64 FreeBSD 7.0 and 8 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/curl -s -O Checking for perl...found /usr/bin/perl Loading log4sh logging library... INFO - Started installation log in /root/virtualmin-install.log INFO - Checking for fully qualified hostname... INFO - Hostname OK: fully qualified as sunucu.kakede.net INFO - Installing serial number and license key into /etc/virtualmin-license INFO - Loading OS selection library... INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded. INFO - Loading OS list... INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded. INFO - Operating system name: CentOS Linux INFO - Operating system version: 5 INFO - Configuring package manager for CentOS Linux 5... INFO - Disabling SELinux during installation... /usr/sbin/setenforce: SELinux is disabled INFO - setenforce 0 failed: 1 INFO - Download of http://software.virtualmin.com/gpl/rhel/5/x86_64/virtualmin-release-late... Succeeded. Running updatedb so locate works...this will take a little while. Attempting to import various system RPM-GPG-KEY files...Errors may occur, if you've already imported them. It is safe to ignore these errors. INFO - Succeeded. INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate ...in progress, please wait... |http://software.virtualmin.com/gpl/rhel/5/x86_64/mod_ssl-2.2.3-82.el5.ce... [Errno -1] Package does not match intended download Trying other mirror. |http://software.virtualmin.com/gpl/rhel/5/x86_64/rubygems-0.9.2-1.el5.no... [Errno -1] Package does not match intended download Trying other mirror. |http://software.virtualmin.com/gpl/rhel/5/x86_64/httpd-2.2.3-82.el5.cent... [Errno -1] Package does not match intended download Trying other mirror.

Error Downloading Packages: 1:httpd-2.2.3-82.el5.centos.vm.x86_64: failure: httpd-2.2.3-82.el5.centos.vm.x86_64.rpm from virtualmin: [Errno 256] No more mirrors to try. rubygems-0.9.2-1.el5.noarch: failure: rubygems-0.9.2-1.el5.noarch.rpm from virtualmin: [Errno 256] No more mirrors to try. 2:mod_ssl-2.2.3-82.el5.centos.vm.x86_64: failure: mod_ssl-2.2.3-82.el5.centos.vm.x86_64.rpm from virtualmin: [Errno 256] No more mirrors to try. /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem: ruby-irb x86_64 1.8.5-31.el5_9 base 72 k ruby-libs i386 1.8.5-31.el5_9 base 1.6 M ruby-libs x86_64 1.8.5-31.el5_9 base 1.6 M ruby-rdoc x86_64 1.8.5-31.el5_9 base 138 k unixODBC-libs x86_64 2.2.11-10.el5 base 554 k zlib-devel x86_64 1.2.3-7.el5 base 103 k

Transaction Summary

Install 92 Package(s) Upgrade 0 Package(s)

Total size: 87 M Total download size: 1.8 M Downloading Packages:

FATAL - Fatal Error Occurred: Something went wrong during installation: 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

Can you try running "yum clean all", followed by running the install.sh script again?

Thanks!

Hi,

[root@sunucu ~]# yum clean all Loaded plugins: fastestmirror, security Cleaning up Everything Cleaning up list of fastest mirrors [root@sunucu ~]#

[root@sunucu ~]# sh install.sh

INFO - Download of http://software.virtualmin.com/gpl/rhel/5/x86_64/virtualmin-release-late... Succeeded. Running updatedb so locate works...this will take a little while. Attempting to import various system RPM-GPG-KEY files...Errors may occur, if you've already imported them. It is safe to ignore these errors. INFO - Succeeded. INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate ...in progress, please wait... /http://software.virtualmin.com/gpl/rhel/5/x86_64/mod_ssl-2.2.3-82.el5.ce... [Errno -1] Package does not match intended download Trying other mirror. /http://software.virtualmin.com/gpl/rhel/5/x86_64/rubygems-0.9.2-1.el5.no... [Errno -1] Package does not match intended download Trying other mirror. /http://software.virtualmin.com/gpl/rhel/5/x86_64/httpd-2.2.3-82.el5.cent... [Errno -1] Package does not match intended download Trying other mirror. |

Error Downloading Packages: 1:httpd-2.2.3-82.el5.centos.vm.x86_64: failure: httpd-2.2.3-82.el5.centos.vm.x86_64.rpm from virtualmin: [Errno 256] No more mirrors to try. rubygems-0.9.2-1.el5.noarch: failure: rubygems-0.9.2-1.el5.noarch.rpm from virtualmin: [Errno 256] No more mirrors to try. 2:mod_ssl-2.2.3-82.el5.centos.vm.x86_64: failure: mod_ssl-2.2.3-82.el5.centos.vm.x86_64.rpm from virtualmin: [Errno 256] No more mirrors to try. /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem: postgresql-libs i386 8.1.23-10.el5_10 updates 198 k ruby-irb x86_64 1.8.5-31.el5_9 base 72 k ruby-libs i386 1.8.5-31.el5_9 base 1.6 M ruby-libs x86_64 1.8.5-31.el5_9 base 1.6 M ruby-rdoc x86_64 1.8.5-31.el5_9 base 138 k unixODBC-libs x86_64 2.2.11-10.el5 base 554 k zlib-devel x86_64 1.2.3-7.el5 base 103 k

Transaction Summary

Install 88 Package(s) Upgrade 0 Package(s)

Total download size: 86 M Downloading Packages:

FATAL - Fatal Error Occurred: Something went wrong during installation: 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

Error :(

Centos 5.10

Hi andreychek.
Ran yum clean all and retried the install.
Still the same errors...


...in progress, please wait... \ http://software.virtualmin.com/gpl/rhel/5/i386/mod_ssl-2.2.3-82.vm.i386.rpm: [Er rno -1] Package does not match intended download
Trying other mirror. \ http://software.virtualmin.com/gpl/rhel/5/i386/rubygems-0.9.2-1.el5.noarch.rpm: [Errno -1] Package does not match intended download
Trying other mirror. | http://software.virtualmin.com/gpl/rhel/5/i386/httpd-2.2.3-82.vm.i386.rpm: [Errn o -1] Package does not match intended download
Trying other mirror. /

Error Downloading Packages:
1:httpd-2.2.3-82.vm.i386: failure: httpd-2.2.3-82.vm.i386.rpm from virtualmin: [Errno 256] No more mirrors to try.
2:mod_ssl-2.2.3-82.vm.i386: failure: mod_ssl-2.2.3-82.vm.i386.rpm from virtual min: [Errno 256] No more mirrors to try.
rubygems-0.9.2-1.el5.noarch: failure: rubygems-0.9.2-1.el5.noarch.rpm from vir tualmin: [Errno 256] No more mirrors to try.

Joe's picture
Submitted by Joe on Sat, 03/22/2014 - 17:54 Pro Licensee

I'm not sure exactly what's happening, but I'm able to reproduce it. I made some changes to our repo generation script to speed it up and to make it produce cleaner error output on our server...but, seems to have broken something about the meta data. Will update as soon as I figure out how to fix it.

Joe's picture
Submitted by Joe on Sat, 03/22/2014 - 17:58 Pro Licensee

I'm suspicious this has something to do with the meta data hash generation. They've changed to a stronger hash function (from sha1 to sha256, I think) in the yum version that comes with RHEL/CentOS6 vs the one that's supported by older yum versions. I may have made some changes that made it generate the new hash type for the 5 repo...when it should only be for the 6 repo and Fedora repo.

Any reason you've chosen to deploy a new server on CentOS 5 instead of 6? (5 is, of course, supported, and I'll get this fixed, but for most new deployments, 6 is the best choice).

Joe's picture
Submitted by Joe on Sat, 03/22/2014 - 18:12 Pro Licensee

I think it's fixed. Try one more 'yum clean all' and see what happens. My test system ran out of disk space, so I can't test it until I clean up some crap on it....but, will keep poking if the problem persists.

#9
I know...
CentOS 5 was the choice as it concerned an older server that needed a complete reload.
Not sure what the actual reasons for this are, as I ain't a server admin.

#10
Problem is solved now.
Virtualmin installs as it's supposed to.

Upgrading PHP to 5.3 or 5.4 is still a flunkie...
But that could be a CentOS 5 issue, well could be? I'm almost certain. lol

Anyways.
Enjoy your sunday and if nobody else has any issues this track can be closed.

Joe - I think I've seen this before BTW. If you use createrepo with no params, it uses a hash format that CentOS 5 cannot handle. The fix is to use createrepo -s sha