다음 명령을 사용하여 r-base 패키지를 설치하려고 합니다.리눅스 민트 커뮤니티소프트웨어 보기.
"설치" 버튼을 클릭하면 "추가 소프트웨어를 설치하시겠습니까?"라는 메시지가 표시됩니다. "설치"를 다시 클릭하면 다음과 같은 오류 메시지가 나타납니다.
Can not install 'r-base' (E:Unable to correct problems, you have held broken packages.)
이것은 다음의 출력입니다 apt-cache policy
.
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main Translation-en
500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main i386 Packages
release v=14.04,o=LP-PPA-webupd8team-java,a=trusty,n=trusty,l=Oracle Java (JDK) 7 / 8 / 9 Installer PPA,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=LP-PPA-webupd8team-java,a=trusty,n=trusty,l=Oracle Java (JDK) 7 / 8 / 9 Installer PPA,c=main
origin ppa.launchpad.net
500 http://repository.spotify.com/ stable/non-free i386 Packages
release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free
origin repository.spotify.com
500 http://repository.spotify.com/ stable/non-free amd64 Packages
release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free
origin repository.spotify.com
500 http://archive.canonical.com/ubuntu/ trusty/partner Translation-en
500 http://archive.canonical.com/ubuntu/ trusty/partner i386 Packages
release v=14.04,o=Canonical,a=trusty,n=trusty,l=Partner archive,c=partner
origin archive.canonical.com
500 http://archive.canonical.com/ubuntu/ trusty/partner amd64 Packages
release v=14.04,o=Canonical,a=trusty,n=trusty,l=Partner archive,c=partner
origin archive.canonical.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/universe Translation-en
500 http://security.ubuntu.com/ubuntu/ trusty-security/restricted Translation-en
500 http://security.ubuntu.com/ubuntu/ trusty-security/multiverse Translation-en
500 http://security.ubuntu.com/ubuntu/ trusty-security/main Translation-en
500 http://security.ubuntu.com/ubuntu/ trusty-security/multiverse i386 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=multiverse
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=universe
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/restricted i386 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=restricted
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=main
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/multiverse amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=multiverse
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/universe amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=universe
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/restricted amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=restricted
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=main
origin security.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/restricted Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/multiverse Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/multiverse i386 Packages
release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=multiverse
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=universe
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/restricted i386 Packages
release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=restricted
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=main
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/multiverse amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=multiverse
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=universe
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/restricted amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=restricted
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=main
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/universe Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty/restricted Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty/main Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse i386 Packages
release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=multiverse
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=universe
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/restricted i386 Packages
release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=restricted
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=main
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages
release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=multiverse
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=universe
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/restricted amd64 Packages
release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=restricted
origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=main
origin archive.ubuntu.com
700 http://extra.linuxmint.com/ rebecca/main i386 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=main
origin extra.linuxmint.com
700 http://extra.linuxmint.com/ rebecca/main amd64 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=main
origin extra.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/import i386 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=import
origin packages.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/upstream i386 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=upstream
origin packages.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/main i386 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=main
origin packages.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/import amd64 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=import
origin packages.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/upstream amd64 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=upstream
origin packages.linuxmint.com
700 http://packages.linuxmint.com/ rebecca/main amd64 Packages
release v=17.1,o=linuxmint,a=rebecca,n=rebecca,l=linuxmint,c=main
origin packages.linuxmint.com
500 http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages
release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
origin dl.google.com
500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages
release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
origin dl.google.com
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
release v=12.04,o=CRAN,a=precise,n=precise,l=CRAN,c=
origin cran.stat.ucla.edu
Pinned packages:
이것은 다음의 출력입니다 apt-cache policy r-base
.
r-base:
Installed: (none)
Candidate: 3.1.3-1precise2
Version table:
3.1.3-1precise2 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.1.2-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.1.1-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.1.0-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.3.20140328-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.3-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.2-1ubuntu1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
3.0.2-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-6precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-5precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-3precise 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-1precise0precise2 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.0-2precise 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.3-1precise0precise1 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.2-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.1-1precise2 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.0-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
마지막으로 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 (>= 3.1.3-1precise2) but it is not going to be installed
Depends: r-recommended (= 3.1.3-1precise2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
다음은 sudo apt-cachepolicy r-base-core r-recommulated의 출력입니다.
r-base-core:
Installed: (none)
Candidate: 3.1.3-1precise2
Version table:
3.1.3-1precise2 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.1.2-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.1.1-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.1.0-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.3.20140328-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.3-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.2-1ubuntu1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
3.0.2-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-6precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-5precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-3precise 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-1precise0precise2 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.0-2precise 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.3-1precise0precise1 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.2-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.1-1precise2 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.0-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
r-recommended:
Installed: (none)
Candidate: 3.1.3-1precise2
Version table:
3.1.3-1precise2 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.1.2-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.1.1-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.1.0-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.3.20140328-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.3-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.2-1ubuntu1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
3.0.2-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-6precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-5precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-3precise 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-1precise0precise2 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
3.0.0-2precise 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.3-1precise0precise1 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.2-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.1-1precise2 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
2.15.0-1precise0 0
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
다음은 명령 터미널의 출력입니다 sudo apt-get install r.base-core
.
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-core : Depends: libtiff4 but it is not installable
E: Unable to correct problems, you have held broken packages.
`sudo apt-cache 정책 libtiff4의 출력은 다음과 같습니다.
libtiff4:
Installed: (none)
Candidate: (none)
Version table:
`sudo apt-get install libtiff4에서 다음과 같습니다.
`Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libtiff4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libtiff4' has no installation candidate
소프트웨어 관리자를 사용하여 설치도 시도했지만 성공하지 못했습니다.
인터넷을 탐색하면서 터미널을 통해 Ubuntu 12.10+를 사용하여 설치하기 위한 코드를 찾았지만 Linux Mint에 적합한 것은 없습니다(또는 적어도 나는 그렇게 생각하지 않습니다).
R 소프트웨어를 설치하는 방법을 알고 있거나 올바른 단계를 제안하는 사람이 있습니까?
답변1
출력에는 다음이 apt-cache policy
포함됩니다.
500 http://cran.stat.ucla.edu/bin/linux/ubuntu/ precise/ Packages
release v=12.04,o=CRAN,a=precise,n=precise,l=CRAN,c=
origin cran.stat.ucla.edu
문제는 CRAN 소스가 "신뢰할 수 있다"고 가정할 때 "정확성"을 의미한다는 것입니다. 포스터는 Mint 버전 17.1 Rebecca를 실행하고 있습니다. 이는 "신뢰할 수 있음"과 호환되지만 "정확함"과는 호환되지 않습니다. 이 CRAN 소스를 "신뢰할 수 있음"으로 변경한 후 게시자는 문제가 해결되었다고 보고했습니다.