evilsocket / opensnitch

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

make install - Text file busy #311

Closed licaon-kter closed 3 years ago

licaon-kter commented 3 years ago

Debian Sid 64-bit, make install:

make[1]: Entering directory '.../go/src/github.com/evilsocket/opensnitch/daemon'
cp: regular file '/usr/local/bin/opensnitchd' can't be created: Text file busy
make[1]: *** [Makefile:5: install] Error 1

I can install if I first stop the daemon, then install, then restart... which makes it a pain, so do I have to stop the networking first, right? Or directly unplug the cable? :(

gustavo-iniguez-goya commented 3 years ago

[edited] yes, if you compile from the sources you have to stop and start the daemon.

$ make 
$ sudo service opensnitch stop
$ sudo cp opensnitchd /usr/local/bin/
$ sudo service opensnitch start
licaon-kter commented 3 years ago

What happens when I stop the service exactly? Oh I know, all the programs just access the internet as they wish? That's...not what I want in a firewall. :(

if you compile from the sources

As opposed to precompiled .DEBs?

Can't that cp be replaced with whatever apt does?

gustavo-iniguez-goya commented 3 years ago

Well, dpkg will probably delete the target binary, and then copy the new one.

try: sudo mv opensnitchd /usr/local/bin/ and then sudo service opensnitchd restart

gustavo-iniguez-goya commented 3 years ago

closing as this is something that is expected. We can help out with the doubts, but the make install is something to be used on a first installation, rather than on a regular basis.