ubuntu 18.04 Obtaining Kernel compiled vmlinux

Apt-get install prompt appears snapd mistakes, 

sudo rm -rf /var/lib/dpkg/info/*snapd*

1. Using APT-GET  Source  method, can be downloaded to the current directory, and can be directly extracted:

GET-APT  Source  Linux-Source -4.15.0 # or other numbered tab filled

2. Using APT-GET  install , will be downloaded to / usr / src, will not unpack. You can press the Tab key secondary Qiaowan the following command to see what the kernel source code can be installed (not necessarily the library).

sudo apt-get install linux-source

If the tips are already installed, but under / usr / src not be performed first, and then perform the above installation command

sudo apt-get remove linux-source

cd /usr/src  

tar -xvf  .tar.gz

 

Released two original articles · won praise 0 · Views 111

Guess you like

Origin blog.csdn.net/somexing/article/details/104060356