Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
error occured while running sudo apt-get install -f
error Sub-process /usr/bin/dpkg returned an error code (1) while running sudo apt-get install -f

i try to install program on ubuntu 12.04 and here are what were written on terminal:

root@drtamer-G41MT-S2PT:/home/marwa/arb.64.ubuntu # show help
The program 'show' is currently not installed. You can install it by typing:
apt-get install nmh
root@drtamer-G41MT-S2PT:/home/marwa/arb.64.ubuntu # apt-get install nmh
Reading package lists... Done
Building dependency tree
Reading state information... Done
nmh is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 332 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)

So what can i do and what these lines mean?

marwa aly is online now Report Post Edit/Delete Message Reply With Quote Multi-Quote This Message Quick reply to this message

share|improve this question

marked as duplicate by Anwar, Call me V, jokerdino, Mitch, fossfreedom Jul 23 '12 at 16:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.