• 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

Resolved change postfix vs qmail-->error

Remigio

Basic Pleskian
I was uninstalling postfix and installing qmail when this error appeared to me, which also appears to me when plesk tells me that qmail is to be updated:
apg-get failed with the following message:
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
postfix-pcre : Depends: postfix (= 3.1.8-0+deb9u1) but it is not going to be installed

Tried many and many times plesk repair all, but package update show always this error.
And now?
 
Last edited:
I've also tried to unistall postfix and reinstall qmail, or uninstall qmail and reinstall postfix-->always error
 
In fact today I've get an email with:
29 INFO: pum is called with arguments: ['--update', '--json']

2018-11-03 06:25:36 INFO: no packages to update

E:Sub-process /usr/bin/dpkg returned an error code (1)

2018-11-03 06:25:38 ERROR: installArchives() failed

2018-11-03 06:25:38 ERROR: Exited with returncode 1.


so plesk it's still in error.
 
Just follow How to define which mail transfer agent (MTA) is used in Plesk and how to switch from QMail to Postfix and back and also Unable to open the Updates and Upgrades page or start Plesk Installer: Update operation was locked by another update process
same issue
Try to unistall and reinstall other mta, and try -->apt --fix-broken install-->
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  linux-image-4.9.0-6-amd64
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  psa-qmail-rblsmtpd
The following packages will be REMOVED:
  postfix-pcre
The following NEW packages will be installed:
  psa-qmail-rblsmtpd
0 upgraded, 1 newly installed, 1 to remove and 4 not upgraded.
2 not fully installed or removed.
Need to get 0 B/20.4 kB of archives.
After this operation, 316 kB disk space will be freed.
N: Ignoring file 'plesk.list.ai_back' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Do you want to continue? [Y/n] y
N: Ignoring file 'plesk.list.ai_back' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
(Reading database ... 102553 files and directories currently installed.)
Removing postfix-pcre (3.1.8-0+deb9u1) ...
/var/lib/dpkg/info/postfix-pcre.prerm: 18: .: Can't open /usr/share/postfix/postinst.functions
dpkg: error processing package postfix-pcre (--remove):
 subprocess installed pre-removal script returned error exit status 2
/var/lib/dpkg/info/postfix-pcre.postinst: 25: .: Can't open /usr/share/postfix/postinst.functions
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 postfix-pcre
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Code:
plesk repair all -y

and you could try:

Code:
mkdir -p /root/backup-dpkg

mv /var/lib/dpkg/info/postfix.* /root/backup-dpkg/

apt-get -f install

Afterwards, pls, update/upgrade the rest of your software packages:
Code:
aptitude upgrade
or for centos
Code:
yum update

You somehow messed up your packages on your server and I therefore recommend the following commands AFTER you solved the above mentioned issue.
Code:
plesk installer --select-product-id plesk --select-release-current --install-component qmail

plesk installer --select-product-id plesk --select-release-current --reinstall-patch --install-component base

plesk repair mail -y -v
 
Hello @Remigio,
yes the removal while installing another mail-service is normal.

Okey, normaly this command should work for debian, please try:

Code:
     apt-get update
 
Back
Top