• 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

Bad problem in production server

sdfs_sdfsdf

New Pleskian
Hi, I don't know why, but my plesk started giving error about a bad updated, I tried to resolve it without success...here is what happens when I try to update, I would be very grateful if someone can help me.
Plesk - 12.0.18 - Debian Wheezy


Suggested packages:
apache2-doc apache2-suexec apache2-suexec-custom tinyca
The following packages will be upgraded:
apache2.2-common mysql-server-5.5
2 upgraded, 0 newly installed, 0 to remove and 202 not upgraded.
4 not fully installed or removed.
Need to get 0 B/2386 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
apache2.2-common mysql-server-5.5
Reading changelogs...
Preconfiguring packages ...
Authentication warning overridden.
(Reading database ... 216773 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
ERROR: Module version does not exist!
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Preparing to replace mysql-server-5.5 5.5.38-0+wheezy1 (using .../mysql-server-5.5_5.5.44-0+deb7u1_amd64.deb) ...
Stopping MySQL database server: mysqld.
Stopping MySQL database server: mysqld.
Unpacking replacement mysql-server-5.5 ...
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.
 
Hi sdfs_sdfsdf,

as you can see in your error - log, your apache2.2-common version could not be upgraded:

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)

with the previous documented error:
unable to create `/etc/apache2/apache2.conf.dpkg-new' (while processing `./etc/apache2/apache2.conf'): Permission denied

As you don't necessarily need the file "apache2.conf.dpkg-new", just delete or rename the current version, if it exists:

mv /etc/apache2/apache2.conf.dpkg-new /etc/apache2/apache2.conf.dpkg-new.backup
... and please run afterwards:

apt-get -f install
... followed by:
apt-get autoremove && apt-get clean && apt-get update
( clean up your system afterwards a bit! )​


Please consider as well to upgrade the rest of your packages, please, in order to be up-to-date. The current state
2 upgraded, 0 newly installed, 0 to remove and 202 not upgraded.
... shows 202 not upgraded packages.
 
Back
Top