Virtualmin cannot be installed - it has an installation issue related to dovecot

I am trying to set up Virtualmin on a dedicated server. Debian 7, everything from scratch. I downloaded Virtualmin install script and I started the installation. I've done this hundreds of time before. This evening a lot of errors are coming from dovecot package.

Here is the error part of log. Please fix it asap.

Setting up dovecot-imapd (1:2.1.7-7+deb7u1) ... [....] Restarting IMAP/POP3 mail server: dovecotError: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 995) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol Fatal: Failed to start listeners [?25l7[1G[[31mFAIL[39;49m8[?12l[?25h [31mfailed![39;49m invoke-rc.d: initscript dovecot, action "restart" failed. dpkg: error processing dovecot-imapd (--configure): subprocess installed post-installation script returned error exit status 1 Setting up dovecot-ldap (1:2.1.7-7+deb7u1) ... [....] Restarting IMAP/POP3 mail server: dovecotError: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 995) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol Fatal: Failed to start listeners [?25l7[1G[[31mFAIL[39;49m8[?12l[?25h [31mfailed![39;49m invoke-rc.d: initscript dovecot, action "restart" failed. dpkg: error processing dovecot-ldap (--configure): subprocess installed post-installation script returned error exit status 1 Setting up dovecot-pop3d (1:2.1.7-7+deb7u1) ... [....] Restarting IMAP/POP3 mail server: dovecotError: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 995) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol Fatal: Failed to start listeners [?25l7[1G[[31mFAIL[39;49m8[?12l[?25h [31mfailed![39;49m invoke-rc.d: initscript dovecot, action "restart" failed. dpkg: error processing dovecot-pop3d (--configure): subprocess installed post-installation script returned error exit status 1 Setting up dovecot-sieve (1:2.1.7-7+deb7u1) ... [....] Restarting IMAP/POP3 mail server: dovecotError: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 995) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol Fatal: Failed to start listeners [?25l7[1G[[31mFAIL[39;49m8[?12l[?25h [31mfailed![39;49m invoke-rc.d: initscript dovecot, action "restart" failed. dpkg: error processing dovecot-sieve (--configure): subprocess installed post-installation script returned error exit status 1 Setting up apache2 (2.2.22-13+deb7u6) ... Errors were encountered while processing: dovecot-imapd dovecot-ldap dovecot-pop3d dovecot-sieve FATAL - 2015-09-20 22:51:18 - Fatal Error Occurred: Something went wrong during installation: 0 FATAL - 2015-09-20 22:51:18 - Cannot continue installation. FATAL - 2015-09-20 22:51:18 - Attempting to remove virtualmin repository configuration, so the installation can be FATAL - 2015-09-20 22:51:18 - re-attempted after any problems have been resolved. FATAL - 2015-09-20 22:51:18 - Removing temporary directory and files. FATAL - 2015-09-20 22:51:18 - If you are unsure of what went wrong, you may wish to review the log FATAL - 2015-09-20 22:51:18 - in /root/virtualmin-install.log

Status: 
Active

Comments

I cannot do uninstall, so I have to start again from scratch. What a shame.

You shouldn't have to uninstall -- the solution in that link is just a change to the Dovecot config. The answer is in Comment #3.

listen line is commented in /etc/dovecot/dovecot.conf. I don't understand why is this happening.

listen has this values *, ::

I have an idea why this issue was present. Because I disabled ipv6 before virtualmin installation. I un-commented the line and kept :: there. dovecot service did not restart providing the same error.

Could you take this scenario in consideration for futures versions of virtualmin? Disabling IPv6 before installing Virtualmin?

I would like to ask you if the installation is done do I have any trouble because three times I did not get finishing the installation?

Thank you!