snap-store Does Not Run with XAUTHORITY error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Expired
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
* This system is an upgrade from 19.10 to 20.04.
* The 19.10 install was to a new, empty disk.
* Under 19.10 NO applications installed with snap work when you execute them (reported for several apps) and no response or follow-up. For example gnome-calculator snap failed.
x As an aside I was happy to see gnome-calculator working again with 20.04
x I thought the snap bug was fixed. As it happens I discovered gnome-calculator is No loner a snap in 20.04 ~sigh~.
* As it happens I need to revert the installed libreoffice due to a business stopper regression:
x LibreOffice bug: https:/
* I clicked on snap store icon, Nothing Happens
* I worked out how to invoke it from the command line and received this message for my reward.
$ /snap/bin/
2020/07/03 09:41:32.148183 cmd_run.go:563: WARNING: XAUTHORITY environment value is
not a clean path: "/Moort/
cannot create user data directory: /home/william/
$ /snap/bin/
2020/07/03 09:52:21.034248 cmd_run.go:563: WARNING: XAUTHORITY environment value is
not a clean path: "/Moort/
cannot create user data directory: /home/william/
x The message: "/home/
... is very familiar. A message looking like that came up when I tried to run/load a
snap installed appp under 19.10 previously.
* Everything appears OK for XAUTHORITY
$ echo $XAUTHORITY; ll $XAUTHORITY
/home/
-rw------- 1 william william 54 Jun 28 11:13 /home/william/
* I don't understand the bug -- That directory definitely exists, witnessed as follows:
$ ll /home/william/
/home/
total 16
drwxr-xr-x 4 william william 4096 Jul 3 01:13 ./
drwxr-xr-x 13 william william 4096 Jul 3 01:13 ../
drwxr-xr-x 2 william william 4096 Jul 3 01:13 467/
drwxr-xr-x 2 william william 4096 Jul 3 01:13 common/
lrwxrwxrwx 1 william william 3 Jul 3 01:13 current -> 467/
/home/
total 8
drwxr-xr-x 2 william william 4096 Jul 3 01:13 ./
drwxr-xr-x 4 william william 4096 Jul 3 01:13 ../
-----
Anyway the key thing here is that I will not be the only set-up that snap-s fail on. It just appears that something very basic is off-track.
Changed in snapd (Ubuntu): | |
status: | New → Incomplete |
Thanks for reporting and sorry for not getting back to you earlier. It seems that we have a mismatch between the contents of the XAUTHORITY environment variable (under /home/william) and the actual location of the file on the filesystem (under /Moort/ home/william) after resolving symlinks and cleaning the pathname. Are you symlinking an alternate home directory location to /home?
Using an alternate location for home directories can be related to the other problems you've been experiencing. If you're using an alternate location, could you try to bind-mount this alternate location on /home?
Reference: https:/ /forum. snapcraft. io/t/how- can-i-use- snap-when- i-dont- use-home- user/3352/ 11