I am trying to install R 4.0 on Ubuntu 18.04.4 LTS but I keep getting errors of
> sudo apt install r-base-core
Reading package lists... Done
Building depende
I am using Ubuntu 18.04, for this there should be a single source
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/
in /etc/apt/sources.list
Unfortunately, I added deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
by mistake which I removed to install R 4.0
R is successfully installed now.