Scripts failing in the update

Hi again, now when i try to update yunohost and yunohost-admin the scripts fail without explanation…

Previously i had some Problems with Git that were resolved… WHat can i do to reinstall ?

Linux YunoHost 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
admin@YunoHost:~$ sudo apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages have been kept back:
metronome
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up yunohost (2.7.7) …
Regenerating configuration, this might take a while…
Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/12-metr
Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/15-ngin
Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/43-dnsm
Warning: The configuration file ‘/etc/nsswitch.conf’ has been manually modif
Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/28-rmil
Launching migrations…
Error: Operation interrupted
dpkg: error processing package yunohost (–configure):
subprocess installed post-installation script returned error exit status 4
dpkg: dependency problems prevent configuration of yunohost-admin:
yunohost-admin depends on yunohost (>= 2.7.6); however:
Package yunohost is not configured yet.

dpkg: error processing package yunohost-admin (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
yunohost
yunohost-admin
E: Sub-process /usr/bin/dpkg returned an error code (1)
admin@YunoHost:~$
, tu peux également copier un diagnostique: Webadmin > Outils -> Diagnostique

Hmok, that looks weird…

Can you try and give the output of : yunohost service regen-conf --verbose ?

Sure:

admin@YunoHost:~$ yunohost service regen-conf --verbose
Error: yunohost command must be run as root or with sudo.
admin@YunoHost:~$ sudo yunohost service regen-conf --verbose
Executing script ‘/usr/share/yunohost/hooks/conf_regen/01-yunohost’…

  • set -e
  • services_path=/etc/yunohost/services.yml
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/yunohost
  • pending_dir=/home/yunohost.conf/pending/yunohost
  • cd /usr/share/yunohost/templates/yunohost
  • [[ -f /etc/yunohost/services.yml ]]
  • tmp_services_path=/etc/yunohost/services.yml-tmp
  • new_services_path=/etc/yunohost/services.yml-new
  • sudo cp /etc/yunohost/services.yml /etc/yunohost/services.yml-tmp
  • _update_services /etc/yunohost/services.yml-new
  • sudo python2 -
    update ‘nsswitch’ service
  • [[ -f /etc/yunohost/services.yml-new ]]
  • sudo mv /etc/yunohost/services.yml-new /etc/yunohost/services.yml
  • sudo mv /etc/yunohost/services.yml-tmp /etc/yunohost/services.yml-old
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/02-ssl’…
  • set -e
  • ssl_dir=/usr/share/yunohost/yunohost-config/ssl/yunoCA
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/ssl
  • pending_dir=/home/yunohost.conf/pending/ssl
  • cd /usr/share/yunohost/templates/ssl
  • install -D -m 644 openssl.cnf /home/yunohost.conf/pending/ssl//usr/share/yunohost/yunohost-config/ssl/yunoCA/openssl.cnf
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/03-ssh’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/ssh
  • pending_dir=/home/yunohost.conf/pending/ssh
  • cd /usr/share/yunohost/templates/ssh
  • [[ ! -f /etc/yunohost/from_script ]]
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/06-slapd’…
  • set -e
  • tmp_backup_dir_file=/tmp/slapd-backup-dir.txt
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/slapd
  • pending_dir=/home/yunohost.conf/pending/slapd
  • cd /usr/share/yunohost/templates/slapd
  • ldap_dir=/home/yunohost.conf/pending/slapd/etc/ldap
  • schema_dir=/home/yunohost.conf/pending/slapd/etc/ldap/schema
  • mkdir -p /home/yunohost.conf/pending/slapd/etc/ldap /home/yunohost.conf/pending/slapd/etc/ldap/schema
  • ‘[’ ‘!’ -f /etc/ldap/slapd-yuno.conf ‘]’
  • sudo rm -f /tmp/slapd-backup-dir.txt
    ++ grep ‘^database’ /etc/ldap/slapd.conf
    ++ awk ‘{print $2}’
  • curr_backend=mdb
    ++ grep ‘^database’ slapd.conf
    ++ awk ‘{print $2}’
  • new_backend=mdb
  • [[ -n mdb ]]
  • [[ mdb != \m\d\b ]]
  • cp -a ldap.conf slapd.conf /home/yunohost.conf/pending/slapd/etc/ldap
  • cp -a sudo.schema mailserver.schema /home/yunohost.conf/pending/slapd/etc/ldap/schema
  • install -D -m 644 slapd.default /home/yunohost.conf/pending/slapd/etc/default/slapd
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/09-nslcd’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/nslcd
  • pending_dir=/home/yunohost.conf/pending/nslcd
  • cd /usr/share/yunohost/templates/nslcd
  • install -D -m 644 nslcd.conf /home/yunohost.conf/pending/nslcd/etc/nslcd.conf
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/12-metronome’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/metronome
  • pending_dir=/home/yunohost.conf/pending/metronome
  • cd /usr/share/yunohost/templates/metronome
  • metronome_dir=/home/yunohost.conf/pending/metronome/etc/metronome
  • metronome_conf_dir=/home/yunohost.conf/pending/metronome/etc/metronome/conf.d
  • mkdir -p /home/yunohost.conf/pending/metronome/etc/metronome/conf.d
    ++ cat /etc/yunohost/current_host
  • main_domain=listening.nohost.me
    ++ sudo yunohost domain list --output-as plain --quiet
  • domain_list=
    Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/12-metronome
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/15-nginx’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/nginx
  • pending_dir=/home/yunohost.conf/pending/nginx
  • cd /usr/share/yunohost/templates/nginx
  • nginx_dir=/home/yunohost.conf/pending/nginx/etc/nginx
  • nginx_conf_dir=/home/yunohost.conf/pending/nginx/etc/nginx/conf.d
  • mkdir -p /home/yunohost.conf/pending/nginx/etc/nginx/conf.d
  • cp plain/global.conf plain/ssowat.conf plain/yunohost_admin.conf plain/yunohost_admin.conf.inc plain/yunohost_api.conf.inc plai
    n/yunohost_panel.conf.inc /home/yunohost.conf/pending/nginx/etc/nginx/conf.d
  • [[ -z /home/yunohost.conf/pending/nginx ]]
    ++ cat /etc/yunohost/current_host
  • main_domain=listening.nohost.me
    ++ sudo yunohost domain list --output-as plain --quiet
  • domain_list=
    Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/15-nginx
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/19-postfix’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/postfix
  • pending_dir=/home/yunohost.conf/pending/postfix
  • cd /usr/share/yunohost/templates/postfix
  • postfix_dir=/home/yunohost.conf/pending/postfix/etc/postfix
  • mkdir -p /home/yunohost.conf/pending/postfix/etc/postfix
  • cp plain/header_checks plain/ldap-accounts.cf plain/ldap-aliases.cf plain/ldap-domains.cf plain/master.cf plain/sender_canonica
    l plain/smtp_reply_filter /home/yunohost.conf/pending/postfix/etc/postfix
    ++ cat /etc/yunohost/current_host
  • main_domain=listening.nohost.me
  • cat main.cf
  • sed ‘s/{{ main_domain }}/listening.nohost.me/g’
  • ‘[’ ‘!’ -f /proc/net/if_inet6 ‘]’
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/25-dovecot’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/dovecot
  • pending_dir=/home/yunohost.conf/pending/dovecot
  • cd /usr/share/yunohost/templates/dovecot
  • dovecot_dir=/home/yunohost.conf/pending/dovecot/etc/dovecot
  • mkdir -p /home/yunohost.conf/pending/dovecot/etc/dovecot/global_script
  • cp dovecot-ldap.conf /home/yunohost.conf/pending/dovecot/etc/dovecot/dovecot-ldap.conf
  • cp dovecot.sieve /home/yunohost.conf/pending/dovecot/etc/dovecot/global_script/dovecot.sieve
    ++ cat /etc/yunohost/current_host
  • main_domain=listening.nohost.me
  • cat dovecot.conf
  • sed ‘s/{{ main_domain }}/listening.nohost.me/g’
  • ‘[’ ‘!’ -f /proc/net/if_inet6 ‘]’
  • mkdir -p /home/yunohost.conf/pending/dovecot/etc/dovecot/yunohost.d
  • cp pre-ext.conf /home/yunohost.conf/pending/dovecot/etc/dovecot/yunohost.d
  • cp post-ext.conf /home/yunohost.conf/pending/dovecot/etc/dovecot/yunohost.d
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/28-rmilter’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/rmilter
  • pending_dir=/home/yunohost.conf/pending/rmilter
  • cd /usr/share/yunohost/templates/rmilter
  • install -D -m 644 rmilter.conf /home/yunohost.conf/pending/rmilter/etc/rmilter.conf
  • install -D -m 644 ynh_dkim.conf /home/yunohost.conf/pending/rmilter/etc/rmilter.conf.d/ynh_dkim.conf
  • install -D -m 644 /dev/null /home/yunohost.conf/pending/rmilter/etc/systemd/system/rmilter.socket
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/31-rspamd’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/rspamd
  • pending_dir=/home/yunohost.conf/pending/rspamd
  • cd /usr/share/yunohost/templates/rspamd
  • install -D -m 644 metrics.local.conf /home/yunohost.conf/pending/rspamd/etc/rspamd/local.d/metrics.conf
  • install -D -m 644 rspamd.sieve /home/yunohost.conf/pending/rspamd/etc/dovecot/global_script/rspamd.sieve
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/34-mysql’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/mysql
  • pending_dir=/home/yunohost.conf/pending/mysql
  • cd /usr/share/yunohost/templates/mysql
  • install -D -m 644 my.cnf /home/yunohost.conf/pending/mysql/etc/mysql/my.cnf
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/37-avahi-daemon’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/avahi-daemon
  • pending_dir=/home/yunohost.conf/pending/avahi-daemon
  • cd /usr/share/yunohost/templates/avahi-daemon
  • install -D -m 644 avahi-daemon.conf /home/yunohost.conf/pending/avahi-daemon/etc/avahi/avahi-daemon.conf
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/40-glances’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/glances
  • pending_dir=/home/yunohost.conf/pending/glances
  • cd /usr/share/yunohost/templates/glances
  • install -D -m 644 glances.default /home/yunohost.conf/pending/glances/etc/default/glances
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/43-dnsmasq’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/dnsmasq
  • pending_dir=/home/yunohost.conf/pending/dnsmasq
  • . /usr/share/yunohost/helpers.d/ip
  • cd /usr/share/yunohost/templates/dnsmasq
  • dnsmasq_dir=/home/yunohost.conf/pending/dnsmasq/etc/dnsmasq.d
  • mkdir -p /home/yunohost.conf/pending/dnsmasq/etc/dnsmasq.d
  • etcdefault_dir=/home/yunohost.conf/pending/dnsmasq/etc/default
  • mkdir -p /home/yunohost.conf/pending/dnsmasq/etc/default
  • cp plain/etcdefault /home/yunohost.conf/pending/dnsmasq/etc/default/dnsmasq
  • cp plain/dnsmasq.conf /home/yunohost.conf/pending/dnsmasq/etc/dnsmasq.conf
  • cat plain/resolv.dnsmasq.conf
  • grep ‘^nameserver’
  • shuf
    ++ curl -s -4 https://ip.yunohost.org
  • ipv4=189.146.100.77
  • ynh_validate_ip4 189.146.100.77
  • ynh_validate_ip 4 189.146.100.77
  • local IP_ADDRESS_FAMILY=4
  • local IP_ADDRESS=189.146.100.77
  • ‘[’ 4 == 4 ‘]’
  • python /dev/stdin
    ++ curl -s -6 https://ip6.yunohost.org
    ++ true
  • ipv6=
  • ynh_validate_ip6 ‘’
  • ynh_validate_ip 6
  • local IP_ADDRESS_FAMILY=6
  • local IP_ADDRESS=
  • ‘[’ 6 == 4 ‘]’
  • ‘[’ 6 == 6 ‘]’
  • python /dev/stdin
  • ipv6=
    ++ sudo yunohost domain list --output-as plain --quiet
  • domain_list=
    Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/43-dnsmasq
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/46-nsswitch’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/nsswitch
  • pending_dir=/home/yunohost.conf/pending/nsswitch
  • cd /usr/share/yunohost/templates/nsswitch
  • install -D -m 644 nsswitch.conf /home/yunohost.conf/pending/nsswitch/etc/nsswitch.conf
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/52-fail2ban’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_pre_regen /home/yunohost.conf/pending/fail2ban
  • pending_dir=/home/yunohost.conf/pending/fail2ban
  • cd /usr/share/yunohost/templates/fail2ban
  • fail2ban_dir=/home/yunohost.conf/pending/fail2ban/etc/fail2ban
  • mkdir -p /home/yunohost.conf/pending/fail2ban/etc/fail2ban/filter.d
  • cp yunohost.conf /home/yunohost.conf/pending/fail2ban/etc/fail2ban/filter.d/yunohost.conf
  • cp jail.conf /home/yunohost.conf/pending/fail2ban/etc/fail2ban/jail.conf
  • exit 0
    Applying pending configuration for service ‘glances’…
    The configuration is already up-to-date for service 'glances’
    Applying pending configuration for service ‘nslcd’…
    The configuration is already up-to-date for service 'nslcd’
    Applying pending configuration for service ‘ssl’…
    The configuration is already up-to-date for service 'ssl’
    Applying pending configuration for service ‘postfix’…
    The configuration is already up-to-date for service 'postfix’
    Applying pending configuration for service ‘rspamd’…
    The configuration is already up-to-date for service 'rspamd’
    Applying pending configuration for service ‘nsswitch’…
    Warning: The configuration file ‘/etc/nsswitch.conf’ has been manually modified and will not be updated
    Applying pending configuration for service ‘rmilter’…
    The configuration is already up-to-date for service 'rmilter’
    Applying pending configuration for service ‘fail2ban’…
    The configuration is already up-to-date for service 'fail2ban’
    Applying pending configuration for service ‘mysql’…
    The configuration is already up-to-date for service 'mysql’
    Applying pending configuration for service ‘avahi-daemon’…
    The configuration is already up-to-date for service 'avahi-daemon’
    Applying pending configuration for service ‘dovecot’…
    The configuration is already up-to-date for service 'dovecot’
    Applying pending configuration for service ‘slapd’…
    The configuration is already up-to-date for service 'slapd’
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/01-yunohost’…
  • set -e
  • services_path=/etc/yunohost/services.yml
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/02-ssl’…
  • set -e
  • ssl_dir=/usr/share/yunohost/yunohost-config/ssl/yunoCA
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • index_txt=/usr/share/yunohost/yunohost-config/ssl/yunoCA/index.txt
  • [[ -f /usr/share/yunohost/yunohost-config/ssl/yunoCA/index.txt ]]
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/03-ssh’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • [[ ! -f /etc/yunohost/from_script ]]
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/06-slapd’…
  • set -e
  • tmp_backup_dir_file=/tmp/slapd-backup-dir.txt
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • sudo mkdir -p /etc/ldap/slapd.d
  • sudo chown root:openldap /etc/ldap/slapd.conf
  • sudo chown -R openldap:openldap /etc/ldap/schema/
  • sudo chown -R openldap:openldap /etc/ldap/slapd.d/
  • ‘[’ -z ‘’ ‘]’
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/09-nslcd’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • [[ -z ‘’ ]]
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/19-postfix’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • [[ -z ‘’ ]]
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/25-dovecot’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • sudo mkdir -p /etc/dovecot/yunohost.d/pre-ext.d
  • sudo mkdir -p /etc/dovecot/yunohost.d/post-ext.d
  • id vmail
  • sudo chown -R vmail:mail /etc/dovecot/global_script
  • sudo chmod 770 /etc/dovecot/global_script
  • sudo chown root:mail /var/mail
  • sudo chmod 1775 /var/mail
  • ‘[’ -z ‘’ ‘]’
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/28-rmilter’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
    ++ sudo yunohost domain list --output-as plain --quiet
  • domain_list=
    Error: Script execution failed: /usr/share/yunohost/hooks/conf_regen/28-rmilter
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/31-rspamd’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • ‘[’ -z ‘’ ‘]’
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/34-mysql’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • ‘[’ ‘!’ -f /etc/yunohost/mysql ‘]’
  • [[ -z ‘’ ]]
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/37-avahi-daemon’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • [[ -z ‘’ ]]
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/40-glances’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • [[ -z ‘’ ]]
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/46-nsswitch’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • [[ -z ‘’ ]]
  • exit 0
    Executing script ‘/usr/share/yunohost/hooks/conf_regen/52-fail2ban’…
  • set -e
  • FORCE=0
  • DRY_RUN=0
  • case “$1” in
  • do_post_regen
  • regen_conf_files=
  • [[ -z ‘’ ]]
  • exit 0
    nsswitch:
    applied:
    pending:
    /etc/nsswitch.conf:
    status: modified
    admin@YunoHost:~$

Well apparently there seem to be an issue when those scripts try to access your domain list ?

That’s probably a bit cryptic, but that’s basically says “I tried to fetch the list of domains but then I crashed” … either because the list is empty or because something else wrong happened…

Can you try to run sudo yunohost domain list : do you see the list of your domain, or is there an error popping ?

mmmmm, Python errors… the script is corrupted?

admin@YunoHost:~$ sudo yunohost domain list
Traceback (most recent call last):
File “/usr/bin/yunohost”, line 219, in
timeout=opts.timeout,
File “/usr/lib/python2.7/dist-packages/moulinette/init.py”, line 136, in cli
moulinette.run(args, output_as=output_as, password=password, timeout=timeout)
File “/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py”, line 390, in run
ret = self.actionsmap.process(args, timeout=timeout)
File “/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py”, line 475, in process
fromlist=[func_name])
File “/usr/lib/moulinette/yunohost/domain.py”, line 39, in
import yunohost.certificate
File “/usr/lib/moulinette/yunohost/certificate.py”, line 49, in
from yunohost.app import app_ssowatconf
File “/usr/lib/moulinette/yunohost/app.py”, line 46, in
from yunohost.utils import packages
File “/usr/lib/moulinette/yunohost/utils/packages.py”, line 25, in
import apt
File “/usr/lib/python2.7/dist-packages/apt/init.py”, line 27, in
from apt.cache import Cache, ProblemResolver
ValueError: bad marshal data (unknown type code)
admin@YunoHost:~$

It seems there is an error with apt.cache, try:

apt-get clean

no changes, it’s not the cache