diff --git a/src/freedombone-app-scuttlebot b/src/freedombone-app-scuttlebot
index 7ef364de15650c8e91a527b7c9b963be9caf1c88..301b0c31eff8dedcbf50839647ca94ed5760d028 100755
--- a/src/freedombone-app-scuttlebot
+++ b/src/freedombone-app-scuttlebot
@@ -369,6 +369,9 @@ function mesh_install_scuttlebot {
 
     mesh_install_dat
 
+    # shellcheck disable=SC2086
+    chroot "$rootdir" $INSTALL_PACKAGES libsodium23
+
     get_npm_arch
     mesh_setup_npm
 
@@ -441,6 +444,8 @@ function install_scuttlebot {
     function_check install_nodejs
     install_nodejs scuttlebot
 
+    $INSTALL_PACKAGES libsodium23
+
     if [ ! -d /etc/scuttlebot ]; then
         mkdir -p /etc/scuttlebot
     fi
diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise
index e775c4b4eafaa32d0b652f6077505f897db181da..54890db27c9867ea7e6efbf71f09d656a4841923 100755
--- a/src/freedombone-image-customise
+++ b/src/freedombone-image-customise
@@ -621,6 +621,9 @@ install_patchwork() {
         return
     fi
 
+    # shellcheck disable=SC2086
+    chroot "$rootdir" $INSTALL_PACKAGES libsodium23
+
     get_npm_arch
     mesh_setup_npm