簡體   English   中英

在Debian上安裝依賴項時出錯

[英]Error installing dependencies on Debian

我正在嘗試在VPS上使用phantomjs ,但它需要fontconfig作為依賴項。 所以我跑了apt-get install fontconfig

(SSH會話為法語,因此使用谷歌翻譯)

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).

所以我然后運行了sudo apt-get -f install

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)

我對如何獲取libc6的新版本感到非常困惑,這是我認為需要的。 所以我什至跑了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).

我該如何工作? 我該怎么辦? 任何幫助是極大的贊賞

聽起來您可能沒有包含所需軟件包的存儲庫列表。 我建議您首先確保您擁有一個完整的存儲庫列表/etc/apt/sources.list ,例如以下/etc/apt/sources.list (該/etc/apt/sources.list用於Debian 8 Jessie):

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 ),重新啟動,重新安裝這些軟件包,然后再次進行測試。

嘗試運行:

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

這是apt的問題,該apt無法安裝非候選依賴項,而較早的libc6是一個非cadidate依賴項,它無法安裝(請參閱apt-get install特定版本的非cadidate依賴項 )。

如果您明確要求apt-get install安裝特定版本,它將這樣做(除非它需要另一個非候選程序包,在這種情況下,您需要在命令行上明確列出此程序...)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM