evilsocket / opensnitch

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

upgrade from Opensnitch version 1.3.6 to 1.5.2 was not successful #863

Closed Golddouble closed 1 year ago

Golddouble commented 1 year ago

Describe the bug Opensnitch 1.5.2 does not work (in my VM)

Include the following information:

To Reproduce

  1. Install the version from MX package Installer (test-repo) Opensnitch v.1.3.6
  2. copy the simlink ~/.config/autostart/opensnitch_ui.desktop from another PC with a working Opensnitch version 1.5.2 into the VM to the same location. -> Opensnitch works
  3. Download and install "opensnitch_1.5.2-1_amd64.deb"
  4. Download and install "python3-opensnitch-ui_1.5.2-1_all.deb" -> Error:
    Unpacking python3-opensnitch-ui (1.5.2-1) ...
    dpkg: Error processing archive /home/user/Downloads/python3-opensnitch-ui_1.5.2-1_all.deb (--unpack):
    Attempt to overwrite "/usr/bin/opensnitch-ui", which is also in package opensnitch-ui 1.3.6-1~mx19+1
    dpkg-deb: error: "insert" subprocess was killed by signal (data transfer broken (broken pipe))
    Errors occurred when editing:
    /home/user/Downloads/python3-opensnitch-ui_1.5.2-1_all.deb
    N: The download is performed as root and not sandbox protected, because the file "/home/user/Downloads/python3-opensnitch-ui_1.5.2-1_all.deb" cannot be accessed by the user "_apt". - pkgAcquire::Run (13: No permission)
    E: Sub-process /usr/bin/dpkg returned an error code (1)
  5. uninstall "opensnitch-ui" via MX package Installer
  6. install again manually "opensnitch_1.5.2-1_amd64.deb" and "python3-opensnitch-ui_1.5.2-1_all.deb" -> Installation looks successful.

But after a new start it does not work: How the GUI looks like: k20230226-113830

Here is another thing: k20230226-113713

Post error logs: Start from terminal:

$ /bin/sh -c "pkill -15 opensnitch-ui; opensnitch-ui"
Themes not available. Install qt-material if you want to change GUI's appearance: pip3 install qt-material.
Loading translations: /usr/lib/python3/dist-packages/opensnitch/i18n locale: de_CH
exception loading ipasn db: No module named 'pyasn'
Install python3-pyasn to display IP's network name.

If the daemon doesn't start:

[2023-02-26 09:50:39]  IMP  Got signal: terminated [2023-02-26 08:51:34]  IMP  Start writing logs to /var/log/opensnitchd.log

[2023-02-26 09:55:03]  IMP  Got signal: terminated [2023-02-26 09:55:19]  IMP  Start writing logs to /var/log/opensnitchd.log [2023-02-26 09:55:35]  IMP  Added new rule: allow if process.path is '/usr/sbin/ntpd' [2023-02-26 09:55:42]  IMP  Added new rule: allow if process.path is '/usr/sbin/cups-browsed' [2023-02-26 09:55:47]  IMP  Saved new rule: allow if process.path is '/usr/sbin/avahi-daemon' [2023-02-26 09:55:47]  IMP  Ruleset changed due to allow-always-simple-usr-sbin-avahi-daemon.json, reloading ... [2023-02-26 09:56:42]  IMP  Saved new rule: allow if process.path is '/usr/sbin/nmbd' [2023-02-26 09:56:42]  IMP  Ruleset changed due to allow-always-simple-usr-sbin-nmbd.json, reloading ... [2023-02-26 09:56:53]  IMP  Saved new rule: allow if process.path is '/opt/firefox/firefox-bin' [2023-02-26 09:56:53]  IMP  Ruleset changed due to allow-always-simple-opt-firefox-firefox-bin.json, reloading ... [2023-02-26 09:57:26]  IMP  Saved new rule: allow if process.path is '/opt/firefox/pingsender' [2023-02-26 09:57:26]  IMP  Ruleset changed due to allow-always-simple-opt-firefox-pingsender.json, reloading ... [2023-02-26 09:59:54]  ERR  getting notifications: rpc error: code = Unavailable desc = transport is closing [2023-02-26 09:59:54]  ERR  Connection to the UI service lost.

[2023-02-26 10:00:14]  IMP  Got signal: quit [2023-02-26 10:00:16]  IMP  Start writing logs to /var/log/opensnitchd.log [2023-02-26 10:00:19]  WAR  queue stuck, closing by timeout [2023-02-26 10:00:19]  WAR  Queue.destroy(), nfq_close() not closed: -1



Thank you.
gustavo-iniguez-goya commented 1 year ago

Hi @Golddouble ,

Attempt to overwrite "/usr/bin/opensnitch-ui", which is also in package opensnitch-ui 1.3.6-1~mx19+1

This error could have been resolved with this command: $ sudo dpkg -i --force-all /home/user/Downloads/python3-opensnitch-ui_1.5.2-1_all.deb

Try starting the daemon with this command: $ sudo bash /etc/init.d/opensnitch start

Golddouble commented 1 year ago

Thank you. It's working now.