Ubuntu20.10下载linux源码
1、apt-cache search linux-source
linux-source - Linux kernel source with Ubuntu patches
linux-source-5.8.0 - Linux kernel source for version 5.8.0 with Ubuntu patches
linux-source-5.7.0 - Linux kernel source for version 5.7.0 with Ubuntu patches
2、sudo apt-get install linux-source-5.8.0
Get:1 http://cn.archive.ubuntu.com/ubuntu groovy-updates/main amd64 linux-source-5.8.0 all 5.8.0-41.46 [141 MB]
141M,提示下载6小时25分,呵呵,~~~
3、完成后,到/usr/src中查看你已经下载好的源码
4、解压缩:tar -jxv -f filename.tar.bz2 -C 欲解压的目录