Installation Failed Raspi 2 B+

I have been trying to set up a server for mail, owncloud, and possibly irc on a raspberry pi 2 b+. I have followed the instructions to manually install YUNoHost, because the img server seems to be down. Anyways, the install script always seems to fail. After looking in the log file it appears that I am getting dpkg dependency errors involving packages such as amavisd-new, yunohost-config-amavis, yunohost-config-postfix, yunohost-config-dovecot, yunohost-config, and yunohost. Any help fixing this would be fabulous.

The pi is running the latest Raspbian Jessie Lite from raspberrypi.org. I ran the install script as root.

Thanks!

Bashterm

Having exactly the same issue. Only difference is I’m doing it on a Raspberry Pi B.

Errors were encountered while processing:
amavisd-new
yunohost-config-amavis
yunohost-config-postfix
yunohost-config-dovecot
metronome
yunohost-config-metronome
yunohost-config
yunohost
spamassassin
sa-compile
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is not even a RPi issue. Installing on Debian on Digital Ocean renders almost the exact same errors.

Errors were encountered while processing:
amavisd-new
yunohost-config-amavis
yunohost-config-postfix
yunohost-config-dovecot
yunohost-config
yunohost
E: Sub-process /usr/bin/dpkg returned an error code (1)

So is there a way to solve the problem as a user, or is this more of a problem on the debian/yunohost side of things?

Same problem on fresh Debian Jessie netinstall without X and same error on a Debian netinstall on virtualbox.

$ cd /tmp/install_script && sudo ./install_yunohostv2 Se encontraron errores al procesar: amavisd-new yunohost-config-amavis yunohost-config-postfix yunohost-config-dovecot yunohost-config yunohost E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt-get install -f sudo: unable to resolve host yunohost.yunohost.org
Creating/updating amavis user account... Job for amavis.service failed. See 'systemctl status amavis.service' and 'journalctl -xn' for details. invoke-rc.d: initscript amavis, action "start" failed.

$ sudo journalctl -xn sudo: unable to resolve host yunohost.yunohost.org -- Logs begin at sáb 2016-04-23 00:09:28 CEST, end at sáb 2016-04-23 00:22:12 CEST. -- abr 23 00:22:12 yunohost.yunohost.org slapd[24491]: conn=1013 op=3 SEARCH RESULT tag=101 err=32 nentries=0 text= abr 23 00:22:12 yunohost.yunohost.org systemd-logind[432]: Failed to execute operation: Unit suspend.target is masked. abr 23 00:22:12 yunohost.yunohost.org sudo[4838]: berzas : TTY=pts/0 ; PWD=/home/berzas ; USER=root ; COMMAND=/bin/journalctl -xn abr 23 00:22:12 yunohost.yunohost.org slapd[24491]: conn=1013 op=4 UNBIND abr 23 00:22:12 yunohost.yunohost.org slapd[24491]: conn=1013 fd=20 closed abr 23 00:22:12 yunohost.yunohost.org systemd-logind[432]: Suspending... abr 23 00:22:12 yunohost.yunohost.org systemd-logind[432]: Failed to execute operation: Unit suspend.target is masked. abr 23 00:22:12 yunohost.yunohost.org sudo[4838]: pam_unix(sudo:session): session opened for user root by berzas(uid=0) abr 23 00:22:12 yunohost.yunohost.org systemd-logind[432]: Suspending... abr 23 00:22:12 yunohost.yunohost.org systemd-logind[432]: Failed to execute operation: Unit suspend.target is masked.

$ sudo systemctl status amavis.service sudo: unable to resolve host yunohost.yunohost.org amavis.service - LSB: Starts amavisd-new mailfilter Loaded: loaded (/etc/init.d/amavis) Active: failed (Result: exit-code) since sáb 2016-04-23 00:12:26 CEST; 11min ago Process: 4691 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)
abr 23 00:12:26 yunohost.yunohost.org amavis[4691]: Starting amavisd: hostname: Name or service not known abr 23 00:12:26 yunohost.yunohost.org amavis[4691]: The value of variable $myhostname is "", but should have been abr 23 00:12:26 yunohost.yunohost.org amavis[4691]: a fully qualified domain name; perhaps uname(3) did not provide such. abr 23 00:12:26 yunohost.yunohost.org amavis[4691]: You must explicitly assign a FQDN of this host to variable $myhostname abr 23 00:12:26 yunohost.yunohost.org amavis[4691]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's abr 23 00:12:26 yunohost.yunohost.org amavis[4691]: network name! abr 23 00:12:26 yunohost.yunohost.org systemd[1]: amavis.service: control process exited, code=exited status=1 abr 23 00:12:26 yunohost.yunohost.org systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter. abr 23 00:12:26 yunohost.yunohost.org systemd[1]: Unit amavis.service entered failed state. abr 23 00:12:26 yunohost.yunohost.org amavis[4691]: (failed).

$ sudo amavisd-new sudo: unable to resolve host yunohost.yunohost.org hostname: Name or service not known The value of variable $myhostname is "", but should have been a fully qualified domain name; perhaps uname(3) did not provide such. You must explicitly assign a FQDN of this host to variable $myhostname in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's network name!

UPDATE:
$ sudo nano /etc/amavis/conf.d/05-node_id

uncoment the line:

#$myhostname = "mail.example.com";

and put a domain ex:

$myhostname = "mydomain.org";

run:
$ sudo amavisd-new

and rerun:
$ cd /tmp/install_script && sudo ./install_yunohostv2

Installed Yunohost succesfully for me.