• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Error when updating Plesk 12

sdfs_sdfsdf

New Pleskian
Hi guys.
When i login into plesk I see an error saying an update was wrong and to fix it, but the problem is not fixed.
I already tried removing the file
/var/cache/apt/archives/apache2.2-common_2.2.22-13+deb7u6_amd64.deb
but then apt-get -f install also fails.

May someone check this please?, plesk is driving me crazy.


Installing packages
sw-engine-fpm (pid 37703) is running...
Stopping psa... Stopping Plesk engine pool manager: sw-engine-fpm.
done
-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.
mysqldump: Got error: 1049: Unknown database 'atmail' when selecting the database
===> Cumulative APS controller database (apsc) upgrade has been started.
===> Cumulative upgrade of APS controller database has been completed.
===> Cumulative Plesk database upgrade (revertable stage) has been started.
===> Preparing Plesk database upgrade (revertable stage).
===> Cumulative upgrade of Plesk database (revertable stage) has been completed.
Reading package lists...
Building dependency tree...
Reading state information...
apache2 is already the newest version.
apache2-mpm-prefork is already the newest version.
mailman is already the newest version.
The following packages were automatically installed and are no longer required:
libaudit0 libprelude2
Use 'apt-get autoremove' to remove them.
Suggested packages:
apache2-doc apache2-suexec apache2-suexec-custom
The following packages will be upgraded:
apache2.2-common plesk-l10n plesk-roundcube plesk-wp-cli psa-phpmyadmin
psa-updates sw-engine sw-nginx
8 upgraded, 0 newly installed, 0 to remove and 156 not upgraded.
4 not fully installed or removed.
Need to get 41.7 MB/42.0 MB of archives.
After this operation, 3030 kB disk space will be freed.
WARNING: The following packages cannot be authenticated!
apache2.2-common plesk-l10n plesk-roundcube plesk-wp-cli psa-phpmyadmin
sw-engine psa-updates sw-nginx
Authentication warning overridden.
Get:1 http://autoinstall.plesk.com/debian/PSA_12.0.18/ wheezy/all plesk-l10n all 12.0.18-debian7.0.build1200150918.14 [11.2 MB]
Get:2 http://autoinstall.plesk.com/debian/PSA_12.0.18/ wheezy/all plesk-roundcube all 1.1.4-debian7.0.build1200151229.11 [4855 kB]
Get:3 http://autoinstall.plesk.com/debian/PSA_12.0.18/ wheezy/all plesk-wp-cli all 0.21.2-15121017 [1632 kB]
Get:4 http://autoinstall.plesk.com/debian/PSA_12.0.18/ wheezy/all psa-phpmyadmin all 4.5.1-debian7.0.build1200151119.14 [9716 kB]
Get:5 http://autoinstall.plesk.com/debian/PSA_12.0.18/ wheezy/all sw-engine amd64 2.13.13-debian70.201510161301 [13.7 MB]
Get:6 http://autoinstall.plesk.com/debian/PSA_12.0.18/ wheezy/all psa-updates all 12.0.18-debian7.0.build1200151013.11 [720 B]
Get:7 http://autoinstall.plesk.com/debian/NGINX_1.9.4/ wheezy/all sw-nginx amd64 1.9.4-debian7.0.15091112 [580 kB]
Reading changelogs...
Fetched 41.7 MB in 9s (4469 kB/s)
(Reading database ... 217387 files and directories currently installed.)
Preparing to replace apache2.2-common 2.2.22-13+deb7u3 (using .../apache2.2-common_2.2.22-13+deb7u6_amd64.deb) ...
Unpacking replacement apache2.2-common ...
dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.22-13+deb7u6_amd64.deb (--unpack):
unable to create `/etc/apache2/apache2.conf.dpkg-new' (while processing `./etc/apache2/apache2.conf'): Permission denied
dpkg-deb (subprocess): decompressing archive member: lzma write error: Broken pipe
dpkg-deb: error: subprocess <decompress> returned error exit status 2
ERROR: Module version does not exist!
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Preparing to replace plesk-l10n 12.0.18-debian7.0.build1200150825.10 (using .../plesk-l10n_12.0.18-debian7.0.build1200150918.14_all.deb) ...
Unpacking replacement plesk-l10n ...
Preparing to replace plesk-roundcube 1.1.2-debian7.0.build1200150707.12 (using .../plesk-roundcube_1.1.4-debian7.0.build1200151229.11_all.deb) ...
Unpacking replacement plesk-roundcube ...
Preparing to replace plesk-wp-cli 0.18.0-15081116 (using .../plesk-wp-cli_0.21.2-15121017_all.deb) ...
Unpacking replacement plesk-wp-cli ...
Preparing to replace psa-phpmyadmin 4.4.14.1-debian7.0.build1200150914.11 (using .../psa-phpmyadmin_4.5.1-debian7.0.build1200151119.14_all.deb) ...
Unpacking replacement psa-phpmyadmin ...
Preparing to replace sw-engine 2.13.12-debian70.201502091643 (using .../sw-engine_2.13.13-debian70.201510161301_amd64.deb) ...
Unpacking replacement sw-engine ...
Preparing to replace psa-updates 12.0.18-debian7.0.build1200150224.15 (using .../psa-updates_12.0.18-debian7.0.build1200151013.11_all.deb) ...
Unpacking replacement psa-updates ...
Preparing to replace sw-nginx 1.9.4-debian7.0.15090210 (using .../sw-nginx_1.9.4-debian7.0.15091112_amd64.deb) ...
Unpacking replacement sw-nginx ...
Starting new master nginx: nginx.
Graceful shutdown of old nginx: nginx.
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/apache2.2-common_2.2.22-13+deb7u6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ERROR: An error occurred on attempt to install packages.
Attention! Your software might be inoperable.
Please, contact product technical support.
 
