Lets start by saying i'm made a rather good F up here and tried to install plesk on top of cpanel. I'm not sure why but its done and have a working version of cpanel but with a messed up install in the background. Since this is production i'll rather not wipe it till i've explored my options.
When ever trying to install or remove anything i'm getting this;
root@51-104-209-196:/etc/apt# sudo apt install --fix-broken
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
liblog4cplus plesk-libboost-1.65 plesk-libboost-date-time1.65 plesk-libboost-filesystem1.65 plesk-libboost-program-options1.65 plesk-libboost-regex1.65
plesk-libboost-serialization1.65 plesk-libboost-system1.65 plesk-libboost-thread1.65
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
pigz
The following NEW packages will be installed:
pigz
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
Need to get 0 B/57.4 kB of archives.
After this operation, 259 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 178544 files and directories currently installed.)
Preparing to unpack .../archives/pigz_2.4-1_amd64.deb ...
Unpacking pigz (2.4-1) ...
dpkg: error processing archive /var/cache/apt/archives/pigz_2.4-1_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man1/pigz.1.gz', which is also in package cpanel-pigz 2.4-1.cp1198
Errors were encountered while processing:
/var/cache/apt/archives/pigz_2.4-1_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@51-104-209-196:/etc/apt# apt-get purge plesk-backup-utilities
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
plesk-core : Depends: plesk-backup-utilities (>= 18.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
As you can see --fix-broken isn't working but if i purge this system of plesk then i stand a chance of repairing the cpanel side of things. I've also tried;
root@51-104-209-196:/etc/apt# apt-get purge plesk-backup-utilities
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
plesk-core : Depends: plesk-backup-utilities (>= 18.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@51-104-209-196:/etc/apt#
Any ideas rather than 'wipe and start again'?