Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
189 lines (134 sloc) 7.21 KB

Snapd doesn’t install nor run properly, no GTK theme applied to Snap Store, no fonts displayed [Arch Linux] [Fedora]

My name is Cristiano Vitorino, I'm a Designer, helping out with the UI Rewrite on the Glimpse project.

@hellsworth sent me this way from the Glimpse Matrix channel after our discussion about bugs and problems I've encountered trying to use snapd on Arch Linux and also my past problems with it on Fedora 30 and 31.

I want to thank her for her patience and composure in trying to help me while I was extremely frustrated with snapd after failing to get it to work on my production machine where I need Glimpse to be stable.

So, I'll sumirise my recent problems and my past ones soon after. Also I'll mention everything that I managed to find online about these same issues.

I understand that my distros of choice are bleeding edge and I take that into consideration when bug reporting. Specially my beloved Arch Linux, that is unique for each install, and a hellscape to debug.

For record sake, today is 23.Mar.2020. Spent the evening trying to solve these problems.


  1. The Installing snap on Arch Linux page on https://snapcraft.io/docs/installing-snap-on-arch-linux is outdated. There are additional steps required now to get snapd installed or removed.
Last updated 1 year, 30 days ago. Help improve this document in the forum.

The first step still holds true:

$ git clone https://aur.archlinux.org/snapd.git
$ cd snapd
$ makepkg -si

But not the second:

$ sudo systemctl enable --now snapd.socket

Enabling the seeded service is required BEFORE enabling snapd.

$ sudo systemctl enable snapd.seeded.service
$ sudo systemctl enable --now snapd.socket

Otherwise you will get this error:

screenshot

If you try again, it usually works:

screenshot

The remaining steps still holds true.

Special thanks to Erik Dubois for creating this script that solves the problem.


  1. Uninstalling snapd requires extra steps and should be mentioned on the install page. This is a safety/sanitary approach to uninstalling snapd on Arch Linux, on that order:
$ sudo systemctl stop --now snapd.socket
$ sudo systemctl stop snapd.seeded.service
$ sudo systemctl disable --now snapd.socket
$ sudo systemctl disable snapd.seeded.service
$ sudo pacman -Rs snapd

OR

$ yay -Rs snapd
$ reboot

  1. Installing snapd from AUR with yay gives a perpetual error, snapd is broken forever, it complains about the seeded issue forever. I've found no solution for this.

Major problem #1

I'm unable to use Snap Store due to it's inability to display text/font. Also it doesn't recognize the applied GTK theme and defaults to an odd and seemly old version of GTK. Screenshots below for reference.

screenshot

screenshot

Major problem #2
I'm unable to run Glimpse (glimpse-editor). It starts, tries to load, and as soon as it opens, a split second later it crashes. Oh, it also have the same bug with the text/font that the Snap Store one has. Screenshots for reference.

screenshot

screenshot


  1. Relevant links to either these exact same issues or similar ones, old and new, still here unfortunately:

My system info

screenshot

snapd version: snapd 2.43.3-1

$ cat /etc/os-release

NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux

uname -a

Linux desktop 5.5.10-arch1-1 #1 SMP PREEMPT Wed, 18 Mar 2020 08:40:35 +0000 x86_64 GNU/Linux

cat /proc/version

Linux version 5.5.10-arch1-1 (linux@archlinux) (gcc version 9.3.0 (Arch Linux 9.3.0-1)) #1 SMP PREEMPT Wed, 18 Mar 2020 08:40:35 +0000

Important Notes

  • Somehow installing snapd breaks my .Xmodmap file and renders it useless. I have zero idea how or why. I blame ghosts.
  • Please, PLEASE, someone responsable for documentation on Snapcraft add a echo snap >> ~/.hidden to every install page right after reboot so people stop complaining about making /snap hidden. This is a minor cosmetic issue that shouldn't be an issue. Thank you.
  • I faced very similar issues when I tried snapd on Fedora 30 and Fedora 31 on the past.

--

Steps to reproduce

Arch Linux

I've uploaded my Arch Linux install guide with each step I use to install mine.

Fedora

Just install vanilla Fedora Workstation 31.


That's all.

Thanks again @hellsworth for trying to help and pointing me in the right direction.

You can reach me on:

Regards,
Cristiano Vitorino

You can’t perform that action at this time.