Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't have a lot of experience with debian. I am troubleshooting a friend's debian squeeze setup who probably pasted both squeeze and wheezy sources in his sources.list. Since then I have corrected it. Installing gcc-4.3 throws:

gcc-4.3 : Depends: cpp-4.3 (= 4.3.5-4) but it is not going to be installed

# apt-cache policy cpp-4.3
  Installed: 4.3.5-4
  Candidate: 4.3.5-4
  Version table:
 *** 4.3.5-4 0
        500 stable/main i386 Packages
        100 /var/lib/dpkg/status

Why doesn't apt find my already installed package?

share|improve this question
How was cpp-4.3 installed? – Kruug Mar 18 '13 at 17:54
No idea, it was installed by my friend. – navgeet Mar 18 '13 at 17:59
Does the error still happen after calling apt-get clean followed by apt-get update? – Breakthrough Mar 18 '13 at 18:14
Yes, nothing changes. – navgeet Mar 18 '13 at 18:36

If you use mixed sources (some mix of stable, unstable, testing, experimental and/or others) you might want to tell APT about which one the desired package should be drawn from - if you try to upgrade a package that is already installed from another source, the dependencies installed from that source might be incompatible with the new version.

So try 'apt-get install gcc-4.3/squeeze cpp-4.3/squeeze' or ''apt-get install -t squeeze gcc-4.3'

If you are desperate, you might want to try to download the package and then 'dpkg -i --force-depends mypackage.deb' - but that is a last resort and it will likely break stuff : if APT tells you there is a dependency problem, it usually knows better than me...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.