5

I am trying to install Mediatek MT7630E driver https://github.com/neurobin/MT7630E,

When I try

sudo apt install build-essential linux-headers-amd64

I get this:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-amd64 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source



E: Package 'linux-headers-amd64' has no installation candidate

How can I resolve this?

1 Answers1

8

The instructions given at the github site are generic, one-size-maybe-fits-all steps. They may or may not be correct for each and every Linux distribution. For Ubuntu, the correct command is:

sudo apt install linux-headers-generic

Installing the 'generic' package will also install the headers appropriate for your running kernel version but also will assure that updates to your kernel version will also trigger corresponding updates to the headers package.

chili555
  • 61,330