Tuesday, 14 July 2009

apt-get install sendmail fails

I was getting an error message when trying to install sendmail on a linux server.

Using the command sudo apt-get install sendmail i was getting the following error:

The following packages have unmet dependencies:
sendmail: Depends: sendmail-bin (= 8.13.8-3) but it is not going to be installed
E: Broken packages


Easy fix, just type:

sudo apt-get install sendmail-bin



press 'y' and let that install, then type:

sudo apt-get install sendmail



and it'll install fine this time! hope this helps someone else out too!

7 comments:

  1. No i am getting error after executing sudo apt-get install sendmail-bin
    -----------------------------------------
    Setting up sendmail-base (8.14.3-9.1ubuntu1) ...
    groupadd: cannot lock /etc/group; try again later.
    addgroup: `/usr/sbin/groupadd -g 114 smmta' returned error code 10. Exiting.
    dpkg: error processing sendmail-base (--configure):
    subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of sendmail-bin:
    sendmail-bin depends on sendmail-base; however:
    Package sendmail-base is not configured yet.
    dpkg: error processing sendmail-bin (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of sensible-mda:
    sensible-mda depends on sendmail-bin | mail-transport-agent; however:
    Package sendmail-bin is not configured yet.
    Package mail-transport-agent is not installed.
    Package sendmail-bin which provides mail-transport-agent is not configured yet.
    dpkg: error processing sensible-mda (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of sendmail:
    sendmail depends on sendmNo apport report written because the error message indicates its a followup error from a previous failure.
    No apport report written because the error message indicates its a followup error from a previous failure.
    No apport report written because MaxReports is reached already
    ail-base; however:
    Package sendmail-base is not configured yet.
    sendmail depends on sendmail-bin; however:
    Package sendmail-bin is not configured yet.
    sendmail depends on sensible-mda; however:
    Package sensible-mda is not configured yet.
    dpkg: error processing sendmail (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    sendmail-base
    sendmail-bin
    sensible-mda
    sendmail
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    ReplyDelete
  2. I got it fix by restarting server Thanks

    ReplyDelete
  3. thanks man, you saved my day !

    ReplyDelete
  4. The installation was fine... Anyway Thanks Dear!!

    ReplyDelete
  5. Nice! Thanx :)

    ReplyDelete
  6. sudo apt-get install sendmail-bin didnt fix the error

    dpkg: error processing package sensible-mda (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of sendmail:
    sendmail depends on sendmail-base; however:
    Package sendmail-base is not configured yet.
    sendmail depends on sendmail-bin; however:
    Package sendmail-bin is not configured yet.
    sendmail depends on sensible-mda; however:
    Package sensible-mda is not configured yet.

    dpkg: error processing package sendmail (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    sendmail-base
    sendmail-bin
    sensible-mda
    sendmail

    ReplyDelete
  7. I am getting same error.
    dpkg: error processing package sensible-mda (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of sendmail:
    sendmail depends on sendmail-base; however:
    Package sendmail-base is not configured yet.
    sendmail depends on sendmail-bin; however:
    Package sendmail-bin is not configured yet.
    sendmail depends on sensible-mda; however:
    Package sensible-mda is not configured yet.

    dpkg: error processing package sendmail (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    sendmail-base
    sendmail-bin
    sensible-mda
    sendmail

    ReplyDelete