答案1
在我的 20.10 测试虚拟机上,我看到以下内容:
$ apt-get source linux-headers-`uname -r` Reading package lists... Done Picking 'linux' as source package instead of 'linux-headers-5.8.0-25-generic' NOTICE: 'linux' packaging is maintained in the 'Git' version control system at: git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/groovy Please use: git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/groovy to retrieve the latest (possibly unreleased) updates to the package. Need to get 182 MB of source archives. Get:1 http://archive.ubuntu.com/ubuntu groovy/main linux 5.8.0-25.26...
所以它说 ubuntu 内核源位于git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/groovy
。
查找来源的其他方法是使用搜索https://packages.ubuntu.com并转到linux-meta
包页面。
因此您可以浏览
https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/groovy