I encountered a similar error when installing CUDA Toolkit 11.0 (which includes the Nvidia driver with version number 450.51). This seems to be caused by a change function (https://github.com/torvalds/linux/commit/88dca4ca5a93d2c09e5bbc6a62fbfc3af83c4fca) in Linux.
After a few days, I found the guide https://gitlab.com/-/snippets/1986228 and successfully installed the driver. I hope it will help you to solve this problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1932998 Title: package nvidia-dkms-450-server 450.119.04-0ubuntu0.20.04.2 failed to install/upgrade: installed nvidia-dkms-450-server package post- installation script subprocess returned error exit status 10 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-450-server/+bug/1932998/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs