Debian 9(stretch)에 R을 설치하려고 할 때 충족되지 않은 종속성이 발생했습니다. 구체적으로 다음을 실행합니다.
$ 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: libjpeg8 (>= 8c) but it is not installable
Recommends: r-recommended but it is not going to be installed
Recommends: r-base-dev but it is not going to be installed
Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
누구든지 도와줄 수 있나요? 이 문제를 검색했지만 해결책을 찾을 수 없습니다.
감사해요
편집: 출력은 apt policy
다음과 같습니다
Package files:
100 /var/lib/dpkg/status
release a=now
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,b=i386
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,b=amd64
origin repository.spotify.com
500 https://repo.skype.com/deb stable/main amd64 Packages
release o=. stable,a=stable,n=stable,l=. stable,c=main,b=amd64
origin repo.skype.com
500 https://desktop-download.mendeley.com/download/apt stable/main i386
Packages
release n=stable,c=main,b=i386
origin desktop-download.mendeley.com
500 https://desktop-download.mendeley.com/download/apt stable/main amd64
Packages
release n=stable,c=main,b=amd64
origin desktop-download.mendeley.com
500 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu
bionic/main i386 Packages
release v=18.04,o=LP-PPA-maarten-baert- simplescreenrecorder,a=bionic,n=bionic,l=SimpleScreenRecorder,c=main,b=i386
origin ppa.launchpad.net
500 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu bionic/main amd64 Packages
release v=18.04,o=LP-PPA-maarten-baert-simplescreenrecorder,a=bionic,n=bionic,l=SimpleScreenRecorder,c=main,b=amd64
origin ppa.launchpad.net
500 http://deb.debian.org/debian stretch/main i386 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=i386
origin deb.debian.org
500 http://deb.debian.org/debian stretch/main amd64 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
origin deb.debian.org
500 https://dl.winehq.org/wine-builds/debian stretch/main i386 Packages
release v=9.0,o=dl.winehq.org,a=stable,n=stretch,l=winehq,c=main,b=i386
origin dl.winehq.org
500 https://dl.winehq.org/wine-builds/debian stretch/main amd64 Packages
release v=9.0,o=dl.winehq.org,a=stable,n=stretch,l=winehq,c=main,b=amd64
origin dl.winehq.org
500 http://cran.rstudio.com/bin/linux/debian stretch-cran34/ Packages
release o=CRAN,a=stretch-cran34,n=stretch-cran34,l=CRAN Backports,c=
origin cran.rstudio.com
500 http://cran.rstudio.com/bin/linux/ubuntu trusty/ Packages
release v=14.04,o=CRAN,a=trusty,n=trusty,l=CRAN,c=
origin cran.rstudio.com
500 http://ftp.uk.debian.org/debian jessie/main i386 Packages
release v=8.10,o=Debian,a=oldstable,n=jessie,l=Debian,c=main,b=i386
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian jessie/main amd64 Packages
release v=8.10,o=Debian,a=oldstable,n=jessie,l=Debian,c=main,b=amd64
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian stretch-updates/main i386 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=i386
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian stretch-updates/main amd64 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian stretch/contrib i386 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=i386
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian stretch/contrib amd64 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=amd64
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian stretch/non-free i386 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=i386
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian stretch/non-free amd64 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=amd64
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian stretch/main i386 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=i386
origin ftp.uk.debian.org
500 http://ftp.uk.debian.org/debian stretch/main amd64 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
origin ftp.uk.debian.org
Pinned packages:
답변1
충족되지 않은 종속성은 저장소, 특히 Ubuntu 14.04용 CRAN 저장소에서 참조하는 버전의 혼합으로 인해 발생할 수 있습니다. #
의 다음 항목 /etc/apt/sources.list
과 파일을 삭제(또는 주석 처리)해야 합니다 /etc/apt/sources.list.d
.
http://cran.rstudio.com/bin/linux/ubuntu trusty/
;- 인용된 모든
ftp.uk.debian.org
항목jessie
.
이 작업을 완료한 후 apt update
다시 실행해도 apt install r-base-core
누락으로 인해 더 이상 문제가 발생하지 않습니다 libjpeg8
.
답변2
를 설치하려면
libjpeg8-dev
다음 명령을 사용하십시오.sudo apt install aptitude sudo aptitude install libjpeg-dev
그런 다음 "아니요", "예", "예"를 선택해야 할 수도 있습니다. 자세한 지침을 참조하세요.
pdftoppm
Linux Ubuntu에서 최신 버전의 Poppler/(작성 당시 버전 22.11.0)를 설치/업그레이드하는 방법
내 답변을 참조하세요:https://unix.stackexchange.com/a/723619/114401