Trouble Upgrading to R 3.4 on Debian

October 9, 2017
By

(This article was first published on RLang.io | R Language Programming, and kindly contributed to R-bloggers)

Recently had a very frustrating error on Proxmox (Debian) while trying to upgrade to R 3.4.2

The following packages have unmet dependencies:
 r-base-core : Depends: libjpeg8 (>= 8c) but it is not installable
               Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
               Depends: libreadline6 (>= 6.0) but it is not installable
               Recommends: r-recommended but it is not going to be installed
               Recommends: r-base-dev but it is not going to be installed
               Recommends: r-doc-html but it is not going to be installed

The solution was to add a source

>nano /etc/apt/sources.list

Then I added a line

deb http://mirrors.kernel.org/ubuntu trusty main

Alright, now the

apt-get update

Damn

W: GPG error: http://mirrors.kernel.org/ubuntu trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository 'http://mirrors.kernel.org/ubuntu trusty Release' is not signed.

Alright…need to add the keys.

>gpg --keyserver keyserver.ubuntu.com --recv-keys NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
>gpg --export --armor 40976EAF437D05B5 | sudo apt-key add -
>gpg --export --armor 3B4FE6ACC0B21F32 | sudo apt-key add -

Uggggh, finally. Now we can install r-base-core and r-base-dev through the standard apt-get install and use RStudio v1.1. Woooo!!!!

To leave a comment for the author, please follow the link and comment on their blog: RLang.io | R Language Programming.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)