1

Topic: Problem installing

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:
====

Hi everyone, I searched all the web but I didn't find the answer for my problem. I successfully installed iRedMail on localhost, but when I try to do it on mi ssh server I get this error after completing configuration:

Some packages could not be installed. This may mean that you have
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:
libapache2-mod-auth-mysql : Depends: apache2.2-common (>= 2.2.3-3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
< ERROR > Installation failed, please check the terminal output.

Hope you can help me thanks, and sory about my english.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Problem installing

Does it work if you install apache2.2-common manually before installing iRedMail?

3

Re: Problem installing

Hi. No, it doesn't.

I've tried:

# apt-get update
# apt-get upgrade
# apt-get install apache2.2-common

But it's on the last version

4

Re: Problem installing

Could you show me file /etc/apt/sources.list?

5

Re: Problem installing

This is my /etc/apt/sources.list

# 

# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ precise main restricted

# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

6

Re: Problem installing

No idea yet, i cannot reproduce this issue on my testing machine.

7

Re: Problem installing

Same issue here.  This is on an Ubuntu 10.04 box that had a successful, running installation of iRedMail 0.8.1.  I upgraded the server to 12.04, which installed Apache 2.4.  After reboot, I was unable to talk to the mail services.  The mail.log shows:

Aug  4 04:25:03 hostname postfix/smtpd[12291]: warning: SASL: Connect to ./dovecot-auth failed: No such file or directory
Aug  4 04:25:03 hostname postfix/smtpd[12291]: fatal: no SASL authentication mechanisms

The error log is more vague:

Aug  4 04:25:03 hostname postfix/smtpd[12292]: fatal: no SASL authentication mechanisms

When I run the 0.8.7 installer, it goes through the basic config, passwords, etc.  When it gets to installing the packages, I'm getting the same error.  Whether using the installer, or attempting to install libapache2-mod-auth-mysql manually, the message is the same:

Some packages could not be installed. This may mean that you have
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:
 libapache2-mod-auth-mysql : Depends: apache2.2-common (>= 2.2.3-3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
< ERROR > Installation failed, please check the terminal output.

In dpkg, the apache2.2-common package shows already installed, but the version is stepped to 2.4:

#> dpkg -l apache2.2-common
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version                         Description
+++-===============================-===============================-==============================================================================
ii  apache2.2-common                2.4.10-1+deb.sury.org~precise+1 Transitional package for apache2

I did find some information pointing to the library being dead, but it is a little unclear what the final verdict was.

I was able to get past some initial errors in the awstats .conf file for Apache.  I migrated it to use mod_dbd instead.  Even so, the dovecot installation will not run properly.

I'm quite willing to run with a new install... I already have the database and mailboxes backed up.  Any idea how I can move past this?

8 (edited by jsanchez 2014-08-04 17:57:57)

Re: Problem installing

Is The package no longer maintained?

http://stackoverflow.com/questions/2045 … -available

9

Re: Problem installing

I checked Ubuntu website, Ubuntu 12.04 ships Apache 2.2, not 2.4. Why do you have 2.4.10 installed? And the file name contains 'deb.sury.org', what does it mean? did you install it with an unofficial apt repository?

10

Re: Problem installing

I checked https://deb.sury.org/pages/packages.html, looks like you enabled its apt repository.
We test iRedMail with only Debian/Ubuntu official apt repositories.

11

Re: Problem installing

How can I get back to apache2.2 version?

12

Re: Problem installing

ZhangHuangbin wrote:

I checked Ubuntu website, Ubuntu 12.04 ships Apache 2.2, not 2.4.

I did not enable any additional repositories when I upgraded from 10.04 to 12.04, and Apache 2.4 was part of that automatic upgrade process.  I did not see any point where I could choose the Apache version to be installed.

I guess my question is the same as jsanchez - how can I revert to Apache 2.2?  Are there any work-arounds or other solutions to get authentication working again?

13

Re: Problem installing

*) What's the output of command "apt-cache policy apache2.2-common" on your server?
*) You can try to backup all Apache config files, then remove apache 2.4 and reinstall apache 2.2.

14 (edited by routinet 2014-08-06 02:09:01)

Re: Problem installing

Ah, I think I see the problem.  The ondrej PPA was added for PHP5.5 awhile back.  Is is possible to revert Apache to 2.2.22-1ubuntu1.7 and still keep the PHP installation?

#> apt-cache policy apache2.2-common
apache2.2-common:
  Installed: 2.4.10-1+deb.sury.org~precise+1
  Candidate: 2.4.10-1+deb.sury.org~precise+1
  Version table:
 *** 2.4.10-1+deb.sury.org~precise+1 0
        500 http://ppa.launchpad.net/ondrej/php5/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
     2.2.22-1ubuntu1.7 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     2.2.22-1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

15 (edited by jsanchez 2014-08-06 03:48:43)

Re: Problem installing

What apache config should I backup for a safe reinstallation? Besides the /sites-available/ folder

16

Re: Problem installing

The whole /etc/apache2/.

17

Re: Problem installing

That was incredibly painful.

I ended up having to back out the ppa, PHP, Apache, and all the iRedMail services before it finally worked again.  I'm still not sure everything is where it is supposed to be, but I'm afraid to touch it anymore...  Thanks for pointing me in the right direction, though.

During this whole mess, I did try to reinstall iRedMail using 0.8.7, but was never able to get the services working.  Logging in to POP or IMAP would always return "Internal Server Error" with no other explanation in the logs.  I'm quite sure there is some user error involved, but I could not get past that point.  I ended up tricking the 0.8.1 install into doing its work again, then re-importing the database backup.  Is there a process to upgrade to 0.8.7?

18

Re: Problem installing

[SOLUTION]

For me, the solution was update my OS to the ubuntu 14.04 version, and then I have no problems with the installer.

Thanks!

19

Re: Problem installing

routinet wrote:

Is there a process to upgrade to 0.8.7?

Check this tutorial:
http://www.iredmail.org/wiki/index.php? … ail.Server