1

Topic: (unmet dependency) in 1.7.0 on Ubuntu 22.04 : gcc-12-base (v.12.1.0)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.0
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 22.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I tried to install iRedmail 1.7.0 on UBUNTU 22.04, but i got this error (unmet dependency):

Depends: gcc-12-base (= 12.1.0-1ubuntu1~22.04) but 12.3.0-2ubuntu1~22.04 is installed
gcc-12-base 12.1.0-2ubuntu1~22.04 is suppressed and no longer is supported, I tried to install it from .deb file found on launchpad site. It's done, But now there are two more unmet dependencies:
libgcc-s1 : Depends: gcc-12-base (= 12.3.0-1ubuntu1~22.04) but 12.1.0-2ubuntu1~22.04 is installed
libstdc++6 : Depends: gcc-12-base (= 12.3.0-1ubuntu1~22.04) but 12.1.0-2ubuntu1~22.04 is installed

I found libgcc-s1_12.1.0-2ubuntu1~22.04_amd64.deb on the web and downgraded it.

but "libstdc++6_12.1.0-2ubuntu1~22.04_amd64" is no where, apparently it is removed from all official package as gcc-12-base_12.1.0-1ubuntu1~22.04 is more supported.

So I think iRedmail 1.7.0 needs to work with gcc-12-base_12.3.0-2ubuntu1~22.04 version as it is the current version in Ubuntu 22.0.4
Thanks.

PS: I have seen this error on 1.6.8 and reported it. but the topic was closed with no response!

----

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

2

Re: (unmet dependency) in 1.7.0 on Ubuntu 22.04 : gcc-12-base (v.12.1.0)

the terminal output:

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:
libgomp1 : Depends: gcc-12-base (= 12.1.0-2ubuntul~22.04) but 12.3.0-lubuntul~22.04 is to be installed
E: Unable to correct problems, you have held broken packages.
«< ERROR »> Installation failed, please check the terminal output.
«< ERROR »> If you're not sure what the problem is, try to get help in iRedMail < ERROR »> forum: https://forum.iredmail.org/
root@mail:~/iRedMail-1.7.0#

3

Re: (unmet dependency) in 1.7.0 on Ubuntu 22.04 : gcc-12-base (v.12.1.0)

Try to update apt repositories manually, then install this package manually.
Does it work?

By the way, why not try Ubuntu 24.04?

4 (edited by cerf_parfum 2024-07-31 17:19:46)

Re: (unmet dependency) in 1.7.0 on Ubuntu 22.04 : gcc-12-base (v.12.1.0)

ZhangHuangbin wrote:

Try to update apt repositories manually, then install this package manually.
Does it work?

By the way, why not try Ubuntu 24.04?

Actually it's not about upgrading but downgrading. According to logs, iredmail needs gcc-12-base 12.1.0 but the latest version on ubuntu 22.04 is 12.3.0

I tried to install it manually from .deb file found on launchpad site. It's done, But now that I switched to 12.1.0, there are two other unmet dependencies. The libgcc-s1 and libstdc++6 needs gcc-12-base version 12.3.0 :
libgcc-s1 : Depends: gcc-12-base (= 12.3.0-1ubuntu1~22.04) but 12.1.0-2ubuntu1~22.04 is installed
libstdc++6 : Depends: gcc-12-base (= 12.3.0-1ubuntu1~22.04) but 12.1.0-2ubuntu1~22.04 is installed

5

Re: (unmet dependency) in 1.7.0 on Ubuntu 22.04 : gcc-12-base (v.12.1.0)

There's no downgrade needed.
Usually you should update apt repos with "apt update", so that it has required dependent packages.