• 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

Issue Accidently deleted plesk and its dependencies on Debian

TimeRider

New Pleskian
Hello Plesk!

I accidently deleted plesk and its dependencies to reinstall mysql through grep on Debian 8 (jessie)

Now, I see no fix to get it back working as apache is down apt-get update doesn't work. I tried changing sources.list but it doesn't work either.

I tried ./plesk-installer and apt-get -f install didn't help either. Below are the full errors;

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
---X--- `apt-get` output ---------------------
Reading package lists...
Building dependency tree...
Reading state information...
psa-imp is already the newest version.
plesk-config-troubleshooter is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-10.0 (>= 10.0.35-0+deb8u1) but it is not going to be installed
plesk-config-troubleshooter : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
plesk-core : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
plesk-service-node-utilities : Depends: libdbd-mysql-perl but it is not going to be installed
pp17.8.11-bootstrapper : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-horde : Depends: psa-pear (>= 1.10.5-20180124) but it is not going to be installed
Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-imp : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-kronolith : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-mnemo : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-php5-configurator : Depends: php5-ioncube-loader (>= 10.0.3) but it is not going to be installed
Depends: php5-mysql or
php5-mysqlnd but it is not going to be installed
psa-phpmyadmin : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-turba : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be 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...
psa-imp is already the newest version.
plesk-config-troubleshooter is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-10.0 (>= 10.0.35-0+deb8u1) but it is not going to be installed
plesk-config-troubleshooter : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
plesk-core : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
plesk-service-node-utilities : Depends: libdbd-mysql-perl but it is not going to be installed
pp17.8.11-bootstrapper : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-horde : Depends: psa-pear (>= 1.10.5-20180124) but it is not going to be installed
Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-imp : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-kronolith : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-mnemo : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-php5-configurator : Depends: php5-ioncube-loader (>= 10.0.3) but it is not going to be installed
Depends: php5-mysql or
php5-mysqlnd but it is not going to be installed
psa-phpmyadmin : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed
psa-turba : Depends: plesk-mysql-server (>= 17.8.11) but it is not going to be installed

Not all packages were installed.
Please contact product technical support.
root@vmi180881:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
plesk-config-troubleshooter psa-imp
0 upgraded, 0 newly installed, 2 to remove and 10 not upgraded.
1 not fully installed or removed.
After this operation, 21.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 114721 files and directories currently installed.)
Removing psa-imp (6.2.21.1-debian8.0.build1708180425.15) ...
dpkg action:
Trying to start service mysql... done
Trying to establish test connection... /var/lib/dpkg/info/psa-imp.postrm: line 1516: /usr/bin/mysql: No such file or directory
/var/lib/dpkg/info/psa-imp.postrm: line 1516: /usr/bin/mysql: No such file or directory
/var/lib/dpkg/info/psa-imp.postrm: line 1516: /usr/bin/mysql: No such file or directory
/var/lib/dpkg/info/psa-imp.postrm: line 1516: /usr/bin/mysql: No such file or directory
failed

ERROR while trying to establish test connection
Check the error reason(see log file: /var/log/plesk/install/plesk_17.8.11_installation.log), fix and try again

dpkg action:
Trying to start service mysql... done
Trying to establish test connection... /var/lib/dpkg/info/psa-imp.postrm: line 1516: /usr/bin/mysql: No such file or directory
/var/lib/dpkg/info/psa-imp.postrm: line 1516: /usr/bin/mysql: No such file or directory
/var/lib/dpkg/info/psa-imp.postrm: line 1516: /usr/bin/mysql: No such file or directory
/var/lib/dpkg/info/psa-imp.postrm: line 1516: /usr/bin/mysql: No such file or directory
failed

ERROR while trying to establish test connection
Check the error reason(see log file: /var/log/plesk/install/plesk_17.8.11_installation.log), fix and try again


establish test connection

***** installing problem report *****
ERROR while trying to establish test connection
Check the error reason(see log file: /var/log/plesk/install/plesk_17.8.11_installation.log), fix and try again
establish test connection
dpkg: error processing package psa-imp (--remove):
subprocess installed post-removal script returned error exit status 1
Removing plesk-config-troubleshooter (17.8.11-debian8.0.build1708180301.19) ...
dpkg action:
Trying to start service mysql... done
Trying to establish test connection... /var/lib/dpkg/info/plesk-config-troubleshooter.prerm: line 1390: /usr/bin/mysql: No such file or directory
/var/lib/dpkg/info/plesk-config-troubleshooter.prerm: line 1390: /usr/bin/mysql: No such file or directory
/var/lib/dpkg/info/plesk-config-troubleshooter.prerm: line 1390: /usr/bin/mysql: No such file or directory
failed

ERROR while trying to establish test connection
Check the error reason(see log file: /var/log/plesk/install/plesk_17.8.11_installation.log), fix and try again

dpkg action:
Trying to start service mysql... done
Trying to establish test connection... /var/lib/dpkg/info/plesk-config-troubleshooter.prerm: line 1390: /usr/bin/mysql: No such file or directory
/var/lib/dpkg/info/plesk-config-troubleshooter.prerm: line 1390: /usr/bin/mysql: No such file or directory
/var/lib/dpkg/info/plesk-config-troubleshooter.prerm: line 1390: /usr/bin/mysql: No such file or directory
failed

ERROR while trying to establish test connection
Check the error reason(see log file: /var/log/plesk/install/plesk_17.8.11_installation.log), fix and try again


establish test connection

***** installing problem report *****
ERROR while trying to establish test connection
Check the error reason(see log file: /var/log/plesk/install/plesk_17.8.11_installation.log), fix and try again
establish test connection
dpkg: error processing package plesk-config-troubleshooter (--remove):
subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
psa-imp
plesk-config-troubleshooter
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please, help me fix this!

Thank you!
 
I doubt that
# apt-get -f install
will fix this situation. I'd say: It is all screwed up and needs a complete system reinstallation.
 
Back
Top