The following diff seems to solve the issue. But it is still unclear to
me why snapd wouldn't be taking care of setting LD_LIBRARY_PATH.

diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 97fa8fd4..c19ce53c 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -46,6 +46,8 @@ apps:
   daemon:
     daemon: forking
     command: bin/keepalived-wrapper
+    environment:
+      LD_LIBRARY_PATH: "$SNAP/usr/lib/$SNAP_ARCH-linux-gnu"
   keepalived:
     command: bin/keepalived-wrapper
   "519":        # First post Linux 5.18 version - Ubuntu 22.10

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2103599

Title:
  Snap installation fails though library dependencies are in snap

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2103599/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to