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 .... Apr 13, 2017 at 13:09
  • I've tried that, but the Error that I get is: Unable to locate package nams
    – Florin
    Apr 13, 2017 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, 2017 at 15:46
  • »» apt-get install nams «« What is nams supposed to do ? "nams" is an unknown name / unknown application. Do you mean nam ? Apr 13, 2017 at 18:29
  • @KnudLarsen sorry, it is NASM (Netwide Assembler)
    – Florin
    Apr 13, 2017 at 19:06

1 Answer 1


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
  • Thanks, I had the same issue and this fixed it for me! Apr 25, 2019 at 7:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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