UPDATE : I’ve removed the VPN app and tried to restore a backup but it failed, see logs.
<span class="alert-info">2025-07-08 08:13:37,451: INFO - Restauration de vpnclient…</span>
2025-07-08 08:13:37,495: DEBUG - Nothing to update in LDAP
2025-07-08 08:13:37,496: DEBUG - Permission 'vpnclient.main' mise à jour
2025-07-08 08:13:37,498: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250708-061337-permission_url-vpnclient" style="text-decoration :underline"> Mise à jour de l'URL associée à l'autorisation 'vpnclient' </a>'
2025-07-08 08:13:37,506: DEBUG - Nothing to update in LDAP
2025-07-08 08:13:37,508: DEBUG - Permission 'vpnclient.main' créée
2025-07-08 08:13:37,508: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250708-061337-permission_create-vpnclient" style="text-decoration :underline"> Créer permission 'vpnclient' </a>'
2025-07-08 08:13:37,517: DEBUG - The permission database has been resynchronized
2025-07-08 08:13:37,547: DEBUG - La configuration de SSOwat a été regénérée
2025-07-08 08:13:37,559: DEBUG - Chargement de la migration 0030_rebuild_python_venv_in_bookworm…
2025-07-08 08:13:37,561: DEBUG - Chargement de la migration 0027_migrate_to_bookworm…
2025-07-08 08:13:37,562: DEBUG - Chargement de la migration 0031_terms_of_services…
2025-07-08 08:13:37,562: DEBUG - Chargement de la migration 0028_delete_legacy_xmpp_permission…
2025-07-08 08:13:37,563: DEBUG - Chargement de la migration 0029_postgresql_13_to_15…
2025-07-08 08:13:37,578: DEBUG - Exécution du script de restauration de l'application 'vpnclient'…
<span class="alert-info">2025-07-08 08:13:37,589: INFO - Provisioning system_user...</span>
<span class="alert-info">2025-07-08 08:13:37,722: INFO - Provisioning permissions...</span>
2025-07-08 08:13:37,736: DEBUG - Nothing to update in LDAP
2025-07-08 08:13:37,737: DEBUG - Permission 'vpnclient.main' mise à jour
2025-07-08 08:13:37,738: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250708-061337-user_permission_update-vpnclient" style="text-decoration :underline"> Mise à jour des accès pour la permission 'vpnclient' </a>'
2025-07-08 08:13:37,750: DEBUG - Nothing to update in LDAP
2025-07-08 08:13:37,750: DEBUG - Permission 'vpnclient.main' mise à jour
2025-07-08 08:13:37,752: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20250708-061337-permission_url-vpnclient" style="text-decoration :underline"> Mise à jour de l'URL associée à l'autorisation 'vpnclient' </a>'
2025-07-08 08:13:37,760: DEBUG - The permission database has been resynchronized
2025-07-08 08:13:37,790: DEBUG - La configuration de SSOwat a été regénérée
<span class="alert-info">2025-07-08 08:13:37,799: INFO - Provisioning apt...</span>
2025-07-08 08:13:37,810: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt" 7>&1']'
2025-07-08 08:13:37,816: DEBUG - + source /usr/share/yunohost/helpers
2025-07-08 08:13:37,817: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-07-08 08:13:37,818: DEBUG - +++ cd -- /usr/share/yunohost
2025-07-08 08:13:37,818: DEBUG - +++ pwd
2025-07-08 08:13:37,819: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-07-08 08:13:37,819: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-07-08 08:13:37,821: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-07-08 08:13:37,821: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-07-08 08:13:37,843: DEBUG - + ynh_abort_if_errors
2025-07-08 08:13:37,844: DEBUG - + trap ynh_exit_properly EXIT
2025-07-08 08:13:37,844: DEBUG - + ynh_apt_install_dependencies sipcalc dnsutils openvpn curl fake-hwclock
2025-07-08 08:13:37,845: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2025-07-08 08:13:37,845: DEBUG - ++ sed 's/|/ | /'
2025-07-08 08:13:37,847: DEBUG - + local 'dependencies=sipcalc, dnsutils, openvpn, curl, fake-hwclock'
2025-07-08 08:13:37,848: DEBUG - ++ ynh_read_manifest version
2025-07-08 08:13:37,848: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_4sjlxoew/manifest.toml
2025-07-08 08:13:37,849: DEBUG - ++ toml_to_json
2025-07-08 08:13:37,849: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-07-08 08:13:37,849: DEBUG - ++ jq .version --raw-output
2025-07-08 08:13:37,915: DEBUG - + local version=2.3~ynh4
2025-07-08 08:13:37,915: DEBUG - + local app_ynh_deps=vpnclient-ynh-deps
2025-07-08 08:13:37,915: DEBUG - + grep '[<=>]'
2025-07-08 08:13:37,918: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2025-07-08 08:13:37,919: DEBUG - ++ sort -u
2025-07-08 08:13:37,920: DEBUG - + local specific_php_version=
2025-07-08 08:13:37,921: DEBUG - + grep --quiet php
2025-07-08 08:13:37,924: DEBUG - ++ _ynh_apt_package_is_installed postgresql-15
2025-07-08 08:13:37,925: DEBUG - ++ local package=postgresql-15
2025-07-08 08:13:37,925: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-15
2025-07-08 08:13:37,925: DEBUG - ++ grep --quiet '^installed$'
2025-07-08 08:13:37,947: DEBUG - ++ echo yes
2025-07-08 08:13:37,947: DEBUG - + local psql_installed=yes
2025-07-08 08:13:37,947: DEBUG - + [[ true == \t\r\u\e ]]
2025-07-08 08:13:37,947: DEBUG - + YNH_APT_INSTALL_DEPENDENCIES_REPLACE=false
2025-07-08 08:13:37,948: DEBUG - ++ mktemp --directory
2025-07-08 08:13:37,949: DEBUG - + local TMPDIR=/tmp/tmp.rGMaBgShiP
2025-07-08 08:13:37,949: DEBUG - + mkdir -p /tmp/tmp.rGMaBgShiP/vpnclient-ynh-deps/DEBIAN
2025-07-08 08:13:37,951: DEBUG - + chmod -R 755 /tmp/tmp.rGMaBgShiP/vpnclient-ynh-deps
2025-07-08 08:13:37,953: DEBUG - + cat
2025-07-08 08:13:37,954: DEBUG - + _ynh_apt update
2025-07-08 08:13:37,955: DEBUG - + _ynh_wait_dpkg_free
2025-07-08 08:13:38,161: DEBUG - + return 0
2025-07-08 08:13:38,162: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2025-07-08 08:14:08,337: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm InRelease
2025-07-08 08:14:08,338: DEBUG - Ign:2 http://forge.yunohost.org/debian bookworm InRelease
2025-07-08 08:14:08,338: DEBUG - Ign:3 https://packages.sury.org/php bookworm InRelease
2025-07-08 08:14:08,338: DEBUG - Ign:4 http://security.debian.org/debian-security bookworm-security InRelease
2025-07-08 08:14:08,339: DEBUG - Ign:5 https://dl.yarnpkg.com/debian stable InRelease
2025-07-08 08:14:38,365: DEBUG - Ign:6 http://ftp.debian.org/debian bookworm-updates InRelease
2025-07-08 08:14:39,360: DEBUG - Ign:2 http://forge.yunohost.org/debian bookworm InRelease
2025-07-08 08:14:39,361: DEBUG - Ign:4 http://security.debian.org/debian-security bookworm-security InRelease
2025-07-08 08:14:39,364: DEBUG - Ign:3 https://packages.sury.org/php bookworm InRelease
2025-07-08 08:14:39,365: DEBUG - Ign:5 https://dl.yarnpkg.com/debian stable InRelease
2025-07-08 08:15:08,399: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm InRelease
2025-07-08 08:15:11,393: DEBUG - Ign:2 http://forge.yunohost.org/debian bookworm InRelease
2025-07-08 08:15:11,393: DEBUG - Ign:4 http://security.debian.org/debian-security bookworm-security InRelease
2025-07-08 08:15:11,394: DEBUG - Ign:3 https://packages.sury.org/php bookworm InRelease
2025-07-08 08:15:11,395: DEBUG - Ign:5 https://dl.yarnpkg.com/debian stable InRelease
2025-07-08 08:15:38,431: DEBUG - Ign:6 http://ftp.debian.org/debian bookworm-updates InRelease
2025-07-08 08:15:45,427: DEBUG - Err:2 http://forge.yunohost.org/debian bookworm InRelease
2025-07-08 08:15:45,428: DEBUG - Temporary failure resolving 'forge.yunohost.org'
2025-07-08 08:15:45,428: DEBUG - Err:4 http://security.debian.org/debian-security bookworm-security InRelease
2025-07-08 08:15:45,428: DEBUG - Temporary failure resolving 'security.debian.org'
2025-07-08 08:15:45,429: DEBUG - Err:5 https://dl.yarnpkg.com/debian stable InRelease
2025-07-08 08:15:45,429: DEBUG - Temporary failure resolving 'dl.yarnpkg.com'
2025-07-08 08:15:45,429: DEBUG - Err:3 https://packages.sury.org/php bookworm InRelease
2025-07-08 08:15:45,430: DEBUG - Temporary failure resolving 'packages.sury.org'
2025-07-08 08:16:08,463: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm InRelease
2025-07-08 08:16:38,496: DEBUG - Ign:6 http://ftp.debian.org/debian bookworm-updates InRelease
2025-07-08 08:17:08,530: DEBUG - Err:1 http://ftp.debian.org/debian bookworm InRelease
2025-07-08 08:17:08,531: DEBUG - Temporary failure resolving 'ftp.debian.org'
2025-07-08 08:17:38,558: DEBUG - Err:6 http://ftp.debian.org/debian bookworm-updates InRelease
2025-07-08 08:17:38,560: DEBUG - Temporary failure resolving 'ftp.debian.org'
2025-07-08 08:17:39,888: DEBUG - Reading package lists...
<span class="alert-warning">2025-07-08 08:17:39,905: WARNING - W: Failed to fetch http://ftp.debian.org/debian/dists/bookworm/InRelease Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:17:39,908: WARNING - W: Failed to fetch http://forge.yunohost.org/debian/dists/bookworm/InRelease Temporary failure resolving 'forge.yunohost.org'</span>
<span class="alert-warning">2025-07-08 08:17:39,911: WARNING - W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease Temporary failure resolving 'security.debian.org'</span>
<span class="alert-warning">2025-07-08 08:17:39,913: WARNING - W: Failed to fetch http://ftp.debian.org/debian/dists/bookworm-updates/InRelease Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:17:39,916: WARNING - W: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease Temporary failure resolving 'packages.sury.org'</span>
<span class="alert-warning">2025-07-08 08:17:39,919: WARNING - W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease Temporary failure resolving 'dl.yarnpkg.com'</span>
<span class="alert-warning">2025-07-08 08:17:39,922: WARNING - W: Some index files failed to download. They have been ignored, or old ones used instead.</span>
2025-07-08 08:17:39,924: DEBUG - + _ynh_wait_dpkg_free
2025-07-08 08:17:40,097: DEBUG - + return 0
2025-07-08 08:17:40,097: DEBUG - + dpkg-deb --build /tmp/tmp.rGMaBgShiP/vpnclient-ynh-deps /tmp/tmp.rGMaBgShiP/vpnclient-ynh-deps.deb
2025-07-08 08:17:40,127: DEBUG - + dpkg --force-depends --install /tmp/tmp.rGMaBgShiP/vpnclient-ynh-deps.deb
2025-07-08 08:17:40,127: DEBUG - + tee /tmp/tmp.rGMaBgShiP/dpkg_log
2025-07-08 08:17:40,196: DEBUG - Selecting previously unselected package vpnclient-ynh-deps.
2025-07-08 08:17:40,546: DEBUG - (Reading database ... 83640 files and directories currently installed.)
2025-07-08 08:17:40,550: DEBUG - Preparing to unpack .../vpnclient-ynh-deps.deb ...
2025-07-08 08:17:40,555: DEBUG - Unpacking vpnclient-ynh-deps (2.3~ynh4) ...
2025-07-08 08:17:40,587: DEBUG - dpkg: vpnclient-ynh-deps: dependency problems, but configuring anyway as you requested:
2025-07-08 08:17:40,587: DEBUG - vpnclient-ynh-deps depends on openvpn; however:
2025-07-08 08:17:40,587: DEBUG - Package openvpn is not installed.
2025-07-08 08:17:40,587: DEBUG -
2025-07-08 08:17:40,588: DEBUG - Setting up vpnclient-ynh-deps (2.3~ynh4) ...
2025-07-08 08:17:40,619: DEBUG - + _ynh_apt_install --fix-broken
2025-07-08 08:17:40,620: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-07-08 08:17:40,620: DEBUG - + _ynh_wait_dpkg_free
2025-07-08 08:17:40,812: DEBUG - + return 0
2025-07-08 08:17:40,813: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-07-08 08:17:41,157: DEBUG - Reading package lists...
2025-07-08 08:17:41,430: DEBUG - Building dependency tree...
2025-07-08 08:17:41,432: DEBUG - Reading state information...
2025-07-08 08:17:41,542: DEBUG - Correcting dependencies... Done
2025-07-08 08:17:41,820: DEBUG - The following additional packages will be installed:
2025-07-08 08:17:41,822: DEBUG - easy-rsa libpkcs11-helper1 opensc opensc-pkcs11 openvpn
2025-07-08 08:17:41,824: DEBUG - Suggested packages:
2025-07-08 08:17:41,825: DEBUG - openvpn-dco-dkms openvpn-systemd-resolved
2025-07-08 08:17:41,861: DEBUG - The following NEW packages will be installed:
2025-07-08 08:17:41,863: DEBUG - easy-rsa libpkcs11-helper1 opensc opensc-pkcs11 openvpn
2025-07-08 08:18:11,924: DEBUG - 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
2025-07-08 08:18:11,925: DEBUG - Need to get 1395 kB/2047 kB of archives.
2025-07-08 08:18:11,925: DEBUG - After this operation, 6821 kB of additional disk space will be used.
2025-07-08 08:18:11,926: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm/main amd64 easy-rsa all 3.1.0-1
2025-07-08 08:18:41,950: DEBUG - Ign:2 http://ftp.debian.org/debian bookworm/main amd64 libpkcs11-helper1 amd64 1.29.0-1
2025-07-08 08:19:11,980: DEBUG - Ign:3 http://ftp.debian.org/debian bookworm/main amd64 opensc-pkcs11 amd64 0.23.0-0.3+deb12u2
2025-07-08 08:19:42,011: DEBUG - Ign:4 http://ftp.debian.org/debian bookworm/main amd64 opensc amd64 0.23.0-0.3+deb12u2
2025-07-08 08:20:12,038: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm/main amd64 easy-rsa all 3.1.0-1
2025-07-08 08:20:42,071: DEBUG - Ign:2 http://ftp.debian.org/debian bookworm/main amd64 libpkcs11-helper1 amd64 1.29.0-1
2025-07-08 08:21:12,100: DEBUG - Ign:3 http://ftp.debian.org/debian bookworm/main amd64 opensc-pkcs11 amd64 0.23.0-0.3+deb12u2
2025-07-08 08:21:42,130: DEBUG - Ign:4 http://ftp.debian.org/debian bookworm/main amd64 opensc amd64 0.23.0-0.3+deb12u2
2025-07-08 08:22:12,161: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm/main amd64 easy-rsa all 3.1.0-1
2025-07-08 08:22:42,185: DEBUG - Ign:2 http://ftp.debian.org/debian bookworm/main amd64 libpkcs11-helper1 amd64 1.29.0-1
2025-07-08 08:23:12,213: DEBUG - Ign:3 http://ftp.debian.org/debian bookworm/main amd64 opensc-pkcs11 amd64 0.23.0-0.3+deb12u2
2025-07-08 08:23:42,246: DEBUG - Ign:4 http://ftp.debian.org/debian bookworm/main amd64 opensc amd64 0.23.0-0.3+deb12u2
2025-07-08 08:24:12,279: DEBUG - Err:1 http://ftp.debian.org/debian bookworm/main amd64 easy-rsa all 3.1.0-1
2025-07-08 08:24:12,280: DEBUG - Temporary failure resolving 'ftp.debian.org'
2025-07-08 08:24:42,302: DEBUG - Err:2 http://ftp.debian.org/debian bookworm/main amd64 libpkcs11-helper1 amd64 1.29.0-1
2025-07-08 08:24:42,303: DEBUG - Temporary failure resolving 'ftp.debian.org'
2025-07-08 08:25:12,335: DEBUG - Err:3 http://ftp.debian.org/debian bookworm/main amd64 opensc-pkcs11 amd64 0.23.0-0.3+deb12u2
2025-07-08 08:25:12,336: DEBUG - Temporary failure resolving 'ftp.debian.org'
2025-07-08 08:25:42,365: DEBUG - Err:4 http://ftp.debian.org/debian bookworm/main amd64 opensc amd64 0.23.0-0.3+deb12u2
2025-07-08 08:25:42,366: DEBUG - Temporary failure resolving 'ftp.debian.org'
<span class="alert-warning">2025-07-08 08:25:42,371: WARNING - E: Failed to fetch http://ftp.debian.org/debian/pool/main/e/easy-rsa/easy-rsa_3.1.0-1_all.deb Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:25:42,376: WARNING - E: Failed to fetch http://ftp.debian.org/debian/pool/main/p/pkcs11-helper/libpkcs11-helper1_1.29.0-1_amd64.deb Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:25:42,380: WARNING - E: Failed to fetch http://ftp.debian.org/debian/pool/main/o/opensc/opensc-pkcs11_0.23.0-0.3%2bdeb12u2_amd64.deb Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:25:42,383: WARNING - E: Failed to fetch http://ftp.debian.org/debian/pool/main/o/opensc/opensc_0.23.0-0.3%2bdeb12u2_amd64.deb Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:25:42,386: WARNING - E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?</span>
2025-07-08 08:25:42,389: DEBUG - + cat /tmp/tmp.rGMaBgShiP/dpkg_log
2025-07-08 08:25:42,389: DEBUG - Selecting previously unselected package vpnclient-ynh-deps.
2025-07-08 08:25:42,389: DEBUG - (Reading database ... 83640 files and directories currently installed.)
2025-07-08 08:25:42,389: DEBUG - Preparing to unpack .../vpnclient-ynh-deps.deb ...
2025-07-08 08:25:42,390: DEBUG - Unpacking vpnclient-ynh-deps (2.3~ynh4) ...
2025-07-08 08:25:42,390: DEBUG - dpkg: vpnclient-ynh-deps: dependency problems, but configuring anyway as you requested:
2025-07-08 08:25:42,390: DEBUG - vpnclient-ynh-deps depends on openvpn; however:
2025-07-08 08:25:42,390: DEBUG - Package openvpn is not installed.
2025-07-08 08:25:42,390: DEBUG -
2025-07-08 08:25:42,390: DEBUG - Setting up vpnclient-ynh-deps (2.3~ynh4) ...
2025-07-08 08:25:42,390: DEBUG - ++ grep -oP '(?<=-ynh-deps depends on ).*(?=; however)' /tmp/tmp.rGMaBgShiP/dpkg_log
2025-07-08 08:25:42,391: DEBUG - ++ tr '\n' ' '
2025-07-08 08:25:42,391: DEBUG - + local 'problematic_dependencies=openvpn '
2025-07-08 08:25:42,391: DEBUG - + [[ -n openvpn ]]
2025-07-08 08:25:42,391: DEBUG - + _ynh_apt_install openvpn --dry-run
2025-07-08 08:25:42,391: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install openvpn --dry-run
2025-07-08 08:25:42,391: DEBUG - + sed --quiet '/Reading state info/,$p'
2025-07-08 08:25:42,391: DEBUG - + _ynh_wait_dpkg_free
2025-07-08 08:25:42,392: DEBUG - + grep -v 'fix-broken\|Reading state info'
2025-07-08 08:25:42,572: DEBUG - + return 0
2025-07-08 08:25:42,573: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install openvpn --dry-run
<span class="alert-warning">2025-07-08 08:25:43,123: WARNING - The following packages have unmet dependencies:</span>
<span class="alert-warning">2025-07-08 08:25:43,126: WARNING - openvpn : Depends: libpkcs11-helper1 (>= 1.28) but it is not going to be installed</span>
<span class="alert-warning">2025-07-08 08:25:43,129: WARNING - Recommends: easy-rsa but it is not going to be installed</span>
2025-07-08 08:25:43,132: DEBUG - + ynh_die 'Unable to install apt dependencies'
<span class="alert-warning">2025-07-08 08:25:43,207: WARNING - Unable to install apt dependencies</span>
<span class="alert-danger">2025-07-08 08:25:43,714: ERROR - provision_or_update failed for apt : An error occured inside the script snippet : Unable to install apt dependencies</span>
UPDATE 2 : looks like openvpn has been removed with vpnclient app, and now it is needed for backup restore. But I cannot reinstall it because my server isn’t connected to internet due to the vpn failure O.o