1

I am new to working in a Linux environment full-time and am running Ubuntu 18.04. I have installed R and RStudio and am now trying to install all of my packages. I set the CRAN mirror when initially configuring R. I am unable to install packages as I did on Windows (e.g. install packages ('devtools') from the console) and have found some resources to help me install certain packages however I am looking for help (links to helpful resources would be great!) on understanding why the install process is different with Ubuntu and also for installing packages so I can get to work as soon as possible!

Also when I try to use the following to install devtools:

sudo apt-get -y install libcurl4-gnutls-dev libxml2-dev libssl-dev

I get the following error message:

Err:1 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libcurl4-gnutls-dev amd64 7.58.0-2ubuntu3.1
  404  Not Found [IP: 2001:67c:1562::16 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl4-gnutls-dev_7.58.0-2ubuntu3.1_amd64.deb   
  404 Not Found [IP: 2001:67c:1562::16 80]    
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

And when I run with --fix-missing, I get the Failed to fetch error again.

karel
  • 122,292
  • 133
  • 301
  • 332

1 Answers1

0

I have come across 2 resources that have been particularly helpful: the CRAN-supported Ubuntu package install page and this other post on AskUbuntu.

David DE
  • 2,316