I think I have messed up with both sudo apt-get update and sudo apt-get-repository. so initially I tried to update the version of R from 3.6 to higher. so I tried this image 1.
in order to update the R in I have followed these commands.
sudo add-apt-repository 'deb cloud.r-project.org/bin/linux/ubuntu xenial-cran35/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt update
sudo apt install r-base
but this did not work and thereafter whenever I was trying to update only one package get updated.
Although the further process did not go that well. but after that the problem has occurred. Now after that whenever I tried to do sudo apt-get update it just update only one package. but also gives some errors during update as well.
so I tried to figure out by looking at some solution and I did this
now I want to restore the sudo apt-get update command to its actual working so that it will update all the packages to their latest version. I tried to figure out the repository list from source.list and started adding one by one but again it didnot work.
what should I do to restore the working of apt-get update?



