Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: goldp on May 24, 2020, 11:31:42 pm
-
After the Zentyal 6.2 upgrade, the Mailfilter and Antivirus components cannot be installed.
This is the error message:
"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:
zentyal-antivirus : Depends: libclamav9 (= 0.102.2+dfsg-0ubuntu0.18.04.1) but 0.102.3+dfsg-0ubuntu0.18.04.1 is to be installed
Depends: clamav (= 0.102.2+dfsg-0ubuntu0.18.04.1) but 0.102.3+dfsg-0ubuntu0.18.04.1 is to be installed
Depends: clamav-base (= 0.102.2+dfsg-0ubuntu0.18.04.1) but 0.102.3+dfsg-0ubuntu0.18.04.1 is to be installed
Depends: clamav-daemon (= 0.102.2+dfsg-0ubuntu0.18.04.1) but 0.102.3+dfsg-0ubuntu0.18.04.1 is to be installed
Depends: clamav-freshclam (= 0.102.2+dfsg-0ubuntu0.18.04.1) but 0.102.3+dfsg-0ubuntu0.18.04.1 is to be installed"
How could I solve this dependency error?
-
Same Problem here
I tried to purge Clamav and reinstall. Did not help
-
I have just create a bug report. So hopefully it is better to wait few days than creating some workaround.
-
Quick & Dirty solution for me:
may not be required, but ...
backup of /var/lib/apt/lists/packages.zentyal.org_zentyal_dists_6.2_main_binary-amd64_Packages
backup of /var/lib/apt/lists/packages.zentyal.org_zentyal_dists_6.2_main_binary-i386_Packages
Update in both files the section "Package: zentyal-antivirus" by replacing all "(= 0.102.2+dfsg-0ubuntu0.18.04.1)" with "(>= 0.102.2+dfsg-0ubuntu0.18.04.1)"
backup of /var/lib/dpkg/status
Update also the section "Package: zentyal-antivirus" by replacing all "(= 0.102.2+dfsg-0ubuntu0.18.04.1)" with "(>= 0.102.2+dfsg-0ubuntu0.18.04.1)"
Do not run an apt-get clean/autoclean or whatever here.
After a reboot I could install AV and Mail Filter without any issues.
bye
Markus
-
Thanks to Markus for the solution!
It worked for me, but only in the following way:
1. backup of /var/lib/apt/lists/packages.zentyal.org_zentyal_dists_6.2_main_binary-amd64_Packages
backup of /var/lib/apt/lists/packages.zentyal.org_zentyal_dists_6.2_main_binary-i386_Packages
2. Update in both files the section "Package: zentyal-antivirus" by replacing all "(= 0.102.2+dfsg-0ubuntu0.18.04.1)" with "(>= 0.102.2+dfsg-0ubuntu0.18.04.1)"
3. Restart the computer
4. Install the Zentyal antivirus and Mailfilter component from Zentyal web interface --> Error message
5. backup of /var/lib/dpkg/status
6. Update also the section "Package: zentyal-antivirus" by replacing all "(= 0.102.2+dfsg-0ubuntu0.18.04.1)" with "(>= 0.102.2+dfsg-0ubuntu0.18.04.1)"
7. sudo dpkg --configure -a
-
I have done this, modules installed correctly, but my Zentyal Mail Filter module does not want to start.
Any ideas?
-
Hi goldp,
you are right, if an installation is "pending" with an error, you have to fix it using "sudo dpkg --configure -a". Adding additional modules later should work without this step. Sorry, my fault.
bye
Markus
-
Hi Johan,
had the same requirement, did work for me, Mail Filter is up and running.
Did you try an extra "sudo dpkg --configure -a"?
bye
Markus
-
Hi mscfw,
Tried that. nothing happens.
actually re-installed via apt-get install --reinstall zentyal-mailfilter and still nothing. the Module status simply stays on "Stopped" and it does not accept mails from the mail system on the default or non-default port.
Any idea what log files can be checked to see why the service is not starting?
-
Hi everyone,
We are already working on this, probably today or tomorrow we'll publish a fix.
Many thanks!
-
Will moderators mark this thread as resolved once the fix is published?
-
It seems no fix be published yet. I installed new 6.2 instance in yesterday and updated to latest package, but still got same problem with mailfilter and anti-virus until I fix it manually as above.
-
This doesn't only apply to 6.2.
I'm having the same issue with the latest update on 6.1.3 (running commercial)
The following information may help to resolve the situation:
The following packages have unmet dependencies:
zentyal-antivirus : Depends: libclamav9 (= 0.102.2+dfsg-0ubuntu0.18.04.1) but 0.102.3+dfsg-0ubuntu0.18.04.1 is to be installed
Depends: clamav (= 0.102.2+dfsg-0ubuntu0.18.04.1)
Depends: clamav-base (= 0.102.2+dfsg-0ubuntu0.18.04.1) but 0.102.3+dfsg-0ubuntu0.18.04.1 is to be installed
Depends: clamav-daemon (= 0.102.2+dfsg-0ubuntu0.18.04.1) but 0.102.3+dfsg-0ubuntu0.18.04.1 is to be installed
Depends: clamav-freshclam (= 0.102.2+dfsg-0ubuntu0.18.04.1) but 0.102.3+dfsg-0ubuntu0.18.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
-
Hi guys,
is there any progress? I just upgraded Zentyal to 6.2.3 but when I install Antivir 6.2.1 and Mail Filter 6.2.0 both modules are still "STOPPED". Do you have some workable solution ?
Thanks
Josef
-
:)
Your issue hasn't the same origin than the old 6.1 packages bug. Did you check your system looking for broken packages? https://forum.zentyal.org/index.php/topic,35015.msg113743.html#msg113743 (https://forum.zentyal.org/index.php/topic,35015.msg113743.html#msg113743)
Cheers!
-
Hi doncamilo,
thank you for reply. I don´t have broken packages. I just checked it with "dpkg -l | grep -Ev '^(ii|rc)'
", mailfilter nad antivirus are still stopped.
Josef
-
:)
Correct, you don't have broken packages. It means your problem isn't the bug that was detected and fixed in this thread.
You'll have to study your logs. The first log you should check is '/var/log/zentyal/zentyal.log'. Check the status of the services through 'zs' and 'systemctl' too.
Cheers!
-
Thanks for reply ;) this is how its look. I have clear installation, I didn´t make any change, but since I install antivir and mail filter, both modules are still STOPPED, below are statuses and records from log
Zentyal: status module antivirus: [ STOPPED ]
:~$ systemctl status bind9
● bind9.service - BIND Domain Name Server
Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-08-05 01:46:40 CEST; 14h ago
Docs: man:named(8)
Main PID: 1709 (named)
Tasks: 8 (limit: 4327)
CGroup: /system.slice/bind9.service
└─1709 /usr/sbin/named -f -u bind -4
2020/08/05 01:02:43 ERROR> GlobalImpl.pm:653 EBox::GlobalImpl::saveAllModules - Failed to save changes in module samba: Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/OQ9hqXPvQT.cmd 2> /var/lib/zentyal/tmp/stderr
2020/08/05 01:02:43 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: mail
2020/08/05 01:02:43 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: mailfilter
2020/08/05 01:02:43 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: sogo
2020/08/05 01:02:43 ERROR> Base.pm:117 EBox::Exceptions::Base::throw - Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/jI7MrbOnu1.cmd 2> /var/lib/zentyal/tmp/stderr at Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/jI7MrbOnu1.cmd 2> /var/lib/zentyal/tmp/stderr at /usr/share/perl5/EBox/Sudo.pm line 221
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/jI7MrbOnu1.cmd 2> /var/lib/zentyal/tmp/stderr', 'set -e^J/bin/mv /var/lib/zentyal/tmp/fY8shraVgp \'/etc/default/sogo\'^J/bin/chmod 755 \'/etc/default/sogo\'^J/bin/chown 0.0 \'/etc/default/sogo\'', -1, 'ARRAY(0x5594a5b58070)', 'ARRAY(0x5594a5b58088)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/bin/mv /var/lib/zentyal/tmp/fY8shraVgp \'/etc/default/sogo\'', '/bin/chmod 755 \'/etc/default/sogo\'', '/bin/chown 0.0 \'/etc/default/sogo\'') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/bin/mv /var/lib/zentyal/tmp/fY8shraVgp \'/etc/default/sogo\'', '/bin/chmod 755 \'/etc/default/sogo\'', '/bin/chown 0.0 \'/etc/default/sogo\'') called at /usr/share/perl5/EBox/Module/Base.pm line 1063
EBox::Module::Base::_writeFileSave('/var/lib/zentyal/tmp/fY8shraVgp', '/etc/default/sogo', 'HASH(0x55949ecce820)') called at /usr/share/perl5/EBox/Module/Base.pm line 1142
EBox::Module::Base::writeConfFileNoCheck('/etc/default/sogo', 'sogo/sogo.mas', 'ARRAY(0x5594a3f76308)', 'HASH(0x55949ecce820)') called at /usr/share/perl5/EBox/Module/Service.pm line 1022
EBox::Module::Service::writeConfFile('EBox::SOGo=HASH(0x5594a52d9148)', '/etc/default/sogo', 'sogo/sogo.mas', 'ARRAY(0x5594a3f76308)', 'HASH(0x55949ecce820)') called at /usr/share/perl5/EBox/SOGo.pm line 227
EBox::SOGo::_writeSOGoDefaultFile('EBox::SOGo=HASH(0x5594a52d9148)') called at /usr/share/perl5/EBox/SOGo.pm line 98
EBox::SOGo::_setConf('EBox::SOGo=HASH(0x5594a52d9148)') called at /usr/share/perl5/EBox/Module/Base.pm line 995
EBox::Module::Base::_regenConfig('EBox::SOGo=HASH(0x5594a52d9148)') called at /usr/share/perl5/EBox/Module/Service.pm line 940
EBox::Module::Service::_regenConfig('EBox::SOGo=HASH(0x5594a52d9148)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
2020/08/05 01:02:43 ERROR> GlobalImpl.pm:653 EBox::GlobalImpl::saveAllModules - Failed to save changes in module sogo: Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/jI7MrbOnu1.cmd 2> /var/lib/zentyal/tmp/stderr
2020/08/05 01:02:43 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: logs
2020/08/05 01:02:48 ERROR> Service.pm:43 EBox::Service::manage - No such daemon: zentyal.loggerd at No such daemon: zentyal.loggerd at /usr/share/perl5/EBox/Service.pm line 43
EBox::Service::manage('zentyal.loggerd', 'start') called at /usr/share/perl5/EBox/Module/Service.pm line 746
EBox::Module::Service::_manageDaemon('EBox::Logs=HASH(0x5594a3ab0348)', 'HASH(0x5594a5b45808)', 'start') called at /usr/share/perl5/EBox/Module/Service.pm line 728
EBox::Module::Service::_startDaemon('EBox::Logs=HASH(0x5594a3ab0348)', 'HASH(0x5594a5b45808)') called at /usr/share/perl5/EBox/Module/Service.pm line 772
EBox::Module::Service::_manageService('EBox::Logs=HASH(0x5594a3ab0348)', 'start') called at /usr/share/perl5/EBox/Module/Service.pm line 797
EBox::Module::Service::_startService('EBox::Logs=HASH(0x5594a3ab0348)') called at /usr/share/perl5/EBox/Module/Service.pm line 996
EBox::Module::Service::_enforceServiceState('EBox::Logs=HASH(0x5594a3ab0348)') called at /usr/share/perl5/EBox/Module/Service.pm line 947
EBox::Module::Service::_regenConfig('EBox::Logs=HASH(0x5594a3ab0348)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
2020/08/05 01:02:49 ERROR> Firewall.pm:207 EBox::Firewall::_enforceServiceState - Error restarting firewall: Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/STeBGFmfFF.cmd 2> /var/lib/zentyal/tmp/stderr
2020/08/05 01:02:49 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: sysinfo
2020/08/05 01:02:50 ERROR> Base.pm:117 EBox::Exceptions::Base::throw - Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/KA0kZufIj_.cmd 2> /var/lib/zentyal/tmp/stderr at Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/KA0kZufIj_.cmd 2> /var/lib/zentyal/tmp/stderr at /usr/share/perl5/EBox/Sudo.pm line 221
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/KA0kZufIj_.cmd 2> /var/lib/zentyal/tmp/stderr', 'set -e^Jecho Europe/Prague > /etc/timezone^Jln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime', -1, 'ARRAY(0x5594a5beeb18)', 'ARRAY(0x5594a5bae878)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, 'echo Europe/Prague > /etc/timezone', 'ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('echo Europe/Prague > /etc/timezone', 'ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime') called at /usr/share/perl5/EBox/SysInfo.pm line 158
EBox::SysInfo::_setConf('EBox::SysInfo=HASH(0x5594a2ed7738)') called at /usr/share/perl5/EBox/Module/Base.pm line 995
EBox::Module::Base::_regenConfig('EBox::SysInfo=HASH(0x5594a2ed7738)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::SysInfo=HASH(0x5594a2ed7738)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 649
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 648
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55949f728ac0)', 'progress', 'EBox::ProgressIndicator=HASH(0x5594a2dddb38)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x5594a2e9f7b0)', 'progress', 'EBox::ProgressIndicator=HASH(0x5594a2dddb38)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
-
I am running clear installation core version 6.2.3, I didn´t make any change, just install modules within initial installation process. But after reboot these two modules stayed in STOPPED status....
-
:)
Your logs show that could be SOGo the module which is throwing the errors. Bind9 is the DNS server, but you need information about the amavis, postfix and dovecot services.
sudo systemctl status dovecot
sudo systemctl status postfix
sudo systemctl status amavis
sudo systemctl status sogo
Probably, the last command will throw an error saying you to check this service with "journalctl..." do it, and paste here the output.
Cheers!
-
Hi Doncamilo,
currently I have only one module "STOPPED" (when i look via webadmin). When I try to check status like this
sudo systemctl status amavis
I get this info
mailsvr@mailsvrz:~$ sudo systemctl status amavis
● amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis; generated)
Active: active (running) since Fri 2020-08-07 16:58:59 CEST; 14min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 3 (limit: 4327)
CGroup: /system.slice/amavis.service
├─3145 /usr/sbin/amavisd-new (master)
├─3544 /usr/sbin/amavisd-new (virgin child)
└─3545 /usr/sbin/amavisd-new (virgin child)
Aug 07 16:58:59 mailsvrz amavis[3145]: No decoder for .rpm
Aug 07 16:58:59 mailsvrz amavis[3145]: No decoder for .swf
Aug 07 16:58:59 mailsvrz amavis[3145]: No decoder for .tar
Aug 07 16:58:59 mailsvrz amavis[3145]: No decoder for .zoo
Aug 07 16:58:59 mailsvrz amavis[3145]: Using primary internal av scanner code for Clam Antivirus-clamd
Aug 07 16:58:59 mailsvrz amavis[3145]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan
Aug 07 16:58:59 mailsvrz amavis[3145]: initializing Mail::SpamAssassin (0)
Aug 07 16:59:02 mailsvrz amavis[3185]: SA info: util: setuid: ruid=117 euid=117 rgid=125 125 egid=125 125
Aug 07 16:59:07 mailsvrz amavis[3145]: SpamControl: init_pre_fork on SpamAssassin done
Aug 07 16:59:07 mailsvrz amavis[3145]: extra modules loaded after daemonizing/chrooting: /etc/perl/Net/libnet.cfg, /usr/lib/x86_64-linux-gnu/perl5/5.26/auto/Net/SSLeay/
lines 1-20/20 (END)
SO I am confused now, is it workable or not? Could you advise what should I do now...
Thanks
Josef
-
And within few minutes...
Aug 07 17:52:26 mailsvrz amavis[20350]: (20350-01-5) Checking: d_3Jzo62qXGT [127.0.0.1] <martin@treml.org> -> <josef@treml.org>
Aug 07 17:52:26 mailsvrz amavis[20350]: (20350-01-5) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ct
Aug 07 17:52:26 mailsvrz amavis[20350]: (20350-01-5) Clam Antivirus-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (1)
Aug 07 17:52:27 mailsvrz amavis[20350]: (20350-01-5) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ct
Aug 07 17:52:27 mailsvrz amavis[20350]: (20350-01-5) (!)Clam Antivirus-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Aug 07 17:52:33 mailsvrz amavis[20350]: (20350-01-5) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ct
Aug 07 17:52:33 mailsvrz amavis[20350]: (20350-01-5) (!)Clam Antivirus-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All
Aug 07 17:52:33 mailsvrz amavis[20350]: (20350-01-5) (!)WARN: all primary virus scanners failed, considering backups
Aug 07 17:52:36 mailsvrz amavis[20351]: (20351-01-3) (!)Clam Antivirus - clamscan av-scanner FAILED: /usr/bin/clamscan KILLED, signal 9 (0009) at (eval 108) line 950.
Aug 07 17:52:36 mailsvrz amavis[20351]: (20351-01-3) (!!)AV: ALL VIRUS SCANNERS FAILED
~
-
:)
The key points is here:
sudo systemctl status clamav-daemon.service
● clamav-daemon.service - Clam AntiVirus userspace daemon
Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/clamav-daemon.service.d
└─extend.conf
Active: inactive (dead)
Condition: start condition failed at Mon 2020-08-10 13:37:24 CEST; 6s ago
└─ ConditionPathExistsGlob=/var/lib/clamav/main.{c[vl]d,inc} was not met
Docs: man:clamd(8)
man:clamd.conf(5)
https://www.clamav.net/documents/
Run these commands:
# because "ConditionPathExistsGlob=/var/lib/clamav/main.{c[vl]d,inc} was not met"
sudo freshclam
# enable and start the daemon
sudo systemctl start clamav-daemon.service
sudo systemctl enable clamav-daemon.service
Check your amavis system, for instance by sending the EICAR https://www.eicar.org/?page_id=3950 (https://www.eicar.org/?page_id=3950)
Cheers!
-
Ok, so now, I have stopped these modules....
Antivirus, Mail, Domain services, Sogo...
i am wondering, that after clear installtion, i am not able to get this system workable. Every try crashed some module ... I have tried to install Zentyla 6.1 (it was workable before) but even this is not workable even when I do clear installation, I ame depressed :-(
-
:)
Don't worry, all the sysadmins have had these experiences. Good sysadmins are those who learn from them.
Try to restart all the services:
sudo su -
services=(network dns samba mail clamav mailfiter sogo)
for service in "${services[@]}";do zs $service restart;done;
If this doesn't fix your issues, paste here the "/var/log/zentyal/zentyal.log" records regarding these modules (sanityze them, could contain private data)
cheers!