From 60d3abc6ecdc21b4ab921d34a55b4af48690f55a Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 11 Mar 2021 18:53:14 +0100 Subject: Rewrote the whole website to get rid on a heavy theme --- content/blog/debian/force-package-removal.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 content/blog/debian/force-package-removal.md (limited to 'content/blog/debian/force-package-removal.md') diff --git a/content/blog/debian/force-package-removal.md b/content/blog/debian/force-package-removal.md new file mode 100644 index 0000000..c1a4862 --- /dev/null +++ b/content/blog/debian/force-package-removal.md @@ -0,0 +1,14 @@ +--- +title: "Force package removal" +linkTitle: "Force package removal" +date: 2015-01-27 +description: > + Force package removal +--- + +Here is how to force package removal when post-uninstall script fails : +{{< highlight sh >}} +dpkg --purge --force-all +{{< /highlight >}} + +There is another option if you need to be smarter or if it is a pre-uninstall script that fails. Look at `/var/lib/dpkg/info/.*inst`, locate the line that fails, comment it out and try to purge again. Repeat until success! -- cgit v1.2.3