I had the exact same error report following a stuck update. To release the stuck update, I ran sudo apt dist-upgrade and then an autoremove.
After restarting, my screen configuration was totally trashed and the system was using the open-source non-proprietary driver (and very unstable, and slow). I tried to install the nvidia driver and received this message.
I then ran the driver installation from the command line using the following steps:
identify available/appropriate drivers with this command:
ubuntu-drivers devices
choose the one marked "recommended"
install it using the command:
sudo apt install nvidia-driver-XXX
(replace XXX with the driver id number you want)
reboot:
sudo reboot
After this, my system came back properly.
HTH