evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
10.92k stars 510 forks source link

installer tries to delete /usr/lib/systemd/system #532

Closed themighty1 closed 3 years ago

themighty1 commented 3 years ago

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?

gustavo-iniguez-goya commented 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.

gustavo-iniguez-goya commented 3 years ago

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!