Install script fails on Debian Lenny

Tried to install virtualmin on a freshly installed server using the install script as recommended. But it ends up with a fatal error. It seems that the package "virtualmin-base" is missing (see attached log taken from the console).

I also added your repository (deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main) to the sources.list and imported the repository key manually as recommended in a topic in the forum. apt-get update reported no errors so I guess access to the repository is granted.

Any idea what's wrong? Thanks!

Status: 
Closed (fixed)

Comments

Howdy -- what do you see if you type:

apt-cache search virtualmin

You would typically see a number of packages starting with "webmin-", as well as the virtualmin-base package.

Also, what all do you see if you type:

grep '^[^#]' /etc/apt/sources.list

apt-cache search virtualmin gives me an empty result.

I can add manually the line "deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main" and after that it shows this:

usermin-virtual-server-theme - Usermin theme 'Virtualmin Framed Theme'

webmin-virtual-server - Webmin module for 'Virtualmin Virtual Servers (GPL)'

usermin-virtual-server-mobile - Usermin theme 'Virtualmin Mobile Theme'

webmin-virtualmin-slavedns - Webmin module for 'Virtualmin Slave DNS Plugin'

webmin-virtualmin-init - Webmin module for 'Virtualmin Bootup Actions'

webmin-virtualmin-dav - Webmin module for 'Virtualmin DAV'

webmin-virtualmin-svn - Webmin module for 'Virtualmin Subversion Repositories'

webmin-virtual-server-mobile - Webmin theme 'Virtualmin Mobile Theme'

webmin-virtualmin-google-analytics - Webmin module for 'Virtualmin Analytics'

webmin-security-updates - Webmin module for 'Virtualmin Package Updates'

webmin-virtualmin-oracle - Webmin module for 'Virtualmin Oracle Databases'

webmin-virtualmin-signup - Webmin module for 'Virtualmin Mailbox Signup'

webmin-virtualmin-sqlite - Webmin module for 'Virtualmin SQLlite Databases'

webmin-virtualmin-htpasswd - Webmin module for 'Virtualmin Protected Directories'

webmin-virtualmin-mailman - Webmin module for 'Virtualmin Mailman Mailing Lists'

webmin-virtual-server-theme - Webmin theme 'Virtualmin Framed Theme'

webmin-virtualmin-registrar - Webmin module for 'Virtualmin Domain Registration'

webmin-virtualmin-awstats - Webmin module for 'AWstats Reporting'

There's no package webmin-virtualmin-base. Could it be that in the repository database something is missing?

BTW: After retrying installation the apt-cache is empty again. I guess the installer removes the line automatically on finish.

OK, with this line virtualmin-base is found and installation proceeds a little longer... It breaks with the following errors (text taken from the console, no logfile has been created):

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem:

VIRTUALMIN-BASE DEPENDS ON DOVECOT-COMMON; HOWEVER:

PACKAGE DOVECOT-COMMON IS NOT CONFIGURED YET.

VIRTUALMIN-BASE DEPENDS ON DOVECOT-IMAPD; HOWEVER:

PACKAGE DOVECOT-IMAPD IS NOT CONFIGURED YET.

VIRTUALMIN-BASE DEPENDS ON DOVECOT-POP3D; HOWEVER:

PACKAGE DOVECOT-POP3D IS NOT CONFIGURED YET.

DPKG: ERROR PROCESSING VIRTUALMIN-BASE (--CONFIGURE):

DEPENDENCY PROBLEMS - LEAVING UNCONFIGURED

SETTING UP XML-CORE (0.12) ...

SETTING UP MAILX (1:20071201-3) ...

ERRORS WERE ENCOUNTERED WHILE PROCESSING:

DOVECOT-COMMON

DOVECOT-IMAPD

DOVECOT-POP3D

VIRTUALMIN-BASE

I've already checked that the dovecot packages are in the apt-cache - they are. A little earlier the following lines are displayed, don't know if it has anything to do with it:

W: Failed to fetch http://software.virtualmin.com/debian/dists/virtualmin-lenny/main/binary... 401 Authorization Required

W: Failed to fetch http://software.virtualmin.com/debian/dists/virtualmin-universal/main/bi... 401 Authorization Required

E: Some index files failed to download, they have been ignored, or old ones used instead.

I tried to install Virtualmin GPL. That worked without any problems. Afterwards I tried to upgrade to Professional inside Virtualmin but it gives me also an error:

Err http://software.virtualmin.com virtualmin-lenny/main Packages 401 Authorization Required Err http://software.virtualmin.com virtualmin-universal/main Packages 401 Authorization Required W: Failed to fetch http://software.virtualmin.com/debian/dists/virtualmin-lenny/main/binary... 401 Authorization Required

W: Failed to fetch http://software.virtualmin.com/debian/dists/virtualmin-universal/main/bi... 401 Authorization Required

E: Some index files failed to download, they have been ignored, or old ones used instead. .. done

Upgrading Virtualmin Debian packages : usermin webmin-virtual-server= webmin-security-updates webmin-virtualmin-awstats webmin-virtualmin-htpasswd usermin-virtual-server-theme webmin-virtualmin-dav webmin-virtualmin-mailman webmin-virtual-server-theme webmin-virtualmin-svn webmin

Reading package lists... Building dependency tree... Reading state information... usermin is already the newest version. E: Version '' for 'webmin-virtual-server' was not found .. done

Some errors occurred while upgrading your system to Virtualmin Pro. Please check the messages above for possible causes.

I looked for a comparison table GPL - Pro version. I know there was one but I cant't find it anymore. If VM GPL has all the tools that are important to me I will switch.

Is it possible you can wipe this system and start over, ideally using just the Virtualmin pro install script?

It looks like some packages are in an odd broken state.

I would be happen to login myself and install it for you if you like ..

Hi

OK that's great. I've setup the server with a new image (Debian Lenny 64Bit minimal) and copied the install script already to /root but I didn't touch sources.list*. Where shall I send you the login information? I really appreciate your service. Thanks!

*) When I ran my tests I also replaced the sources from my hoster by the official ones from debian (see file /etc/apt/sources.list.used)

Ok, the install is done .. and it worked with no problems.

I did change your system's hostname to the one recommended in your email though. Make sure you add a DNS entry for that name so that other clients out there on the internet can resolve it.

Many thanks for your help! It's just curious why it didn't work for me...

Perhaps some old or broken packages were installed on the system?

Also, the hostname may have been the cause .. I set it to a fully qualified hostname before I did the install. Some apps like Postfix don't like non-full hostnames.

I tried several times on a fresh image, so there shouldn't be any packages at all. Yes, maybe the lack of a valid hostname has caused the trouble - even if it is asked by the installer. I will remember for the next time...

I'll add a check to the installer to validate the hostname in future ..

Great! That will prevent other users to run into the same problems as me.

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