Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have manually installed gcc/g++ 4.7 on my Ubuntu 12.04

When I run sudo apt-get install dpkg-dev it's trying to download and install g++ 4.6 which would obviously break 4.7.

How can I install dpkg-dev without installing gcc 4.6 ?

share|improve this question
add comment

2 Answers 2

You could use a PPA. One containing gcc/g++ 4.7 can be found here. The first link shows a graphical method of installing a PPA. Alternatively, via terminal:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7

Using a PPA to install gcc/g++ might allow apt-get to realise that gcc/g++ 4.7 satisfies the dependency.

share|improve this answer
add comment

Looks like apt-mark hold is what I need.

If somebody knows more elegant method please let me know.

share|improve this answer
add comment

Your Answer

 
discard

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.