我正在尝试使用php5-geos安装地理位置,但它需要两个缺少的包:
pi@raspberrypi /var/www $ sudo apt-get install php5-geosReading 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-geos : Depends: libgeos-c1 (>= 3.4.2) but 3.3.3-1.1 is to be installed
Depends: phpapi-20131226
E: Unable to correct problems, you have held broken packages.
如果我尝试安装任何一个软件包,我就会遇到麻烦:
pi@raspberrypi /var/www $ sudo apt-get install libgeos-c1
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgeos-c1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
和
pi@raspberrypi /var/www $ sudo apt-get install phpapi-20131226
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package phpapi-20131226 is a virtual package provided by:
php5-common 5.6.6+dfsg-2 [Not candidate version]
E: Package 'phpapi-20131226' has no installation candidate
我有PHP版本 - PHP版本5.4.36-0 + deb7u3
我的源代码中有wheezy和jessie,因为我想安装MariaDB FROM Jessie以支持地理模块:
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/ wheezy main contrib non-free rpi
有人看到这里出了什么问题吗?我在这里有点初学者......