一般编译依赖内核的软件只需要安装 header sudo apt-get install -y linux-headers-amd64 如果需要下载完整内核源码,这只能自己看看,其它软件并不会来用这份源码。 sudo apt-get source linux-image-amd64