sudo apt 安装 linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-4.18.0-17-generic is already the newest version (4.18.0-17.18).
linux-headers-4.18.0-17-generic set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
在安装 linux-header 时它已经显示最新版本但是当我尝试列出详细信息时它会抛出消息“没有这样的文件或目录?”
ls -l /usr/src/linux-headers-$(uname -r)
ls: cannot access '/usr/src/linux-headers-4.18.0-17-generic': No such file or directory