Fontconfig - not cleaning unwritable cache directory failed installation of fakecam

When i try to install fakecam I am getting a weird error. I have several snap sourced applications installed but this problem has presented itself out of nowhere

sudo snap install fakecam
error: cannot perform the following tasks:
- Run configure hook of "fakecam" snap if present (run hook "configure": 
-----
/usr/share/fonts: caching, new cache contents: 0 fonts, 7 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 76 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/fonts-master: /usr/share/fonts/fonts-master: error scanning
/usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/opentype/cantarell: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-C: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-H: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-N: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-P: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-T: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/freefont: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/opentype/malayalam: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/opentype/noto: caching, new cache contents: 28 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 3 fonts, 53 dirs
/usr/share/fonts/truetype/Gargi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Gubbi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Nakula: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Navilu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Sahadeva: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Sarai: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ancient-scripts: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/dejavu: caching, new cache contents: 22 fonts, 0 dirs
/usr/share/fonts/truetype/droid: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-beng-extra: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-deva-extra: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-gujr-extra: caching, new cache contents: 5 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-guru-extra: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-kalapi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-orya-extra: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-telu-extra: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs
/usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lato: caching, new cache contents: 18 fonts, 0 dirs
/usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-kannada: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-malayalam: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-oriya: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-tamil-classical: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lyx: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/malayalam: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs
/usr/share/fonts/truetype/nanum: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/noto: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/pagul: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/samyak: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/samyak-fonts: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/takao-gothic: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-bitstream-vera: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-xfree86-nonfree: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/ubuntu: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/fonts/type1/texlive-fonts-recommended: caching, new cache contents: 0 fonts, 0 dirs
/usr/local/share/fonts: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/texmf/fonts/opentype/public/lm: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/lm-math: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/tex-gyre: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/tex-gyre-math: skipping, no such directory
/var/snap/fakecam/common/fontconfig: cleaning cache directory
/var/cache/fontconfig: not cleaning unwritable cache directory
/snap/fakecam/104/gnome-platform/usr/bin/fc-cache: failed
-----)

The same happens if I sudo rm all the files from the fontconfig folder or if i run snap install fakecam without sudo.

I have also tried sudo apt-get install --reinstall --purge fontconfig-config and then snap install but not to avail

Do you have any suggestion as to how come this is failing? why would the installed fail when not cleaning a folder. Is the installer supposed to try its best to work in these cases and finish the installation maybe with warnings instead of exiting?

The fakecam snap maintainer thinks it is not a problem specific to the fakecam installation but rather a snap problem as shown on the github issue ->
https://github.com/diddlesnaps/fakecam/issues/10

Any suggestions on how to troubleshoot this?

1 Like

Thanks for puling this over. Can you try to get the output of the “changes” that the snap went through during install:

  • Use snap changes to find the change number, then
  • Run snap change $changenumberfromabove and paste the output here

Also helpful would be the output of snap version to illustrate some basic information about your setup.

All changes available

$ snap changes
ID   Status  Spawn               Ready               Summary
686  Error   today at 01:20 GMT  today at 01:21 GMT  Auto-refresh snap "opera"
687  Error   today at 06:50 GMT  today at 06:51 GMT  Auto-refresh snap "opera"
688  Error   today at 15:20 GMT  today at 15:21 GMT  Auto-refresh snap "opera"
689  Error   today at 19:20 GMT  today at 19:21 GMT  Auto-refresh snap "opera"
690  Error   today at 20:54 GMT  today at 20:55 GMT  Install "fakecam" snap
691  Error   today at 20:57 GMT  today at 20:58 GMT  Install "fakecam" snap

Snap version

$ snap version
snap    2.48+18.04
snapd   2.48+18.04
series  16
ubuntu  18.04
kernel  4.15.0-126-generic

I cannot see the changes from the last few days but only the ones for today so i tried the installation again a couple of times.

1 - sudo snap install fakecam same error as original post but an alert showed that it was not able to connect to the camera and asked to run some connect command. I clicked ok and i did not save the command so I cannot remember what it was exactly.

Here is the output

$ snap change 690
Status  Spawn               Ready               Summary
Done    today at 20:54 GMT  today at 20:55 GMT  Ensure prerequisites for "fakecam" are available
Undone  today at 20:54 GMT  today at 20:55 GMT  Download snap "fakecam" (104) from channel "stable"
Done    today at 20:54 GMT  today at 20:55 GMT  Fetch and check assertions for snap "fakecam" (104)
Undone  today at 20:54 GMT  today at 20:55 GMT  Mount snap "fakecam" (104)
Undone  today at 20:54 GMT  today at 20:55 GMT  Copy snap "fakecam" data
Undone  today at 20:54 GMT  today at 20:55 GMT  Setup snap "fakecam" (104) security profiles
Undone  today at 20:54 GMT  today at 20:55 GMT  Make snap "fakecam" (104) available to the system
Undone  today at 20:54 GMT  today at 20:55 GMT  Automatically connect eligible plugs and slots of snap "fakecam"
Undone  today at 20:54 GMT  today at 20:55 GMT  Set automatic aliases for snap "fakecam"
Undone  today at 20:54 GMT  today at 20:55 GMT  Setup snap "fakecam" aliases
Undone  today at 20:54 GMT  today at 20:55 GMT  Run install hook of "fakecam" snap if present
Undone  today at 20:54 GMT  today at 20:55 GMT  Start snap "fakecam" (104) services
Error   today at 20:54 GMT  today at 20:55 GMT  Run configure hook of "fakecam" snap if present
Hold    today at 20:54 GMT  today at 20:55 GMT  Run health check of "fakecam" snap
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:desktop-legacy to core:desktop-legacy
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:icon-themes to gtk-common-themes:icon-themes
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:wayland to core:wayland
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:gsettings to core:gsettings
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:network-bind to core:network-bind
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:sound-themes to gtk-common-themes:sound-themes
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:x11 to core:x11
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:gnome-3-28-1804 to gnome-3-28-1804:gnome-3-28-1804
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:opengl to core:opengl
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:desktop to core:desktop
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:gtk-3-themes to gtk-common-themes:gtk-3-themes
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:home to core:home
Undone  today at 20:54 GMT  today at 20:55 GMT  Connect fakecam:network to core:network
Undone  today at 20:54 GMT  today at 20:55 GMT  Setup snap "fakecam" (104) security profiles for auto-connections

......................................................................
Run configure hook of "fakecam" snap if present

2020-12-13T20:55:00Z ERROR run hook "configure": 
-----
/usr/share/fonts: caching, new cache contents: 0 fonts, 7 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 76 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/fonts-master: /usr/share/fonts/fonts-master: error scanning
/usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/opentype/cantarell: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-C: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-H: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-N: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-P: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-T: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/freefont: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/opentype/malayalam: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/opentype/noto: caching, new cache contents: 28 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 3 fonts, 53 dirs
/usr/share/fonts/truetype/Gargi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Gubbi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Nakula: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Navilu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Sahadeva: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Sarai: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ancient-scripts: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/dejavu: caching, new cache contents: 22 fonts, 0 dirs
/usr/share/fonts/truetype/droid: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-beng-extra: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-deva-extra: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-gujr-extra: caching, new cache contents: 5 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-guru-extra: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-kalapi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-orya-extra: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-telu-extra: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs
/usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lato: caching, new cache contents: 18 fonts, 0 dirs
/usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-kannada: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-malayalam: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-oriya: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-tamil-classical: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lyx: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/malayalam: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs
/usr/share/fonts/truetype/nanum: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/noto: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/pagul: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/samyak: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/samyak-fonts: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/takao-gothic: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-bitstream-vera: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-xfree86-nonfree: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/ubuntu: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/fonts/type1/texlive-fonts-recommended: caching, new cache contents: 0 fonts, 0 dirs
/usr/local/share/fonts: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/texmf/fonts/opentype/public/lm: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/lm-math: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/tex-gyre: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/tex-gyre-math: skipping, no such directory
/var/snap/fakecam/common/fontconfig: cleaning cache directory
/var/cache/fontconfig: not cleaning unwritable cache directory
/snap/fakecam/104/gnome-platform/usr/bin/fc-cache: failed
-----

and for 691 too

$ snap change 691
Status  Spawn               Ready               Summary
Done    today at 20:57 GMT  today at 20:58 GMT  Ensure prerequisites for "fakecam" are available
Undone  today at 20:57 GMT  today at 20:58 GMT  Download snap "fakecam" (104) from channel "stable"
Done    today at 20:57 GMT  today at 20:58 GMT  Fetch and check assertions for snap "fakecam" (104)
Undone  today at 20:57 GMT  today at 20:58 GMT  Mount snap "fakecam" (104)
Undone  today at 20:57 GMT  today at 20:58 GMT  Copy snap "fakecam" data
Undone  today at 20:57 GMT  today at 20:58 GMT  Setup snap "fakecam" (104) security profiles
Undone  today at 20:57 GMT  today at 20:58 GMT  Make snap "fakecam" (104) available to the system
Undone  today at 20:57 GMT  today at 20:58 GMT  Automatically connect eligible plugs and slots of snap "fakecam"
Undone  today at 20:57 GMT  today at 20:58 GMT  Set automatic aliases for snap "fakecam"
Undone  today at 20:57 GMT  today at 20:58 GMT  Setup snap "fakecam" aliases
Undone  today at 20:57 GMT  today at 20:58 GMT  Run install hook of "fakecam" snap if present
Undone  today at 20:57 GMT  today at 20:58 GMT  Start snap "fakecam" (104) services
Error   today at 20:57 GMT  today at 20:58 GMT  Run configure hook of "fakecam" snap if present
Hold    today at 20:57 GMT  today at 20:58 GMT  Run health check of "fakecam" snap
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:desktop to core:desktop
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:gsettings to core:gsettings
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:x11 to core:x11
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:desktop-legacy to core:desktop-legacy
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:opengl to core:opengl
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:gnome-3-28-1804 to gnome-3-28-1804:gnome-3-28-1804
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:network-bind to core:network-bind
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:sound-themes to gtk-common-themes:sound-themes
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:wayland to core:wayland
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:gtk-3-themes to gtk-common-themes:gtk-3-themes
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:home to core:home
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:icon-themes to gtk-common-themes:icon-themes
Undone  today at 20:57 GMT  today at 20:58 GMT  Connect fakecam:network to core:network
Undone  today at 20:57 GMT  today at 20:58 GMT  Setup snap "fakecam" (104) security profiles for auto-connections

......................................................................
Run configure hook of "fakecam" snap if present

2020-12-13T20:58:08Z ERROR run hook "configure": 
-----
/usr/share/fonts: caching, new cache contents: 0 fonts, 7 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 76 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/fonts-master: /usr/share/fonts/fonts-master: error scanning
/usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/opentype/cantarell: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-C: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-H: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-N: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-P: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-T: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/freefont: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/opentype/malayalam: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/opentype/noto: caching, new cache contents: 28 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 3 fonts, 53 dirs
/usr/share/fonts/truetype/Gargi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Gubbi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Nakula: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Navilu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Sahadeva: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Sarai: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ancient-scripts: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/dejavu: caching, new cache contents: 22 fonts, 0 dirs
/usr/share/fonts/truetype/droid: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-beng-extra: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-deva-extra: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-gujr-extra: caching, new cache contents: 5 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-guru-extra: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-kalapi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-orya-extra: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-telu-extra: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs
/usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lato: caching, new cache contents: 18 fonts, 0 dirs
/usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-kannada: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-malayalam: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-oriya: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-tamil-classical: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lyx: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/malayalam: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs
/usr/share/fonts/truetype/nanum: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/noto: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/pagul: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/samyak: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/samyak-fonts: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/takao-gothic: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-bitstream-vera: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-xfree86-nonfree: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/ubuntu: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/fonts/type1/texlive-fonts-recommended: caching, new cache contents: 0 fonts, 0 dirs
/usr/local/share/fonts: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/texmf/fonts/opentype/public/lm: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/lm-math: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/tex-gyre: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/tex-gyre-math: skipping, no such directory
/var/snap/fakecam/common/fontconfig: cleaning cache directory
/var/cache/fontconfig: not cleaning unwritable cache directory
/snap/fakecam/104/gnome-platform/usr/bin/fc-cache: failed
-----

Also pasting in the one related to the last opera refresh failure (i didnt even know snap did all this in the background)

$ snap change 689
Status  Spawn               Ready               Summary
Done    today at 19:20 GMT  today at 19:21 GMT  Ensure prerequisites for "opera" are available
Undone  today at 19:20 GMT  today at 19:21 GMT  Download snap "opera" (103) from channel "latest/stable"
Done    today at 19:20 GMT  today at 19:21 GMT  Fetch and check assertions for snap "opera" (103)
Undone  today at 19:20 GMT  today at 19:21 GMT  Mount snap "opera" (103)
Undone  today at 19:20 GMT  today at 19:21 GMT  Run pre-refresh hook of "opera" snap if present
Undone  today at 19:20 GMT  today at 19:21 GMT  Stop snap "opera" services
Undone  today at 19:20 GMT  today at 19:21 GMT  Remove aliases for snap "opera"
Undone  today at 19:20 GMT  today at 19:21 GMT  Make current revision for snap "opera" unavailable
Undone  today at 19:20 GMT  today at 19:21 GMT  Copy snap "opera" data
Undone  today at 19:20 GMT  today at 19:21 GMT  Setup snap "opera" (103) security profiles
Undone  today at 19:20 GMT  today at 19:21 GMT  Make snap "opera" (103) available to the system
Undone  today at 19:20 GMT  today at 19:21 GMT  Automatically connect eligible plugs and slots of snap "opera"
Undone  today at 19:20 GMT  today at 19:21 GMT  Set automatic aliases for snap "opera"
Undone  today at 19:20 GMT  today at 19:21 GMT  Setup snap "opera" aliases
Undone  today at 19:20 GMT  today at 19:21 GMT  Run post-refresh hook of "opera" snap if present
Undone  today at 19:20 GMT  today at 19:21 GMT  Start snap "opera" (103) services
Done    today at 19:20 GMT  today at 19:21 GMT  Clean up "opera" (103) install
Error   today at 19:20 GMT  today at 19:21 GMT  Run configure hook of "opera" snap if present
Hold    today at 19:20 GMT  today at 19:21 GMT  Run health check of "opera" snap
Done    today at 19:20 GMT  today at 19:21 GMT  Consider re-refresh of "opera"

......................................................................
Run configure hook of "opera" snap if present

2020-12-13T19:21:16Z ERROR run hook "configure": 
-----
/usr/share/fonts: caching, new cache contents: 0 fonts, 7 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 76 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/fonts-master: /usr/share/fonts/fonts-master: error scanning
/usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/opentype/cantarell: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-C: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-H: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-N: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-P: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/fonts-johnsmith-induni/IndUni-T: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/freefont: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/opentype/malayalam: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/opentype/noto: caching, new cache contents: 28 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 3 fonts, 53 dirs
/usr/share/fonts/truetype/Gargi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Gubbi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Nakula: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Navilu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Sahadeva: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Sarai: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ancient-scripts: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/dejavu: caching, new cache contents: 22 fonts, 0 dirs
/usr/share/fonts/truetype/droid: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-beng-extra: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-deva-extra: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-gujr-extra: caching, new cache contents: 5 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-guru-extra: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-kalapi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-orya-extra: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-telu-extra: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs
/usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lato: caching, new cache contents: 18 fonts, 0 dirs
/usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-kannada: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-malayalam: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-oriya: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-tamil-classical: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/lyx: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/malayalam: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs
/usr/share/fonts/truetype/nanum: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/noto: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/pagul: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/samyak: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/samyak-fonts: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/takao-gothic: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-bitstream-vera: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-xfree86-nonfree: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/ubuntu: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/fonts/type1/texlive-fonts-recommended: caching, new cache contents: 0 fonts, 0 dirs
/usr/local/share/fonts: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/texmf/fonts/opentype/public/lm: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/lm-math: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/tex-gyre: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/tex-gyre-math: skipping, no such directory
/var/snap/opera/common/fontconfig: cleaning cache directory
/var/cache/fontconfig: not cleaning unwritable cache directory
/snap/opera/103/gnome-platform/usr/bin/fc-cache: failed
-----

Thank you for looking at this and please let me know if the above shows anything interesting or any further info is needed

It looks like your Opera install failed the same way. That suggests it’s a wider problem, as I thought. I wonder if you’ve made any manual changes to your font (or fontconfig) configuration at all? Do you have any non-standard fonts installed?

  • FontsFree-Net-Proxima-Nova-Bold.otf
  • ProximaNovaRegular.ttf

They are under

/usr/local/share/fonts/FontsFree-Net-Proxima-Nova-Bold.otf
/usr/local/share/fonts/ProximaNovaRegular.ttf
/home/bizmate/.local/share/fonts/FontsFree-Net-Proxima-Nova-Bold.otf

Not sure how that would cause a problem when clearing the fonts cache.

I do not remember any other changes other than dropping these files in these folders so that apps like Gimp would pick them up

A similar problem was reported with chromium @ Default Chromium fonts are missing after snapd has been updated

What is the output of

ls -ld /var/cache/fontconfig

for me it looks like this:

drwxr-xr-x 2 root root 24576 Dec 14 16:25 /var/cache/fontconfig

As I saw the snap error I thought I would change the permissions on that folder so i chmod 777 but this made no difference. Currently the permissions are

$ ls -ld /var/cache/fontconfig
drwxrwxrwx 2 root root 307200 Dec 15 01:11 /var/cache/fontconfig

But I dont think this makes any difference at all. I dont know snap architecture or code to make informed comments but is I run sudo snap install something I would expect snap to have sudo/root rights and thus not fail if it had to edit some folders with root only permissions.

Anyhow let me know if I can try anything else

1 Like

So just posting another comment after a couple years almost but just to confirm that this problem has never gone away. I basically cannot install fakecam and any further effort on my side to understand what is wrong is failing.

Unfortunately now also ubuntu is going all the way in by trying to force the use of snap and this is causing unnecessary problems for me as other apps are failing too for no clear reason.

Are problems like this in this forum worth raising somewhere as bugs or will they not be looked at?

the message in the error that

/var/cache/fontconfig: not cleaning unwritable cache directory

is quite concerning given that the folder is world writable

1 Like

The lines below are a workaround. I keep the fonts that give headache to snap in a dedicated folder (/media/data/fonts/historic/, the actual font is downloadable from https://www.starobulglit.eu/OC10U.ttf). Clearly, the need to do this is an embarrassment to Canonical. This is the script I use to do snap-refresh:

#!/usr/bin/env bash

sudo rm /usr/share/fonts/historic

sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
fc-cache -r
sudo snap refresh

sudo ln -sf /media/data/fonts/historic/ /usr/share/fonts/historic