Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I am not able to install several applications and services on my Debian machine. For instance when I try to install fail2ban I get the below error message: root:~# ...
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    4

    apt-get install complains for broken packages

    Hi,

    I am not able to install several applications and services on my Debian machine.
    For instance when I try to install fail2ban I get the below error message:

    root:~# apt-get install fail2ban
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    libc6-dev : Breaks: gcc-4.4 (< 4.4.6-4) but 4.4.5-8 is to be installed
    E: Broken packages

    Could you please give me any tips how to overcome this?
    I have run several times apt-get update and apt-get upgrade but nothing changes.

    Thanks,
    Akis

  2. #2
    Guest
    Join Date
    Feb 2005
    Posts
    314
    post outputs

    Code:
    cat /etc/apt/sources.list
    Code:
    aptitude clean && aptitude update
    Code:
    aptitude -f install
    (Answer yes unless you see a good reason not to.)

    Code:
    aptitude install fail2ban

  3. #3
    Just Joined!
    Join Date
    Sep 2011
    Posts
    4

    Thumbs up

    After running all these commands fail2ban was properly installed and apt-get install runs without any 'Broken Packages' errors

    Thanks for your help!!

    P.S. I am not able to paste the outputs of the commands as I am not allowed to insert URL links

  4. #4
    Guest
    Join Date
    Feb 2005
    Posts
    314
    Heh... I thought that might do it...

    Truth be told I missed a step though, after running "aptitude -f install" it would have been an idea to run an upgrade as well.

    You don't need url links, just copy and paste and use the [code][/code] BBcode tags.

    Glad it's sorted, though.

Posting Permissions

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