I have a dockerfile which installs snap with a commands:
# download snap installer version 9.0
RUN wget https://download.esa.int/step/snap/9.0/installers/esa-snap_sentinel_unix_9_0_0.sh
#change file execution rights for snap installer
RUN chmod +x esa-snap_sentinel_unix_9_0_0.sh
# install snap with gpt
RUN ./esa-snap_sentinel_unix_9_0_0.sh -q
# link gpt so it can be used systemwide
RUN ln -s /usr/local/snap/bin/gpt /usr/bin/gpt
# update SNAP
RUN snap --nosplash --nogui --modules --update-all
And all goes fine and I can use the docker with gpt without the last update part. But running the update fails with
Exception in thread "main" java.lang.Error: Probable fatal error:No fonts found.
at sun.font.SunFontManager.getDefaultPhysicalFont(SunFontManager.java:1236)
at sun.font.SunFontManager.initialiseDeferredFont(SunFontManager.java:1100)
at sun.font.SunFontManager.findOtherDeferredFont(SunFontManager.java:1037)
...
And it does not stop at that error, but then tries again forever.
Thanks, adding “fonts-dejavu fontconfig” to packages solved the particular error. Now, the update seems to succeed, but then it seems that the update is retrying, finding no updates, and just hangs in that state without completing?
`null
null
Updates not found.
updates=0`
So, killing the process, but now when I run
gpt --diag
I still get the snap version as 9.0.0. Trying to update some single package does not show any available updates so I assume it actually did the update.
My main confusion is that missing fonts will disturb program running, then this kind of problem should be detected already during the main installation, not just during the update?