-
-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such file or directory: '/etc/services' #671
Comments
damn! thank you @gssantana I'll generate a new release + GUI packages. Meanwhile you can just copy the file https://raw.githubusercontent.com/evilsocket/opensnitch/master/ui/opensnitch/utils.py to your installation directory (/usr/lib/python3/dist-packages/opensnitch/) Or install |
Added netbase (debian based distros) or setup (fedora) or netcfg (opensuse) as dependency, to allow to read the file /etc/services. #671
According to the information in https://kubic.opensuse.org/blog/2019-12-05-usr-etc/, a possible solution could look like this:
It first looks to see if an |
Oh, I see, thank you! |
Describe the bug
Include the following information:
To Reproduce
After install opensnitch server and gui v1.6.0-rc.1, when I try to open opensnitch-ui, I get the error No such file or directory: '/etc/services'
Post error logs:
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: en_US
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
is new file, or IN MEMORY, setting initial schema version
setting schema version to: 1
setting schema version to: 1
schema version: 1
db schema is up to date
exception loading ipasn db: No module named 'pyasn'
Install python3-pyasn to display IP's network name.
Traceback (most recent call last):
File "/usr/bin/opensnitch-ui", line 74, in
service = UIService(app, on_exit)
File "/usr/lib/python3/dist-packages/opensnitch/service.py", line 92, in init
self._stats_dialog = StatsDialog(dbname="general", db=self._db, appicon=self.white_icon)
File "/usr/lib/python3/dist-packages/opensnitch/dialogs/stats.py", line 397, in init
self._fw_dialog = FirewallDialog(appicon=appicon)
File "/usr/lib/python3/dist-packages/opensnitch/dialogs/firewall.py", line 47, in init
self._fwrule_dialog = FwRuleDialog(appicon=self.appicon)
File "/usr/lib/python3/dist-packages/opensnitch/dialogs/firewall_rule.py", line 55, in init
self.net_srv = NetworkServices()
File "/usr/lib/python3/dist-packages/opensnitch/utils.py", line 323, in init
etcServices = open("/etc/services")
FileNotFoundError: [Errno 2] No such file or directory: '/etc/services'
The text was updated successfully, but these errors were encountered: