uninstall and purge all selected
manual uninstall worked...
root@DietPi:~# apt remove libmpdclient2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libmpdclient-dev libmpdclient2
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 420 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 27350 files and directories currently installed.)
Removing libmpdclient-dev (2.9-1) ...
Removing libmpdclient2 (2.9-1) ...
root@DietPi:~#
Log file contents:
dpkg: warning: ignoring request to remove mpd which isn't installed
dpkg: dependency problems prevent removal of libmpdclient2:
libmpdclient-dev depends on libmpdclient2 (= 2.9-1).
dpkg: error processing package libmpdclient2 (--purge):
dependency problems - not removing
Errors were encountered while processing:
libmpdclient2
@dynobot
Thanks for your report.
Ah, dpkg -P fails when facing dependency issues. Anyway I think we should not use this, but G_AGP (apt-get purge) instead, which calls APT with options to purge all dependants as well and skip non-existent packages.
Switch to dpkg -P initially due to: https://github.com/Fourdee/DietPi/commit/1aa2cbed70bd57226103799c7287143c3b0ae079
🈯️ G_AGP with non-repo package works well on Stretch
🈯️ And Jessie
Fix is done for v6.17: https://github.com/Fourdee/DietPi/commit/0cf17fa913f7860c073f18355e2f1c86eb230a25
@MichaIng
Works a charm 👍
Marking as completed.
Most helpful comment
@dynobot
Thanks for your report.
Ah,
dpkg -Pfails when facing dependency issues. Anyway I think we should not use this, butG_AGP(apt-get purge) instead, which calls APT with options to purge all dependants as well and skip non-existent packages.Switch to
dpkg -Pinitially due to: https://github.com/Fourdee/DietPi/commit/1aa2cbed70bd57226103799c7287143c3b0ae079🈯️ G_AGP with non-repo package works well on Stretch
🈯️ And Jessie
Fix is done for v6.17: https://github.com/Fourdee/DietPi/commit/0cf17fa913f7860c073f18355e2f1c86eb230a25