hamster
hamster copied to clipboard
Not able to install hamster-snap on Debian
Hi there,
I try to install hamster-snap, and faced an issue :
# snap install hamster-snap
error: cannot perform the following tasks:
- Download snap "gtk-common-themes" (1506) from channel "stable" (unexpected EOF)
- Download snap "gnome-3-28-1804" (116) from channel "stable" (http2: server sent GOAWAY and closed the connection; LastStreamID=1, ErrCode=NO_ERROR, debug="")
Nevertheless, hamster seems to be installed
# snap list
Name Version Rev Tracking Publisher Notes
core18 20200427 1754 stable canonical✓ base
hamster-snap v3.0.1 43 stable extraymond -
but when I tried to start for the first time :
$ snap run hamster-snap
/snap/hamster-snap/43/snap/command-chain/desktop-launch: line 20: /snap/hamster-snap/43/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0: No such file or directory
ERROR: /snap/hamster-snap/43/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 exited abnormally with status 127
Other tries just return nothing and hamster is not started
It's probably not related, but I'm using Tails (tails.boum.org) so I had to redirect snap through Tor :
# snap set system proxy.http=socks5://127.0.0.1:9050
# snap set system proxy.https=socks5://127.0.0.1:9050
# iptables -I OUTPUT 3 -d 127.0.0.1/32 -o lo -p tcp -m tcp --dport 9050 --tcp-flags FIN,SYN,RST,ACK SYN -m owner --uid-owner 0 -j ACCEPT
Any hint is welcomed, thank you, cheers
Update :
# snap info hamster-snap says :
Make sure to **snap connect hamster-snap:system-observe** or do the equivalent in your
respected software center(with snap plugin enabled) before launching the gui.
So I tried # snap connect hamster-snap:system-observe
error: cannot resolve connection, slot snap name is empty
More informations :
# snap interfaces hamster-snap
Slot Plug
hamster-snap:dbus-gui-service -
hamster-snap:dbus-service -
hamster-snap:dbus-windows-service -
- hamster-snap:desktop
- hamster-snap:desktop-legacy
- hamster-snap:gnome-3-28-1804
- hamster-snap:gsettings
- hamster-snap:gtk-3-themes
- hamster-snap:home
- hamster-snap:icon-themes
- hamster-snap:sound-themes
- hamster-snap:system-observe
- hamster-snap:wayland
- hamster-snap:x11
# snap info hamster-snap
name: hamster-snap
summary: Hamster time tracker snap
publisher: extraymond
contact: https://github.com/extraymond/hamster-snap
license: unset
description: |
Hamster is time tracking for individuals. It helps you to keep track of how much time you have
spent during the day on activities you choose to track.
Tips:
1. Make sure to **snap connect hamster-snap:system-observe** or do the equivalent in your
respected software center(with snap plugin enabled) before launching the gui.
2. If you have launched the older version or without the plug, make sure to kill the two
background hamster-*-service before launching again, both services will be python processes.
commands:
- hamster-snap
snap-id: IWXvehZ4xm8ANtC7LVj27UnG7TAn5vdZ
tracking: stable
refresh-date: today at 22:34 UTC
channels:
stable: v3.0.1 2020-04-22 (43) 45MB -
candidate: ↑
beta: ↑
edge: 0+git.f8bec55 2020-04-22 (42) 45MB -
installed: v3.0.1 (43) 45MB -
I'm new to snap, but this may be an apparmor/sandboxing issue
So I tried to reinstall with snap install hamster-snap
--devmode
Automatically connect eligible plugs and slots of snap "hamster-snap"
-error: cannot perform the following tasks:
- Setup snap "hamster-snap" (43) security profiles (cannot setup apparmor for snap "hamster-snap": cannot unload apparmor profile: exit status 2
apparmor_parser output:
File snap-update-ns.hamster-snap not found, skipping...
File snap.hamster-snap.hamster-snap not found, skipping...
)
- Setup snap "hamster-snap" (43) security profiles (cannot unload apparmor profile: exit status 2
apparmor_parser output:
File snap-update-ns.hamster-snap not found, skipping...
File snap.hamster-snap.hamster-snap not found, skipping...
)
- Download snap "gtk-common-themes" (1506) from channel "stable" (context canceled)
- Download snap "gnome-3-28-1804" (116) from channel "stable" (context canceled)
@extraymond, could you have a look?
It's weird I had it working for a looong time, and then I had to force a reboot and all hell broke loose. After doing a reinstall of teh snap I'm getting this issue as well... Did you end up resolving this problem?
That's weird, sorry I don't have a debian install right now. The log seems to state something related to apparmour, check the reference and see if that helps.
https://forum.snapcraft.io/t/lxd-issue-due-to-snap-confine-apparmor-profile/4203/28.
@shaneonabike @iootaa Hi! Can you check the link above and verify it for me.