Last edited:
Can someone give help with this issue please?

I get this error when trying to Install apache


unable to create `/etc/apache2/apache2.conf.dpkg-new'

the folder /etc/apache2 has not a file called apache2.conf.dpkg-new. apache2 cant be removed or renamed.

apt-get purge , clean, upgrade didnt help.
 
Last edited:
Did you try...

Code:
# dpkg --configure -a
and
Code:
# apt-get -f install

Maybe it will help
Regards

Lloyd
 
Hi., then i get



root@mail:/etc/apache2# dpkg --configure -a
dpkg: dependency problems prevent configuration of apache2-mpm-prefork:
apache2-mpm-prefork depends on apache2.2-common (= 2.2.22-13+deb7u6); however:
Package apache2.2-common is not installed.

dpkg: error processing apache2-mpm-prefork (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2:
apache2 depends on apache2-mpm-worker (= 2.2.22-13+deb7u6) | apache2-mpm-prefork (= 2.2.22-13+deb7u6) | apache2-mpm-event (= 2.2.22-13+deb7u6) | apache2-mpm-itk (= 2.2.22-13+deb7u6); however:
Package apache2-mpm-worker is not installed.
Package apache2-mpm-prefork is not configured yet.
Package apache2-mpm-event is not installed.
Package apache2-mpm-itk is not installed.
apache2 depends on apache2.2-common (= 2.2.22-13+deb7u6); however:
Package apache2.2-common is not installed.

dpkg: error processing apache2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on apache2-mpm-prefork (>> 2.0.52) | apache2-mpm-itk; however:
Package apache2-mpm-prefork is not configured yet.
Package apache2-mpm-itk is not installed.
libapache2-mod-php5 depends on apache2.2-common; however:
Package apache2.2-common is not installed.

dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apache2-mpm-prefork
apache2
libapache2-mod-php5
root@mail:/etc/apache2#
 
@sdfs_sdfsdf

It seems to be the case that you have some dependency issues.

It often is best (but risky) to do a re-installation of the troublesome package (i.e. apache2) by following the steps :

a) do some preliminary steps and run:

- apt-get update (we want all packages to be up-to-date, so we update package lists)
- service psa stop (we want all processes to be stopped, for the sake of convenience and to be more secure when performing some package changes)

b) run: dpkg -l | grep apache (and check that package apache2 is installed)

c) if package apache2 is not installed, run: apt-get install apache2

d) if package apache2 is installed, run:

- apt-get remove <packagename> (with packagename the name you find in step a, it should be apache2)
- apt-get autoremove (this optional, but cleans up the system)
- apt-get install <packagename>

e) run: service psa start

Note that if you select the correct package name, this procedure should not have a major impact on the Plesk instance: after all, the apache2 package is "indepent" from Plesk packages.

However, removing the package can also cause Plesk specific configuration files to vanish: for that reason, we first use the apt-get remove command (leaving some config intact).

If that apt-get remove command did not work, just redo all steps, but this time one should run: apt-get purge <packagename> in step d AND some other steps to reconfigure Apache.

Just let me know if the above helps...

Regards!
 
Back
Top