• 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 Ubuntu Plesk Unistall

X

xauriello

Guest
Hi,

I'm try to recover my ubuntu installation. I uninstall Mysql and php. Now i'm trying to remove plesk (I removed most of components) but there are still two that i'm not able to remove :

plesk- core and plesk-config-troubleshooter.

when I try to remove them .... i recieve the following errors :

sudo dpkg --force-all -P plesk-core

dpkg: plesk-core: dependency problems, but removing anyway as you requested:
plesk-config-troubleshooter depends on plesk-core (>= 12.0.18).

(Reading database ... 241147 files and directories currently installed.)
Removing plesk-core (12.0.18-ubuntu14.04.build1200140625.13) ...
Stopping psa... done
dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again

dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again


detect MySQL service name

***** installing problem report *****
ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again
detect MySQL service name
dpkg: error processing package plesk-core (--purge):
subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
plesk-core

seem unistall look for Mysql server, but I alredy uninstall it.

Any idea to solve this situation ?

thanks for all your support
Xauriello
 
Hi xauriello,

first, pls. be informed, that it is much easier to setup a new server - most server hoster provide this option over their control panel.

Second, Plesk provides a removal script at KB - article 112988:



Third, in order to avoid issues/problems/failures, it is recommended to FIRST uninstall all Plesk packages, if you do a manual Plesk - removal. After that, you would continue to remove ( depending ) services and their configuration - files, which are not shipped with Plesk.
 
Hi ,
thank for your feedback.
I tried to use script file but seem still two components remains :
plesk-core, plesk-config-troubleshooter

Thank for all your support
Xauriello

here below errors :

root@admin53008117:~# sh p.sh
Deinstallation...
Gavering info from the system... done
Follow packages going to be uninstalled:
log4cpp-plesk
plesk-core

Do you want to continue? [y/n]: y
(Reading database ... 241147 files and directories currently installed.)
Removing plesk-core (12.0.18-ubuntu14.04.build1200140625.13) ...
Stopping psa... done
dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again

dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again


detect MySQL service name

***** installing problem report *****
ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again
detect MySQL service name
Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [51.1 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [136 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [133 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [67.7 kB]
Fetched 576 kB in 1s (367 kB/s)
Reading package lists... Done
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:
plesk-config-troubleshooter : Depends: virtual-mysql-server or
mysql-server
plesk-core : PreDepends: pp12.0.18-bootstrapper but it is not installable
PreDepends: virtual-mysql-server or
mysql-server
Depends: log4cpp-plesk but it is not installable
Depends: plesk-base (>= 12.0.18) but it is not installable
Depends: plesk-service-node-utilities (>= 12.0.18) but it is not installable
Depends: libpam-plesk but it is not installable
Depends: psa-zendframework (>= 1.11.15) but it is not installable
Depends: psa-phpmyadmin (>= 3.5.2.2) but it is not installable
Depends: psa-phppgadmin (>= 5.1) but it is not installable
Depends: plesk-aps-php-runtime (>= 11.6.0) but it is not installable
Depends: libmyodbc but it is not installable
Depends: psa-libxml-proxy but it is not installable
Depends: sw-doctrine but it is not installable
Depends: psa-pylibplesk but it is not installable
Depends: psa-locale-base-en-us (>= 12.0.0) but it is not installable or
psa-locale-base-12.0.18 but it is not installable
postfix : Conflicts: mail-transport-agent
sendmail-bin : Depends: sendmail-base (= 8.15.2-3) but it is not going to be installed
Depends: sendmail-cf (= 8.15.2-3) but it is not going to be installed
Conflicts: mail-transport-agent
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libdbd-mysql-perl libmysqlclient20 mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server-10.0 mariadb-server-core-10.0 mysql-common
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
libdbd-mysql-perl libmysqlclient20 mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server-10.0 mariadb-server-core-10.0 mysql-common
Suggested packages:
mariadb-test tinyca
The following packages will be REMOVED:
plesk-config-troubleshooter plesk-core
The following NEW packages will be installed:
libdbd-mysql-perl libmysqlclient20 mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server-10.0 mariadb-server-core-10.0 mysql-common
0 upgraded, 8 newly installed, 2 to remove and 551 not upgraded.
1 not fully installed or removed.
Need to get 828 kB/14.9 MB of archives.
After this operation, 84.6 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-common all 5.7.12-0ubuntu1.1 [17.0 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmysqlclient20 amd64 5.7.12-0ubuntu1.1 [811 kB]
Fetched 828 kB in 1s (730 kB/s)
Preconfiguring packages ...
(Reading database ... 241147 files and directories currently installed.)
Removing plesk-config-troubleshooter (12.0.18-ubuntu14.04.build1200140623.14) ...
dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again

dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again


detect MySQL service name

***** installing problem report *****
ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again
detect MySQL service name
dpkg: error processing package plesk-config-troubleshooter (--remove):
subprocess installed pre-removal script returned error exit status 1
dpkg: plesk-core: dependency problems, but removing anyway as you requested:
plesk-config-troubleshooter depends on plesk-core (>= 12.0.18).

Removing plesk-core (12.0.18-ubuntu14.04.build1200140625.13) ...
Stopping psa... done
dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again

dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again


detect MySQL service name

***** installing problem report *****
ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again
detect MySQL service name
dpkg: error processing package plesk-core (--remove):
subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
plesk-config-troubleshooter
plesk-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
You have new mail in /var/mail/root
 
Hi xauriello,

consider to INSTALL again what is suggested

Code:
libdbd-mysql-perl libmysqlclient20 mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server-10.0 mariadb-server-core-10.0 mysql-common

and retry the uninstall process.

Apart from that, you have "551 not upgraded" - packages on your server, which needs your attention - they sure don't all depend on Plesk-related packages! ( use the command "apt-get -u upgrade" to list the packages )
 
Hi,

thanks for your feedback. I know there are many packeges to upgrade / remove, but all these correction are blocked by
plesk-config-troubleshooter
plesk-core
 
New Hi,

thanks for your feedback. I know there are many packeges to upgrade / remove, but all these correction are blocked by
plesk-config-troubleshooter
plesk-core

uninstall procedure look for mysql server that is not installed on server.

How I can fix it ? without removing the two packages, I cannot go on to fix others issue.

Thanks for all your support
Xauriello

"
Removing plesk-config-troubleshooter (12.0.18-ubuntu14.04.build1200140623.14) ...
dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again

dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again


detect MySQL service name

***** installing problem report *****
ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again
detect MySQL service name
dpkg: error processing package plesk-config-troubleshooter (--remove):
subprocess installed pre-removal script returned error exit status 1
dpkg: plesk-core: dependency problems, but removing anyway as you requested:
plesk-config-troubleshooter depends on plesk-core (>= 12.0.18).

Removing plesk-core (12.0.18-ubuntu14.04.build1200140625.13) ...
Stopping psa... done
dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again

dpkg action:

ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again


detect MySQL service name

***** installing problem report *****
ERROR while trying to detect MySQL service name
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_installation.log), fix and try again
detect MySQL service name
dpkg: error processing package plesk-core (--remove):
subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
plesk-config-troubleshooter
plesk-core
E: Sub-process /usr/bin/dpkg returned an error code (1)"
 
Back
Top