Unable to install CUDA Toolkit due to 'initramf' error on Ubuntu 18.04

I have an MSI Laptop with GeForce GTX 1070 and I want to install CUDA Toolkit 10.2

My system is:

  • Ubuntu 18.04

My steps for Installation:

  • Follow the CUDA 11 toolkit installation steps for deb (local)
  • On the last step (sudo apt-get -y install cuda) at the end I get an error saying:
update-initramfs: Generating /boot/initrd.img-5.4.0-113-generic
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=1fa3b042-c663-44a4-b642-03450a95c0f7)
I: Set the RESUME variable to override this.

How do I fix this error?