Ld.so error when executing hugo on ubuntu-derived linux host (snap install)

I’ve installed hugo via snap on my PoPOS box (Ubuntu derivate). Hugo seems to work, but whenever I run the binary, the following error message is shown:

jerry@eniac:~$ hugo version
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (failed to map segment from shared object): ignored.
ERROR: ld.so: object '/usr/local/lib/AppProtection/libAppProtection.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
hugo v0.145.0-666444f0a52132f9fec9f71cf25b441cc6a4f355+extended linux/amd64 BuildDate=2025-02-26T15:41:25Z VendorInfo=snap:0.145.0

This happens with the default channel as well as latest/edge. Wondering if an issue on Github is waranted?

I cannot reproduce the problem with a virgin system built from pop-os_22.04_amd64_intel_51.iso.

sudo apt update
sudo apt install snapd
sudo snap install hugo

I created a new site, added a theme, added some some content, then tested both hugo and hugo server. No warnings, no error messages.

You might spend some time searching the Snapcraft forum for “ERROR: ld.so” and similar.

1 Like

Joe,

thank you for looking into this. I also tried on a different machine with a very similar installation (installed from the same ISO, but in the meantime different programs have been installed). Running hugo does not produce the same errors there, either. So I’ll try to see if I can find a solution on the snapcraft forum. Thanks for the pointer.

1 Like