I'm running into the same problem trying to build a module. The Makefile in /usr/src/linux-headers-5.4.0-050400rc3-generic is a broken symlink.
It appears that none of the .deb files in https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4-rc3/ (all or amd64) contain the Makefile.
for i in *.deb;do echo $i;dpkg -c $i|grep Makefile;done linux-headers-5.4.0-050400rc3_5.4.0-050400rc3.201910132031_all.deb linux-headers-5.4.0-050400rc3-generic_5.4.0-050400rc3.201910132031_amd64.deb lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/Makefile -> ../linux-headers-5.4.0-050400rc3/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/arch/x86/Makefile -> ../../../linux-headers-5.4.0-050400rc3/arch/x86/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/arch/x86/Makefile.um -> ../../../linux-headers-5.4.0-050400rc3/arch/x86/Makefile.um lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/arch/x86/Makefile_32.cpu -> ../../../linux-headers-5.4.0-050400rc3/arch/x86/Makefile_32.cpu lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/arch/x86/entry/Makefile -> ../../../../linux-headers-5.4.0-050400rc3/arch/x86/entry/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/arch/x86/entry/syscalls/Makefile -> ../../../../../linux-headers-5.4.0-050400rc3/arch/x86/entry/syscalls/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/arch/x86/kernel/Makefile -> ../../../../linux-headers-5.4.0-050400rc3/arch/x86/kernel/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/arch/x86/tools/Makefile -> ../../../../linux-headers-5.4.0-050400rc3/arch/x86/tools/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/kernel/Makefile -> ../../linux-headers-5.4.0-050400rc3/kernel/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.asm-generic -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.asm-generic lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.build -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.build lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.clean -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.clean lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.dtbinst -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.dtbinst lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.extrawarn -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.extrawarn lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.gcc-plugins -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.gcc-plugins lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.headersinst -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.headersinst lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.host -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.host lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.kasan -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.kasan lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.kcov -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.kcov lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.lib -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.lib lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.modbuiltin -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.modbuiltin lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.modfinal -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.modfinal lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.modinst -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.modinst lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.modpost -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.modpost lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.modsign -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.modsign lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.package -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.package lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/Makefile.ubsan -> ../../linux-headers-5.4.0-050400rc3/scripts/Makefile.ubsan lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/basic/Makefile -> ../../../linux-headers-5.4.0-050400rc3/scripts/basic/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/dtc/Makefile -> ../../../linux-headers-5.4.0-050400rc3/scripts/dtc/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/dtc/Makefile.dtc -> ../../../linux-headers-5.4.0-050400rc3/scripts/dtc/Makefile.dtc lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/kconfig/Makefile -> ../../../linux-headers-5.4.0-050400rc3/scripts/kconfig/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/mod/Makefile -> ../../../linux-headers-5.4.0-050400rc3/scripts/mod/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/selinux/Makefile -> ../../../linux-headers-5.4.0-050400rc3/scripts/selinux/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/selinux/genheaders/Makefile -> ../../../../linux-headers-5.4.0-050400rc3/scripts/selinux/genheaders/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/linux-headers-5.4.0-050400rc3-generic/scripts/selinux/mdp/Makefile -> ../../../../linux-headers-5.4.0-050400rc3/scripts/selinux/mdp/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:42 ./usr/src/linux-headers-5.4.0-050400rc3-generic/tools/Makefile -> ../../linux-headers-5.4.0-050400rc3/tools/Makefile lrwxrwxrwx root/root 0 2019-10-14 00:42 ./usr/src/linux-headers-5.4.0-050400rc3-generic/tools/objtool/Makefile -> ../../../linux-headers-5.4.0-050400rc3/tools/objtool/Makefile linux-image-unsigned-5.4.0-050400rc3-generic_5.4.0-050400rc3.201910132031_amd64.deb linux-modules-5.4.0-050400rc3-generic_5.4.0-050400rc3.201910132031_amd64.deb
I'm running into the same problem trying to build a module. The Makefile in /usr/src/ linux-headers- 5.4.0-050400rc3 -generic is a broken symlink.
It appears that none of the .deb files in https:/ /kernel. ubuntu. com/~kernel- ppa/mainline/ v5.4-rc3/ (all or amd64) contain the Makefile.
for i in *.deb;do echo $i;dpkg -c $i|grep Makefile;done 5.4.0-050400rc3 _5.4.0- 050400rc3. 201910132031_ all.deb 5.4.0-050400rc3 -generic_ 5.4.0-050400rc3 .201910132031_ amd64.deb linux-headers- 5.4.0-050400rc3 -generic/ Makefile -> ../linux- headers- 5.4.0-050400rc3 /Makefile linux-headers- 5.4.0-050400rc3 -generic/ arch/x86/ Makefile -> ../../. ./linux- headers- 5.4.0-050400rc3 /arch/x86/ Makefile linux-headers- 5.4.0-050400rc3 -generic/ arch/x86/ Makefile. um -> ../../. ./linux- headers- 5.4.0-050400rc3 /arch/x86/ Makefile. um linux-headers- 5.4.0-050400rc3 -generic/ arch/x86/ Makefile_ 32.cpu -> ../../. ./linux- headers- 5.4.0-050400rc3 /arch/x86/ Makefile_ 32.cpu linux-headers- 5.4.0-050400rc3 -generic/ arch/x86/ entry/Makefile -> ../../. ./../linux- headers- 5.4.0-050400rc3 /arch/x86/ entry/Makefile linux-headers- 5.4.0-050400rc3 -generic/ arch/x86/ entry/syscalls/ Makefile -> ../../. ./../.. /linux- headers- 5.4.0-050400rc3 /arch/x86/ entry/syscalls/ Makefile linux-headers- 5.4.0-050400rc3 -generic/ arch/x86/ kernel/ Makefile -> ../../. ./../linux- headers- 5.4.0-050400rc3 /arch/x86/ kernel/ Makefile linux-headers- 5.4.0-050400rc3 -generic/ arch/x86/ tools/Makefile -> ../../. ./../linux- headers- 5.4.0-050400rc3 /arch/x86/ tools/Makefile linux-headers- 5.4.0-050400rc3 -generic/ kernel/ Makefile -> ../../linux- headers- 5.4.0-050400rc3 /kernel/ Makefile linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. asm-generic -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. asm-generic linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. build -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. build linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. clean -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. clean linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. dtbinst -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. dtbinst linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. extrawarn -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. extrawarn linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. gcc-plugins -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. gcc-plugins linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. headersinst -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. headersinst linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. host -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. host linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. kasan -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. kasan linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. kcov -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. kcov linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. lib -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. lib linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. modbuiltin -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. modbuiltin linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. modfinal -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. modfinal linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. modinst -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. modinst linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. modpost -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. modpost linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. modsign -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. modsign linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. package -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. package linux-headers- 5.4.0-050400rc3 -generic/ scripts/ Makefile. ubsan -> ../../linux- headers- 5.4.0-050400rc3 /scripts/ Makefile. ubsan linux-headers- 5.4.0-050400rc3 -generic/ scripts/ basic/Makefile -> ../../. ./linux- headers- 5.4.0-050400rc3 /scripts/ basic/Makefile linux-headers- 5.4.0-050400rc3 -generic/ scripts/ dtc/Makefile -> ../../. ./linux- headers- 5.4.0-050400rc3 /scripts/ dtc/Makefile linux-headers- 5.4.0-050400rc3 -generic/ scripts/ dtc/Makefile. dtc -> ../../. ./linux- headers- 5.4.0-050400rc3 /scripts/ dtc/Makefile. dtc linux-headers- 5.4.0-050400rc3 -generic/ scripts/ kconfig/ Makefile -> ../../. ./linux- headers- 5.4.0-050400rc3 /scripts/ kconfig/ Makefile linux-headers- 5.4.0-050400rc3 -generic/ scripts/ mod/Makefile -> ../../. ./linux- headers- 5.4.0-050400rc3 /scripts/ mod/Makefile linux-headers- 5.4.0-050400rc3 -generic/ scripts/ selinux/ Makefile -> ../../. ./linux- headers- 5.4.0-050400rc3 /scripts/ selinux/ Makefile linux-headers- 5.4.0-050400rc3 -generic/ scripts/ selinux/ genheaders/ Makefile -> ../../. ./../linux- headers- 5.4.0-050400rc3 /scripts/ selinux/ genheaders/ Makefile linux-headers- 5.4.0-050400rc3 -generic/ scripts/ selinux/ mdp/Makefile -> ../../. ./../linux- headers- 5.4.0-050400rc3 /scripts/ selinux/ mdp/Makefile linux-headers- 5.4.0-050400rc3 -generic/ tools/Makefile -> ../../linux- headers- 5.4.0-050400rc3 /tools/ Makefile linux-headers- 5.4.0-050400rc3 -generic/ tools/objtool/ Makefile -> ../../. ./linux- headers- 5.4.0-050400rc3 /tools/ objtool/ Makefile unsigned- 5.4.0-050400rc3 -generic_ 5.4.0-050400rc3 .201910132031_ amd64.deb 5.4.0-050400rc3 -generic_ 5.4.0-050400rc3 .201910132031_ amd64.deb
linux-headers-
linux-headers-
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:43 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:42 ./usr/src/
lrwxrwxrwx root/root 0 2019-10-14 00:42 ./usr/src/
linux-image-
linux-modules-