
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
재설치아르 자형이전 버전을 강제로 적용
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