I had a similar issue after upgrading to 21.04. Package linux-headers-<version> silently failed to build these config files due to lack of packages flex and bison.
sudo apt install flex bison sudo dpkg-reconfigure linux-headers-<version> solved the problem, although the build still fails, but in a later stage. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1916517 Title: ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1916517/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
