
R
必要なライブラリがまだ 3.0.3 (最新) と互換性がないため、3.0.2 をインストールする必要があります。
R の古いバージョンは次のようにインストールできます。
sudo apt-get install r-base=3.0.2-1precise0
ただし、r-baseのすべての依存関係は3.0.3でインストールしてみてください
root@foo:~# apt-get install r-base=3.0.2-1precise0
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-recommended (= 3.0.2-1precise0) but 3.0.3-1precise0 is to be installed
E: Unable to correct problems, you have held broken packages.
r-base 3.0.2 とすべての依存関係を 3.0.2 としてインストールするにはどうすればよいですか?
答え1
まずパッケージを削除します
sudo apt-get remove r-base
ちょっとした掃除
sudo apt-get clean; sudo apt-get autoclean
再インストールR古いバージョンを強制する
sudo apt-get install r-base=3.0.2-1precise0
答え2
単に上からインストールするだけでパッケージをダウングレードできます。apt はこれを適切に処理できるほどスマートです。
R 3.0.2をインストールするには、dpkg -S /usr/bin/Rを実行したところ、バイナリが で提供されていることがわかりましたr-base-core
。ダウングレードすると問題は解決しました。
apt-get install r-base-core=3.0.2-1precise0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
r-cran-foreign ...
Use 'apt-get autoremove' to remove them.
Suggested packages:
ess r-doc-info r-doc-pdf r-mathlib
The following packages will be REMOVED:
r-base r-cran-class r-cran-cluster r-cran-kernsmooth r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-recommended
The following packages will be DOWNGRADED:
r-base-core
0 upgraded, 0 newly installed, 1 downgraded, 9 to remove and 123 not upgraded.
Need to get 21.5 MB of archives.
apt-get install r-base=3.0.2-1precise0
...
apt-get install r-recommended=3.0.2-1precise0
...
答え3
ソフトウェアとアップデートから「Universe」リポジトリを無効にし、ターミナルで以下のコマンドを実行します。
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get install r-base