Results 1 to 2 of 2

Thread: apt is trying to install something but fails

  1. #1
    Join Date
    Jun 2008
    Location
    Pennsylvania
    Beans
    473
    Distro
    Kubuntu

    apt is trying to install something but fails

    Hi, whenever I try to install something I get the following error. Im not entirely sure what the deal is with it. I really dont care if "qmail" gets installed as I dont even know what it is. The software that I attempt to install always gets installed with no issues, it just seems that apt wants to do something that I dont really care about. Any idea how to make it go away?

    Code:
    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
    Setting up libsigc++-2.0-0c2a (2.2.10-0ubuntu2) ...
    No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                              
    ldconfig deferred processing now taking place
    Errors were encountered while processing:
     qmail
     qmail-run
    KDE is the best

  2. #2
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: apt is trying to install something but fails

    Post output of
    Code:
    cat /etc/hostname
    If it returns something empty, or a bad hostname, do this

    Code:
    sudo mv /etc/hostname /etc/hostname.bak
    sudo nano /etc/hostname
    Put a hostname in, like 'desktop' or 'laptop', but without quotes. Mine is 'sandyd-laptop', but I doubt you would want to use it cause then, I could claim that the pc is mine . The hostname should be a one-liner.

    Code:
    sudo nano /etc/hosts
    add a line containing '127.0.0.1' and your hostname at the bottom of the file. The line should look something like this (this is mine)
    Code:
    127.0.1.1       sandyd-laptop
    Reboot
    Last edited by sandyd; October 2nd, 2012 at 02:17 AM.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •