2016-10-10 87 views
1

我在我的dev服務器上運行Debian測試。 Unfortunatley我必須同時使用mysqli(不包括在php7中)和php-gd。Debian測試中的PHP5-GD缺少依賴關係libvpx1

貓的/ etc /問題

Debian GNU/Linux stretch/sid 

的apt-get安裝PHP5-GD

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: 
php5-gd : Depends: libvpx1 (>= 1.0.0) but it is not installable 
E: Unable to correct problems, you have held broken packages. 

更多的sources.list

deb http://ftp.de.debian.org/debian testing main contrib non-free 
deb-src http://ftp.de.debian.org/debian testing main contrib non-free 

deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free 
deb-src http://ftp.debian.org/debian/ jessie-updates 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 

帶我找到的信息,即需要libvpx1不再包含在測試中。但我仍然需要它。似乎我將不得不手動安裝它。你會推薦哪種方式?

順便說一句易於得到安裝-f和這樣不能解決問題,因爲libvpx1沒有在測試包括在所有。 https://packages.debian.org/sid/libvpx1

回答

1

好了,這一個是很容易:

wget http://ftp.de.debian.org/debian/pool/main/libv/libvpx/libvpx1_1.3.0-3_amd64.deb 
sudo dpkg -i libvpx1_1.3.0-3_amd64.deb 
apt-get install php5-gd 

合作。

+0

你剛纔救了我一晚上:) – Benj

+0

這就是爲什麼我總是發表我自己的答案:) – Paflow