내 서버는 현재 Debian Stretch에서 실행되고 있습니다.
리눅스 *** 4.9.0-8-amd64 #1 SMP 데비안 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux
openjdk-11-jdk를 설치하려고 합니다. 이것은 안정적인 스트레칭의 일부가 아닙니다. 그래서 나는 기반을 두었습니다.지시하다:
뎁http://deb.debian.org/debian주로 스트레칭과 허리이식
패키지 설치에 실패했습니다. 종속성을 사용할 수 없습니다.
536:root:/opt# apt-get update
[...]
537:root:/opt# apt-get -t stretch-backports install "openjdk-11-jdk"
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:
openjdk-11-jdk : Depends: openjdk-11-jre (= 11.0.3+7-5~bpo9+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
538:root:/opt# apt-get -t stretch-backports install "openjdk-11-jre"
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:
openjdk-11-jre : Depends: libgif7 (>= 5.1) but it is not installable
Recommends: libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2) but it is not installable
E: Unable to correct problems, you have held broken packages.
539:root:/opt# aptitude -t stretch-backports install "openjdk-11-jdk"
The following NEW packages will be installed:
openjdk-11-jdk openjdk-11-jdk-headless{a} openjdk-11-jre{ab} openjdk-11-jre-headless{a}
0 packages upgraded, 4 newly installed, 0 to remove and 86 not upgraded.
Need to get 223 MB of archives. After unpacking 364 MB will be used.
The following packages have unmet dependencies:
openjdk-11-jre : Depends: libgif7 (>= 5.1) which is a virtual package and is not provided by any available package
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) openjdk-11-jdk [Not Installed]
2) openjdk-11-jre [Not Installed]
Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.
이러한 종속성을 해결하는 방법을 모르겠습니다.
고쳐 쓰다:
599:root:~# apt policy
Package files:
100 /var/lib/dpkg/status
release a=now
100 http://deb.debian.org/debian stretch-backports/main amd64 Packages
release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=main,b=amd64
origin deb.debian.org
500 http://ftp.de.debian.org/debian stretch-updates/main amd64 Packages
release o=Debian,a=oldstable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
origin ftp.de.debian.org
500 http://security.debian.org stretch/updates/main amd64 Packages
release v=9,o=Debian,a=oldstable,n=stretch,l=Debian-Security,c=main,b=amd64
origin security.debian.org
Pinned packages:
답변1
stretch/main
출력에 apt policy
설치에 필요한 저장소 항목이 표시되지 않습니다.libgif7팩.
이 시도:
다음 위치에 기본 저장소를 추가합니다
/etc/apt/sources.list
.deb http://ftp.de.debian.org/debian stretch main
그런 다음 실행
apt-get update apt-get -t stretch-backports install openjdk-11-jdk