• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Plesk failing to update - unmet dependencies in libapache2-mod-security2

IanStratton

New Pleskian
Hi

I've got the failed to update Plesk today.

I'm running:

‪Ubuntu 14.04.5 LTS‬
ProductPlesk Onyx
Version 17.8.11 Update #53

This is the last bit of the error log file:

E: Some index files failed to download. They have been ignored, or old ones used instead.
Warning: there are errors in 'apt-get update'
Retrieving information about the installed license key...
Launching component and product checkers...
Downloading file PSA_17.8.11/examiners/disk_space_check.sh: 0%
Downloading file PSA_17.8.11/examiners/disk_space_check.sh: 100% was finished.
Checking whether the package dependencies are resolved.
E: Unmet dependencies. Try using -f.
---X--- `apt-get` output ---------------------
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
aum : Depends: libapache2-mod-security2 but it is not installed

---------------------- `apt-get` output ---X---
Collecting error details into the log file...

ERROR: Installation will not continue

The apg-get failed with the following message:
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
aum : Depends: libapache2-mod-security2 but it is not installed

Not all packages were installed.
Please contact product technical support.

I've tried
# apt-get -f install

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libmemcached10 libmemcachedutil2 plesk-py27-pip plesk-py27-setuptools
plesk-py27-virtualenv plesk-wheel-cffi plesk-wheel-cryptography
plesk-wheel-psutil
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libapache2-mod-security2
The following NEW packages will be installed
libapache2-mod-security2
0 to upgrade, 1 to newly install, 0 to remove and 94 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/198 kB of archives.
After this operation, 1,091 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libapache2-mod-security2.
(Reading database ... 133397 files and directories currently installed.)
Preparing to unpack .../libapache2-mod-security2_2.7.7-2_amd64.deb ...
Unpacking libapache2-mod-security2 (2.7.7-2) ...
dpkg: error processing archive /var/cache/apt/archives/libapache2-mod-security2_2.7.7-2_amd64.deb (--unpack):
trying to overwrite '/etc/apache2/mods-available/security2.conf', which is also in package libapache2-modsecurity 2.9.2-ubuntu14.04.18021217
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libapache2-mod-security2_2.7.7-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any advice please.
 
Execute the following commands:

# dpkg -i --force-overwrite /var/cache/apt/archives/libapache2-modsecurity_2.9.2-ubuntu14.04.18021217_amd64.deb
# dpkg -i --force-overwrite /var/cache/apt/archives/libapache2-mod-security2_2.7.7-2_amd64.deb

Note: ignore if one of the commands fails.

Install Plesk updates:

# plesk installer update
 
Back
Top