Installation of Yunohost packages failed

Hello,

I am trying to install yunohost on a fresh debian 8 VPS but install fails on these packets that seem to have a recursive dependency, here are the last lines of the log :

Setting up postfix-policyd-spf-perl (2.010-1) ...
Setting up rmilter (1.8.4+nmu1) ...
Setting up rspamd (1.2.6+nmu1) ...
dpkg: dependency problems prevent configuration of ssowat:
 ssowat depends on nginx-extras (>= 1.6.2); however:
  Package nginx-extras is not configured yet.

dpkg: error processing package ssowat (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of yunohost:
 yunohost depends on nginx-extras (>= 1.6.2); however:
  Package nginx-extras is not configured yet.
 yunohost depends on ssowat; however:
  Package ssowat is not configured yet.

dpkg: error processing package yunohost (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of yunohost-admin:
 yunohost-admin depends on yunohost (>= 2.3.6); however:
  Package yunohost is not configured yet.

dpkg: error processing package yunohost-admin (--configure):
 dependency problems - leaving unconfigured
Processing triggers for dovecot-core (1:2.2.13-12~deb8u1) ...
Setting up dovecot-managesieved (1:2.2.13-12~deb8u1) ...

Creating config file /etc/dovecot/conf.d/20-managesieve.conf with new version
Setting up dovecot-antispam (2.0+20130912-2) ...
Processing triggers for dovecot-core (1:2.2.13-12~deb8u1) ...
Setting up liblwp-protocol-https-perl (6.06-2) ...
Setting up libwww-perl (6.08-1) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Processing triggers for systemd (215-17+deb8u4) ...
Processing triggers for dbus (1.8.20-0+deb8u1) ...
Processing triggers for php5-fpm (5.6.20+dfsg-0+deb8u1) ...
Processing triggers for python-support (1.0.15) ...
Errors were encountered while processing:
 nginx-extras
 ssowat
 yunohost
 yunohost-admin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Failure !
The following error was caught during Yunohost installation :

Installation of Yunohost packages failed

I tried to do some apt-get -f install and to install each package separately but nothing works …

Any idea ?
Thanks !

I seem to have fixed it by changing the values in /etc/hosts and /etc/hostname …

May I ask what you changed them to? I’m getting the same error and i’m not quite sure what I have to do.

sudo gedit /etc/hosts
127.0.0.1 localhost debian

sudo gedit /etc/hostname
debian

sudo reboot

that’s what worked for me.