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'm a linux noob and I messed up symbolic links on Ubuntu 13 for my gcc 4.7 which should be installed but I can't remove it nor use it:

paul@paul-linux:~$ sudo apt-get remove gcc-4.7
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:
 dkms : Depends: gcc but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


paul@paul-linux:~$ ls -l /usr/bin/gcc
ls: cannot access /usr/bin/gcc: No such file or directory

How can I solve this please?

share|improve this question
    
What's the output of sudo apt-get install gcc? –  Clive van Hilten Sep 6 '13 at 13:01

1 Answer 1

up vote 0 down vote accepted

I am not sure if this will fix your problem but try the commands below it may fix your problem. After running these commands try to install gcc again.

sudo apt-get update

sudo apt-get autoremove

sudo apt-get -f install

share|improve this answer

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.