4

I am trying to install a program on my Linux. When running: sudo apt-get install nams I keep getting:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
         linux-image-extra-4.4.0-71-generic :   
          Depends: linux-image-4.4.0-71-generic but it is not going to be installed
         linux-image-generic :  
          Depends: linux-image-4.4.0-71-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I tried to fix it doing: sudo apt-get -f install

  • 1
    The install command is : sudo apt-get update && sudo apt-get install nams .... – Knud Larsen Apr 13 '17 at 13:09
  • I've tried that, but the Error that I get is: Unable to locate package nams – Fineas Silaghi Apr 13 '17 at 13:37
  • try sudo apt-get upgrade -f to upgrade packages and fix broken dependencies, or you can manually install the missing dependancy sudo apt-get install linux-image-4.4.0-71-generic – Gansheim Apr 13 '17 at 15:46
  • »» apt-get install nams «« What is nams supposed to do ? "nams" is an unknown name / unknown application. Do you mean nam ? – Knud Larsen Apr 13 '17 at 18:29
  • @KnudLarsen sorry, it is NASM (Netwide Assembler) – Fineas Silaghi Apr 13 '17 at 19:06
0

Seems like you have double sources in your plist.

To fix this issue:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get -f install

Then run :

sudo dpkg --configure -a
sudo apt-get -f install

Also you can comment out the double source in the sources.list

If you need help, print the output of the sources.list and show me.

Like this :

cat /etc/apt/sources.list > /home/user/sources.txt

If you wanne do it yourself just use nano or vim :

sudo nano /etc/apt/sources.list

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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