I installed R version 3.4.4-1ubuntu1 How do I downgrade to 3.2.2?
I tried this solution but it didn't work
sudo apt-get remove r-base-core
sudo apt-get autoremove
sudo apt-get install r-base-core=3.2.2
Related
If I run this
sudo apt-get install r-base
R 3.4 is installed from the ubuntu repo. So I added the CRAN repositories by doing
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu eoan-cran35/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt update
sudo apt install r-base
but then I get
The following packages have unmet dependencies:
r-base: Depends: r-base-core (> = 3.6.3-1eoan) but 3.4.4-1ubuntu1 is going to be installed
Depends: r-recommended (= 3.6.3-1eoan) but 3.4.4-1ubuntu1 is going to be installed
E: Problems cannot be corrected, you have retained broken packages.
I swear I tried every line of code from every forum I found but nothing solved this issue. I tried:
sudo apt update && sudo apt-get autoclean && sudo apt-get clean && sudo apt-get autoremove
sudo apt install --fix-broken
sudo apt-get install -f
sudo apt dist-upgrade -y
sudo apt full-upgrade
I also tried disabling ubuntu repos and use only the CRAN repositories, but it doesnt work.
I tried installing r-base 3.4 and upgrading from that but nothing.
I really don't know what else to do, any ideas?
It depend of the version of Linux Mint you are running, but based on your code, you are trying to install r-base for Ubuntu 19.10 eoan (which is not a LTS).
The last version of Linux Mint 19.3 is based on Ubuntu 18.04 Bionic, so you should edit your /etc/apt/sources.list file and add
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
Then:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base-dev
All informations from cran are here: https://cran.r-project.org/
For Linux Mint, check this page (https://www.linuxmint.com/rel_tricia_xfce_whatsnew.php):
> Linux Mint 19.3 features Xfce 4.14, a Linux kernel 5.0 and an Ubuntu 18.04 package base.
I am trying to install R by trying the following command on Ubuntu 18.04x64:
sudo apt-get update
sudo apt-get -y install r-base
following this tutorial (step 6)
but I get :
I tried to solve it with :
sudo add-apt-repository ppa:marutter/rrutter
sudo apt-get update
sudo apt-get install r-base r-base-dev
based on this answer but I still take the same error. Any suggestions?
Hello I am trying to install r-base for Ubuntu 16.04.
I have followed the steps at https://cran.r-project.org/bin/linux/ubuntu/README.html
However I am getting a 'unmet dependencies' error when I run sudo apt-get install r-base
The following packages have unmet dependencies:
r-base : Depends: r-recommended (= 3.4.4-1xenial0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Any ideas for getting around this?
Thanks in advance!
Running the following commands seems to have solved my problem:
sudo apt --fix-broken install
sudo apt-get update
sudo apt-get upgrade
Running the following fixed it for me, but this solution uses r-base-dev not r-base (r-base still didn't work).
sudo apt --fix-broken install
sudo apt autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base-dev
Make sure to check in the software and properties that if your restricted and universe repositories are enabled. Here's a link with more information.
I started getting this issue because I added the wrong apt-repository for my version of Ubuntu (focal fossa instead of bionic).
Solved by doing sudo vim /etc/apt/sources.list, then deleting any lines containing focal
I can't install R on Debian 8.2 jessie
to /etc/apt/sources.list add http://cran.rstudio.com/bin/linux/debian jessie-cran3
apt-get update
apt-get install r-base r-base-dev
The following packages have unmet dependencies:....
Thanks...I resolved this...
/etc/apt/source.list ..
deb http://ftp.de.debian.org/debian jessie main
apt-get install r-base r-base-dev
I am newbie to both Ubuntu and R.
I am trying to install R 2.15.2 on ubuntu. Since the latest version of R is 3.0.X, I specified the version in /etc/apt/sources.list
deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu precise 2.15.2
Then I ran sudo apt-get install r-base.
It installs, but when I check version, it is 2.14.1, not 2.15.2
I tried to specify version in command line, such as:
sudo apt-get install r-base_2.15.2_1precision1
Always seeing:
E: Unable to locate package r-base_2.15.2_1precision1.
E: Couldn't find any package by regex 'r-base_2.15.2_1precision1'
Any suggestion? Thanks.
If I run command:
sudo apt-get install r-base=2.15.2-1precise0
See the following message:
The following packages have unmet dependencies:
r-base : Depends: r-recommended (= 2.15.2-1precise0) but 3.0.1-1precise0precise2 is to be installed
Recommends: r-base-html but it is not going to be installed
Find the solution.
I need to install like:
sudo apt-get install r-base-core=2.15.3-1precise0precise1
sudo apt-get install r-recommended=2.15.3-1precise0precise1
sudo apt-get install r-doc-html=2.15.3-1precise0precise1
sudo apt-get install r-base=2.15.3-1precise0precise1
Okay so the URL for where the packages are found has changed :^) on the cran.ma site:
Change the debian url to:
deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu precise/
do an apt-get update and try reinstalling
The complete instructions are on:
http://cran.ma.imperial.ac.uk/bin/linux/ubuntu/