1

From command line, after entering sudo apt-get upgrade I get

WARNING: The following packages cannot be authenticated!
  r-cran-matrix
Install these packages without verification [y/N]? 

Alternatively, from Task Manager, I get

enter image description here

Many related solutions exist. Trying this one leads to

Reading package lists... Done
W: GPG error: http://cran.rstudio.com precise/ Release: The following signatures were invalid: KEYEXPIRED 1445181253 KEYEXPIRED 1445181253 KEYEXPIRED 1445181253
W: Duplicate sources.list entry http://linux.dropbox.com/ubuntu/ precise/main amd64 Packages (/var/lib/apt/lists/linux.dropbox.com_ubuntu_dists_precise_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://linux.dropbox.com/ubuntu/ precise/main i386 Packages (/var/lib/apt/lists/linux.dropbox.com_ubuntu_dists_precise_main_binary-i386_Packages)

I seem to get an identical set of errors after working through the instructions in this solution.

I also tried this, which led to the following failures at the end of apt-get update:

W: Duplicate sources.list entry http://linux.dropbox.com/ubuntu/ precise/main amd64 Packages (/var/lib/apt/lists/linux.dropbox.com_ubuntu_dists_precise_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://linux.dropbox.com/ubuntu/ precise/main i386 Packages (/var/lib/apt/lists/linux.dropbox.com_ubuntu_dists_precise_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

What am I missing?

zkurtz
  • 323

2 Answers2

1

You actually have two separate issues, and they are not related to each other, they're individually different issues.

The first is the r-cran-matrix issue, designated by the E:... line in your output. The GPG key used for the signatures of that repository are no longer valid and expired. You need to refer to the location of how you installed that repository to readd it and update the keys.

The second is you have two entries for Dropbox, denoted by the two W:... lines in the output. Check all your sources.list file and your files in /etc/apt/sources.list.d/*.list for duplicate entries for Dropbox. It looks like you have two entries that match based on that error.

Thomas Ward
  • 78,878
0

I'm really confused because I have no idea how dropbox and cran would be connected, but I just did sudo gedit /etc/apt/sources.list and removed both lines with dropbox in them and now sudo apt-get update works fine. No worries about dropbox as I'm not using that anymore.

If anyone can post a relatively canonical answer, I'll be happy to give credit for that.

zkurtz
  • 323