Boot screen freeze with an underscore after installing nvidia drivers

So I follow the steps mentioned in No matter which drivers I install, I cannot boot my ubuntu 20.04 LTS beyond a black screen - #8 by youssefe.fares

The kernel parameters are gone, they’re just in an old logfile. Please

switch to nvidia (again): sudo prime-select nvidia
delete /lib/udev/rules.d/50-pm-nvidia.rules
remove stray blacklist files (sudo rm /lib/modprobe.d/blacklist-nvidia.conf /etc/modprobe.d/blacklist-nvidia.conf)
update the initrd (sudo update-initramfs -u)
reboot

For me There were no blacklist files. After purging all nvidia drivers from the tty. I was able to boot normally. Followed by sudo ubuntu-drivers autoinstall which installs the recommended drivers by itself. Next prime-select nvidia in root. and then a simple reboot fixed it for me.