$ sudo snap install core
error: cannot communicate with server: Post http://localhost/v2/snaps/core: dial unix /run/snapd.socket: connect: no such file or directory
Yes, I followed those instructions, now after repeating the entire process it has advanced a little more, but after completing the entire installation it does not show me the installed application.
if I put in the terminal “snap-store” it returns me:
Command ‘snap-store’ is available in ‘/snap/bin/snap-store’
The command could not be located because ‘/snap/bin’ is not included in the PATH environment variable.
snap-store: command not found
I don’t know if I can solve this error with this: export PATH="/snap/bin:$PATH"
If I put in the terminal “/snap/bin” it shows me this:
mkdir: cannot create directory ‘/run/user/0’: Permission denied
Warning: Schema “org.gnome.system.locale” has path “/system/locale/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy” has path “/system/proxy/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.http” has path “/system/proxy/http/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.https” has path “/system/proxy/https/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.ftp” has path “/system/proxy/ftp/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.socks” has path “/system/proxy/socks/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
16:53:57:0159 GLib-GIO g_app_info_get_name: assertion ‘G_IS_APP_INFO (appinfo)’ failed
No protocol specified
Unable to init server: Could not connect: Connection refused
16:53:57:0207 Gtk cannot open display: :0.0
In the location /snap/bin/ there is the store and some other applications that I have installed manually, without their own icons (they show a wheel) if I run them from there manually they do work, but I don’t know how I can do it. to detect them normally.
The issue has been “temporarily” fixed. I explain it
As I mentioned I am using Kali usb with persistence. After getting everything installed and after trying to modify the PATH, since the applications are installed in /snap/bin it worked correctly.
The problem is that when I restart the PATH it is lost, and the snap store and the applications installed with it are unconfigured, having to reconfigure the PATH and enter the following commands to make it work again:
If someone here can help me, I would appreciate it, although I am going to open another post with the problem since it does not fit the title of this post.