Unable to upgrade R from 3.4.3 to 3.5.1

Where did you get the currently installed versions from? It is easy to build R from source if you need a fixed version of it. You might have to uninstall the system version first, c.f. Compiling R from source in /opt/R. Alternatively you can use the RStudio provided binaries that are available for many versions of R.