fredx181 wrote: Wed Jun 07, 2023 7:26 am
...A workaround is using full path of snap so: /usr/bin/snap install core
With this info, it didn't take me long to test.
I redo the setup. Fresh frugal copy only takes minutes.
Code: Select all
/usr/bin/snap install core
/usr/bin/snap install cctv-viewer
snap commands went thru okay - no errors. I thought 'woohoo'...
But not that easy it seems...
Code: Select all
root@live:~# cctv-viewer
2023/06/07 18:55:03.733179 cmd_run.go:783: WARNING: cannot write file at /run/user/0/.portals-unavailable: open /run/user/0/.portals-unavailable: no such file or directory
/snap/core/14946/usr/lib/snapd/snap-confine: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory
root@live:~#
I got rid of the first error by relaxing permission of /run/user/
-> chmod 777.
So, it could then write there.
The second error, I could not.
apt install libudev.so.1
whatever it is -> not found.
I tried apt install libudev1
instead, but I cancelled since it wanted to get rid of all X stuffs.
I can see it created dirs for its configs, but no files there (in Bullseye cctv-viewer wrote configs here).
/root/snap/cctv-viewer/current
In /usr/local/bin
, I saw both 'snap' and 'snap-ex'