Errors while install nvidia driver on Ubuntu

I am trying to install nvidia drivers on Ubuntu 20.10 by running
sudo apt install nvidia-driver-460
but it ends with message
e-support (3.64ubuntu1) …
Processing triggers for gnome-menus (3.36.0-1ubuntu1) …
Processing triggers for libc-bin (2.32-0ubuntu3) …
Processing triggers for man-db (2.9.3-2) …
Processing triggers for desktop-file-utils (0.24-1ubuntu4) …
Processing triggers for initramfs-tools (0.137ubuntu12) …
update-initramfs: Generating /boot/initrd.img-5.12.0-051200rc8-generic
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

also I tries to install it with Software&Update by choosing
Using Nvidia driver metapackage from nvidia-driver-460 (proprietary, tested)
driver and clicking Apply changes
but it gives me this error

Error while applying changes
pc-client-error-quark: Error while installing package: installed nvidia-dkms-460 package post-installation script subprocess returned error exit status 10 (313)

You’re running a 5.12 RC kernel, any specific reason for that? Please try enabling the -proposed repo to get the latest 460.73.01 driver, maybe that one will compile.

No specific reason for this version of kernel, I just needed 5.8 or higher.
Enabling proposed repo worked for me
Thank you a lot!