Can't install linux-headers-amd64, Ubuntu 18.04 [duplicate]












2















This question already has an answer here:




  • How do I install kernel header files?

    5 answers




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?










share|improve this question













marked as duplicate by WinEunuuchs2Unix, karel, Charles Green, Eric Carvalho, George Udosen Jan 4 at 10:17


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 2




    Use linux-headers-$(uname -r)
    – Jeremy31
    Jan 1 at 12:52
















2















This question already has an answer here:




  • How do I install kernel header files?

    5 answers




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?










share|improve this question













marked as duplicate by WinEunuuchs2Unix, karel, Charles Green, Eric Carvalho, George Udosen Jan 4 at 10:17


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 2




    Use linux-headers-$(uname -r)
    – Jeremy31
    Jan 1 at 12:52














2












2








2








This question already has an answer here:




  • How do I install kernel header files?

    5 answers




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?










share|improve this question














This question already has an answer here:




  • How do I install kernel header files?

    5 answers




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?





This question already has an answer here:




  • How do I install kernel header files?

    5 answers








drivers wireless






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 1 at 12:18









Filip SotiroskiFilip Sotiroski

132




132




marked as duplicate by WinEunuuchs2Unix, karel, Charles Green, Eric Carvalho, George Udosen Jan 4 at 10:17


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by WinEunuuchs2Unix, karel, Charles Green, Eric Carvalho, George Udosen Jan 4 at 10:17


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 2




    Use linux-headers-$(uname -r)
    – Jeremy31
    Jan 1 at 12:52














  • 2




    Use linux-headers-$(uname -r)
    – Jeremy31
    Jan 1 at 12:52








2




2




Use linux-headers-$(uname -r)
– Jeremy31
Jan 1 at 12:52




Use linux-headers-$(uname -r)
– Jeremy31
Jan 1 at 12:52










1 Answer
1






active

oldest

votes


















4














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.






share|improve this answer





















  • Ok, I did this, and when I ran ./install I got: -----Sorry! Run with root privilege (for example with 'sudo ./install') So, I ran it with sudo ./install, but then i got a message: make command not found, so i ran: sudo apt-get install build-essential. After that, I was able to run the install, but I needed to install libelf-dev. And now I have it. thank you!
    – Filip Sotiroski
    Jan 1 at 19:45












  • Awesome! Glad it's working.
    – chili555
    Jan 1 at 19:59


















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














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.






share|improve this answer





















  • Ok, I did this, and when I ran ./install I got: -----Sorry! Run with root privilege (for example with 'sudo ./install') So, I ran it with sudo ./install, but then i got a message: make command not found, so i ran: sudo apt-get install build-essential. After that, I was able to run the install, but I needed to install libelf-dev. And now I have it. thank you!
    – Filip Sotiroski
    Jan 1 at 19:45












  • Awesome! Glad it's working.
    – chili555
    Jan 1 at 19:59
















4














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.






share|improve this answer





















  • Ok, I did this, and when I ran ./install I got: -----Sorry! Run with root privilege (for example with 'sudo ./install') So, I ran it with sudo ./install, but then i got a message: make command not found, so i ran: sudo apt-get install build-essential. After that, I was able to run the install, but I needed to install libelf-dev. And now I have it. thank you!
    – Filip Sotiroski
    Jan 1 at 19:45












  • Awesome! Glad it's working.
    – chili555
    Jan 1 at 19:59














4












4








4






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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 1 at 14:29









chili555chili555

38.2k55177




38.2k55177












  • Ok, I did this, and when I ran ./install I got: -----Sorry! Run with root privilege (for example with 'sudo ./install') So, I ran it with sudo ./install, but then i got a message: make command not found, so i ran: sudo apt-get install build-essential. After that, I was able to run the install, but I needed to install libelf-dev. And now I have it. thank you!
    – Filip Sotiroski
    Jan 1 at 19:45












  • Awesome! Glad it's working.
    – chili555
    Jan 1 at 19:59


















  • Ok, I did this, and when I ran ./install I got: -----Sorry! Run with root privilege (for example with 'sudo ./install') So, I ran it with sudo ./install, but then i got a message: make command not found, so i ran: sudo apt-get install build-essential. After that, I was able to run the install, but I needed to install libelf-dev. And now I have it. thank you!
    – Filip Sotiroski
    Jan 1 at 19:45












  • Awesome! Glad it's working.
    – chili555
    Jan 1 at 19:59
















Ok, I did this, and when I ran ./install I got: -----Sorry! Run with root privilege (for example with 'sudo ./install') So, I ran it with sudo ./install, but then i got a message: make command not found, so i ran: sudo apt-get install build-essential. After that, I was able to run the install, but I needed to install libelf-dev. And now I have it. thank you!
– Filip Sotiroski
Jan 1 at 19:45






Ok, I did this, and when I ran ./install I got: -----Sorry! Run with root privilege (for example with 'sudo ./install') So, I ran it with sudo ./install, but then i got a message: make command not found, so i ran: sudo apt-get install build-essential. After that, I was able to run the install, but I needed to install libelf-dev. And now I have it. thank you!
– Filip Sotiroski
Jan 1 at 19:45














Awesome! Glad it's working.
– chili555
Jan 1 at 19:59




Awesome! Glad it's working.
– chili555
Jan 1 at 19:59



Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

張江高科駅