2017-01-12 8 views
0

phantomjs을 VPS에 사용하려하지만, 종속성으로 fontconfig이 필요합니다. 그래서 나는 apt-get install fontconfig을 만났다.데비안 의존성 설치시 오류가 발생했습니다.

Root @ vps27533: ~/grab/phantomjs-2.1.1-linux-i686/bin # sudo apt-get install fontconfig 
Reading Package Lists ... Done 
Building the dependency tree 
Reading status information ... Done 
You can run "apt-get -f install" to correct these problems: 
The following packages contain unsatisfied dependencies: 
  Libc6-i686: i386: Predependent: libc6: i386 (= 2.13-38 + deb7u8) but 2.13-38 + deb7u11 should be installed 
E: Dependencies not satisfied. Try apt-get -f install without package 
(Or indicate a solution). 

그래서 그때

내가으로 libc6의 새 버전을 얻는 방법에 대한 매우 혼란 스러워요
Root @ vps27533: ~/grab/phantomjs-2.1.1-linux-i686/bin # sudo apt-get -f install 
Reading Package Lists ... Done 
Building the dependency tree 
Reading status information ... Done 
Fixed dependencies ... Done 
The following additional packages will be installed: 
  Libc6 libc6-i686: i386 
Suggested Packages: 
  Glibc-doc 
The following packages will be updated: 
  Libc6 libc6-i686: i386 
2 updated, 0 newly installed, 0 to remove and 184 not updated. 
4 partially installed or removed. 
It is necessary to take 0 o/5 616 kb in the archives. 
After this operation, an additional 22.5 KB of disk space will be used. 
Would you like to continue [Y/n]? O 
Reading change files ("changelog") ... Completed 
Preconfiguration of packages ... 
(Read the database ... 51662 files and directories already installed.) 
Preparing to replace libc6: amd64 2.13-38 + deb7u8 (using .../libc6_2.13-38 + deb7u11_amd64.deb) ... 
Unpacking the libc6 update: amd64 ... 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by/bin/sh) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by/bin/sh) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5) 
Dpkg: warning: the old post-removal script subprocess returned a status output error 1 
Dpkg: Attempting to run the script of the new package instead ... 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by/bin/sh) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by/bin/sh) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5) 
Dpkg: processing error of /var/cache/apt/archives/libc6_2.13-38+deb7u11_amd64.deb (--unpack): 
 The new post-removal script subprocess returned a status output error 1 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by/bin/sh) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by/bin/sh) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libncurses.so.5) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5) 
/Bin/sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15 'not found (required by /lib/x86_64-linux-gnu/libtinfo.so.5) 
Dpkg: error when cleaning: 
 The pre-installed script subprocess installed has returned a status output error 1 
Errors were encountered during execution: 
 /var/cache/apt/archives/libc6_2.13-38+deb7u11_amd64.deb 
E: Subprocess/usr/bin/dpkg returned an error code (1) 

sudo apt-get -f install를 실행 (SSH 세션이 불어로, 그래서 구글 번역 사용) 그것은 내가 그것이 필요하다고 생각하는 것이다. 그래서 도망 쳤어 sudo apt-get install libc6

Root @ vps27533: ~/grab/phantomjs-2.1.1-linux-i686/bin # sudo apt-get install libc6 
Reading Package Lists ... Done 
Building the dependency tree 
Reading status information ... Done 
You can run "apt-get -f install" to correct these problems: 
The following packages contain unsatisfied dependencies: 
  Libc6-i686: i386: Predependent: libc6: i386 (= 2.13-38 + deb7u8) but 2.13-38 + deb7u11 should be installed 
E: Dependencies not satisfied. Try apt-get -f install without package 
(Or indicate a solution). 

나는 어떻게이 일을 얻을 수 있냐? 어떻게해야합니까? 어떤 도움도 크게 받으실 수 있습니다.

답변

0

필요한 패키지가 포함 된 저장소 목록이없는 것 같습니다. 난 당신과 같은 포괄 저장소 목록 /etc/apt/sources.list을 가지고 있는지 확인 먼저 제안 할 것이다 (이 데비안 8 제시입니다) 다음

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free 
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free 
deb http://security.debian.org/ jessie/updates main contrib non-free 
deb-src http://security.debian.org/ jessie/updates main contrib non-free 
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free 
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free 
deb http://ftp.debian.org/debian jessie-backports main contrib non-free 
deb-src http://ftp.debian.org/debian jessie-backports main contrib non-free 

그럼 난 해결과 패키지를 업그레이드하려고하는 root 등이 실행됩니다 : 그 후

apt-get -y update 
sleep 1 
dpkg --configure -a 
sleep 1 
apt-get -y install -f 
sleep 1 
dpkg --configure -a 
sleep 1 
apt-get -y update 
sleep 1 
apt-get -y dist-upgrade 

, 나는 reboot에 제안하고 (재) 원하는 패키지를 설치하려고합니다. 그래도 문제가 발생하면 문제가되는 패키지 (예 : apt-get -y --purge remove package)를 제거 (제거)하고 재부팅 한 다음 패키지를 다시 설치하고 다시 테스트하십시오.

0

시도 실행 :

sudo apt-get install libc6=2.13-38+deb7u8 fontconfig 

이 아닌 후보의 종속성 및 이전으로 libc6를 설치할 수없는 경향의 문제는 (apt-get install specific version with non-cadidate dependencies 참조) 설치되지 않은 cadidate 의존성이다.

특정 버전을 설치하도록 apt-get install에 명시 적으로 요청하면 다른 비 후보 패키지가 필요하지 않은 경우 명령 줄에 명시 적으로 나열해야합니다. ...