Cannot import name MoulinetteLdapIsDownError when attempting to fix a broken install

sudo apt install --fix-broken and sudo apt install yunohost both cause the same error

full trace:

admin@yuno:~$ sudo apt install yunohost Reading package lists... Done Building dependency tree Reading state information... Done yunohost is already the newest version ( The following packages were automatically installed and are no longer required: apache2-data apache2-utils fonts-lyx glances hddtemp javascript-common libblas-common libblas3 libgfortran3 libjs-angularjs libjs-jquery libjs-jquery-ui libjs-lodash liblapack3 libwebpdemux2 python-matplotlib-data python3-bottle python3-crypto python3-cycler python3-dateutil python3-docker python3-matplotlib python3-netifaces python3-numpy python3-pil python3-psutil python3-pyasn1 python3-pyparsing python3-pysnmp4 python3-pystache python3-tz python3-websocket Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 1 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 ( ... Regenerating configuration, this might take a while... Info: The operation 'Regenerate system configurations 'all'' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20200614-143444-regen_conf-all --share' to get help Traceback (most recent call last): File "/usr/bin/yunohost", line 218, in <module> timeout=opts.timeout, File "/usr/lib/python2.7/dist-packages/moulinette/", line 135, in cli, output_as=output_as, password=password, timeout=timeout) File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/", line 425, in run ret = self.actionsmap.process(args, timeout=timeout) File "/usr/lib/python2.7/dist-packages/moulinette/", line 527, in process return func(**arguments) File "/usr/lib/moulinette/yunohost/", line 394, in tools_regen_conf return regen_conf(names, with_diff, force, dry_run, list_pending) File "/usr/lib/moulinette/yunohost/", line 303, in func_wrapper result = func(*args, **kwargs) File "/usr/lib/moulinette/yunohost/", line 155, in regen_conf env["YNH_DOMAINS"] = " ".join(domain_list()["domains"]) File "/usr/lib/moulinette/yunohost/", line 51, in domain_list from yunohost.utils.ldap import _get_ldap_interface File "/usr/lib/moulinette/yunohost/utils/", line 24, in <module> from moulinette.core import MoulinetteLdapIsDownError ImportError: cannot import name MoulinetteLdapIsDownError dpkg: error processing package yunohost (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: yunohost E: Sub-process /usr/bin/dpkg returned an error code (1)

Est-ce que tu peux vérifier la version de moulinette actuellement installée avec dpkg --list | grep moulinette

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.