Ubuntu apt-get source linux-image-$(uname -r) 没有给我内核源

Ubuntu apt-get source linux-image-$(uname -r) 没有给我内核源

我正在尝试下载 ubuntu 发行版的 linux 内核源代码。我直接在我的主文件夹中执行此操作。

kerndev@kerndev-VirtualBox:~$ uname -r
5.0.0-37-generic
kerndev@kerndev-VirtualBox:~$ apt-get source linux-image-$(uname -r)  
Reading package lists... 
Done Picking 'linux-signed-hwe' as source package instead of 'linux-image-5.0.0-37-generic'  
Skipping already downloaded file 'linux-signed-hwe_5.0.0-37.40~18.04.1.dsc'  
Skipping already downloaded file 'linux-signed-hwe_5.0.0-37.40~18.04.1.tar.xz'  
Need to get 0 B of source archives. Skipping unpack of already unpacked source in linux-signed-hwe-5.0.0

在此步骤之后,我只看到以下内容(摘录)。

kerndev@kerndev-VirtualBox:~$ ls -ltr
total 52
drwxr-xr-x 3 kerndev kerndev  4096 Apr  5  2019 linux-signed-hwe-5.0.0
-rw-r--r-- 1 kerndev kerndev 11356 Nov 15 02:13 linux-signed-hwe_5.0.0-37.40~18.04.1.tar.xz
-rw-r--r-- 1 kerndev kerndev  1862 Nov 15 02:13 linux-signed-hwe_5.0.0-37.40~18.04.1.dsc

在这里我再次没有看到内核源代码(即使在 debian 目录中)

kerndev@kerndev-VirtualBox:~/linux-signed-hwe-5.0.0$ ls -ltr
total 24
-rwxr-xr-x 1 kerndev kerndev 2683 Apr  5  2019 update-version
-rwxr-xr-x 1 kerndev kerndev  216 Apr  5  2019 generate-depends
-rwxr-xr-x 1 kerndev kerndev  450 Apr  5  2019 download-unsigned
-rwxr-xr-x 1 kerndev kerndev 6491 Apr  5  2019 download-signed
drwxr-xr-x 5 kerndev kerndev 4096 Nov 14 15:59 debian

我记得我之前下载了标头并努力更新 source.list 文件。我可能缺少什么?

相关内容