I have just installed these packages for building my owncloud, but always get an installation aborted error:
rqie@rqie-VirtualBox:~$ sudo apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'php5-common' instead of 'php5-json' Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-dev' php-xml-parser is already the newest version. apache2 is already the newest version. curl is already the newest version. libcurl3 is already the newest version. libcurl4-openssl-dev is already the newest version. php5 is already the newest version. php5-common is already the newest version. php5-curl is already the newest version. php5-gd is already the newest version. php5-sqlite is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 16 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 qmail (1.06-4) ...
The hostname -f command returned: $1
Your system needs to have a fully qualified domain name (fqdn) in order to install the var-qmail packages. Installation aborted. dpkg: error processing qmail (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of qmail-run: qmail-run depends on qmail (>= 1.06-2.1); however: Package qmail is not configured yet. dpkg: error processing qmail-run (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: qmail qmail-run E: Sub-process /usr/bin/dpkg returned an error code (1)
anyone can help me ? thanks advanced