error when running apt-get update on ubuntu 14

I am running ubuntu 14 on one of my servers.

When I run sudo apt-get update, I get the error below.

W: GPG error: http://cran.rstudio.com trusty/ Release: The following signatures were invalid: KEYEXPIRED 1445181253 KEYEXPIRED 1445181253 KEYEXPIRED 1445181253

Should I modify my ppa repository list or take some other action to fix this issue.

Update: I tried removing R from the server using

sudo apt-get --purge remove r-base
sudo apt-get --purge remove r-base-core
sudo apt-get --purge remove r-base-recommended

However, I am still seeing the same issue with apt-get update.


Solution 1:

Look at the "Secure APT" part of https://cran.r-project.org/bin/linux/ubuntu/README.html:

Adding the key with key ID E084DAB9 fixed the problem for me.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9

Solution 2:

If you don't need R you can just remove the cran line from /etc/apt/sources.list and you should be good to go.

sudo apt-key del 1445181253 will remove the offending key.

Solution 3:

Sorry for the abrupt questions but what has java to do with the 3rd party repository that you have set in your repository?

Also I see you are capable to change your repository but not able to read the output of an error.

You can add the missing key for the 3rd party repo:

  http://ubuntuforums.org/showthread.php?t=2202787