hiding-cryptominers-linux-rootkit icon indicating copy to clipboard operation
hiding-cryptominers-linux-rootkit copied to clipboard

cannot make file

Open chikahusarii opened this issue 3 years ago • 5 comments

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

chikahusarii avatar Jun 17 '21 18:06 chikahusarii

Hi,

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

alfonmga avatar Jun 17 '21 19:06 alfonmga

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'

chikahusarii avatar Jun 21 '21 09:06 chikahusarii

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

alfonmga avatar Jun 21 '21 18:06 alfonmga

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. :(

cputester011 avatar Sep 28 '21 05:09 cputester011

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 avatar Sep 28 '21 06:09 alfonmga