GNU/Linux >> Linux の 問題 >  >> Ubuntu

Rベースの最新バージョンをインストールしますか?

r-base の最新バージョン(2.15.2)をインストールしようとして失敗しました 。どうやら、 R パッケージRcpp Rバージョン2.14.1–私のためにインストールするバージョンではインストールされません。

以下に表示されるインストールの試行を変更する方法/方法/場所がわかりません。私はubuntu-12.04.1-server-i386を使用していることに注意してください。

現在インストールされているバージョンはRバージョン2.14.1(2011-12-22)です:

$ sudo apt-get install r-base
Reading package lists... Done
Building dependency tree       
Reading state information... Done
r-base is already the newest version.

バージョン情報を含めても役に立ちません:

$ sudo apt-get install r-base=2.15.1-5ubuntu1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '2.15.1-5ubuntu1' for 'r-base' was not found

http://cran.r-project.org/bin/linux/ubuntu/READMEからのCRANUbuntuの指示に基づく変更:

  1. /etc/apt/sources.listに追加されました

    deb http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu quantal/
    
  2. 更新してインストール

    $ sudo apt-get update
    $ sudo apt-get install r-base
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     r-base : Depends: r-base-core (>= 2.15.2-1quantal2) but it is not going to be installed
              Depends: r-recommended (= 2.15.2-1quantal2) but it is not going to be installed
              Recommends: r-base-html but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    

ベストアンサー

上記のどれも私のために働いていなかったので、私はhttps://stackoverflow.com/questions/16093331/how-to-install-r-version-3-0

から答えをコピーしています

古いRをアンインストールします:

sudo apt-get remove r-base-core

次に:

sudo add-apt-repository "deb http://cran.rstudio.com/bin/linux/ubuntu $(lsb_release -sc)/"

次に、これらのコマンドをコピーしてコマンドラインに貼り付けます。

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base

それは私のために働いた


Ubuntu
  1. Ubuntuを最新バージョンにアップグレードする3つの異なる方法

  2. FglrxドライバーUbuntuをインストールしますか?

  3. 最新のcmakeバージョンを再インストールするには?

  1. Ubuntu14.04へのELKスタックのインストール

  2. Debian/Ubuntuに新しいバージョンのgitをインストールする

  3. Ubuntu 16.04に32ビットバージョンのSkypeをインストールしますか?

  1. Ubuntuに最新バージョンのHandbrakeをインストールする方法

  2. 以前のFirefoxバージョンをインストールするにはどうすればよいですか?

  3. Ubuntu12.04でGnomeシェルをアップグレードしますか?