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.
The following packages have unmet dependencies:
 g++-4.8 : Depends: libstdc++-4.8-dev (= 4.8.1-10ubuntu9) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
kashi@kashi-Inspiron-N5110:~$ sudo apt-get -f install libstdc++-4.8-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libllvm3.1:i386
Use 'apt-get autoremove' to remove it.
Suggested packages:
  libstdc++-4.8-doc
The following NEW packages will be installed:
  libstdc++-4.8-dev
0 upgraded, 1 newly installed, 0 to remove and 1481 not upgraded.
18 not fully installed or removed.
Need to get 1,752 kB of archives.
After this operation, 11.4 MB of additional disk space will be used.
  • After this the installation hangs and no download speed come. I have tried to change the servers. nothing happens
share|improve this question
    
Did you check that your internet connection is working or not? –  Avinash Raj Feb 25 at 13:12
    
ofcourse. Reading package lists... Done Building dependency tree Reading state information... Done g++ is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: g++-4.8 : Depends: libstdc++-4.8-dev (= 4.8.1-10ubuntu9) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). –  kashminder Feb 25 at 13:15
    
run only sudo apt-get install -f –  Avinash Raj Feb 25 at 13:16
    
I did. All in vain. Even cant remove it. –  kashminder Feb 25 at 13:41
1  
You could try to install the exact version its after. Try "apt-get install libstdc++-4.8-dev=4.8.1-10ubuntu9" –  vxnuke Feb 25 at 13:46

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.