Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

cannot make file #1

Open
chikahusarii opened this issue Jun 17, 2021 · 5 comments
Open

cannot make file #1

chikahusarii opened this issue Jun 17, 2021 · 5 comments

Comments

@chikahusarii
Copy link

make -C /lib/modules/5.4.104+/build M=$PWD
make[1]: *** /lib/modules/5.4.104+/build: No such file or directory. Stop.
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 2

@alfonmga
Copy link
Owner

Hi,

Try installing linux-headers for your kernel version: apt-get install -y linux-headers-$(uname -r)

@chikahusarii
Copy link
Author

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-5.4.104
E: Couldn't find any package by glob 'linux-headers-5.4.104'
E: Couldn't find any package by regex 'linux-headers-5.4.104'

@alfonmga
Copy link
Owner

Couldn't find any package by regex 'linux-headers-5.4.104'

Hmm try this so:

sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-headers-$(uname -r) # This should work now

Source: https://stackoverflow.com/a/41081644

@cputester011
Copy link

Couldn't find any package by regex 'linux-headers-5.4.104'

Hmm try this so:

sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-headers-$(uname -r) # This should work now

Source: https://stackoverflow.com/a/41081644

Did not work on VM.. seems more like a privilage issue. Though I have sudo rights. :(

@alfonmga
Copy link
Owner

alfonmga commented Sep 28, 2021

Couldn't find any package by regex 'linux-headers-5.4.104'

Hmm try this so:

sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-headers-$(uname -r) # This should work now

Source: https://stackoverflow.com/a/41081644

Did not work on VM.. seems more like a privilage issue. Though I have sudo rights. :(

Last time I tested it on VM it worked fine. I used Vagrant + generic/ubuntu2004 box. Maybe you should give it a try.

@alfonmga alfonmga reopened this Sep 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants