Closed themighty1 closed 3 years ago
I don't know actually, I think it's part of the debhelpers scripts. We only stop and disable the service before removing the package.
You can view the debhelper scripts unpacking the deb: dpkg-deb -R opensnitch_1.4.0-1_amd64.deb 1.4.0
-> DEBIAN/{post,pre}rm . There's no code to remove that directory.
I just tested it on Ubuntu 20.04 and it doesn't try to remove that directory (with and without --purge), but I've seen similar messages with other software that in fact deletes /opt even without having specific code to delete that directory.
closing because this problem (if it is at all) is not caused by us or our scripts. Anyway it's always good to keep an eye on these things, thank you!
While installing opensnitch_1.4.0-1_amd64.deb I got dpkg: warning: unable to delete old directory '/usr/lib/systemd/system': Directory not empty Is this expected?