6

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

karel
  • 110,292
  • 102
  • 269
  • 299
Florin
  • 61
  • 1
  • 5
  • 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 – Florin 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) – Florin Apr 13 '17 at 19:06

1 Answers1

6

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
An0n
  • 2,049
  • 1
  • 11
  • 27