Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/267.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 无法在ubuntu上安装sqlite_Php_Sqlite_Ubuntu_Driver - Fatal编程技术网

Php 无法在ubuntu上安装sqlite

Php 无法在ubuntu上安装sqlite,php,sqlite,ubuntu,driver,Php,Sqlite,Ubuntu,Driver,我是ubuntu的新手。 我使用的php版本是5.4.39-1+deb.sury.org~lucid+2,PDO驱动程序只有mysql。现在我需要为SQLite 3.x安装PDO驱动程序。我已经安装了sqlite版本3.6.22。 谷歌搜索后,我只运行以下命令: sudo apt-get install php5-sqlite 但是得到以下错误: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily

我是ubuntu的新手。 我使用的php版本是5.4.39-1+deb.sury.org~lucid+2,PDO驱动程序只有mysql。现在我需要为SQLite 3.x安装PDO驱动程序。我已经安装了sqlite版本3.6.22。 谷歌搜索后,我只运行以下命令:

sudo apt-get install php5-sqlite
但是得到以下错误:

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
现在,在终止另一个apt get进程后,它显示了以下问题:

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-sqlite: Depends: phpapi-20090626+lfs
               Depends: php5-common (= 5.3.2-1ubuntu4.30) but 5.4.39-1+deb.sury.org~lucid+2 is to be installed
E: Broken packages
可能是什么问题?请帮助我安装SQLite 3.x的PDO驱动程序


提前感谢。

一般来说,这似乎是另一个运行apt get的进程。您可以找到并杀死它,或者重新启动计算机。

杀死apt get后,我发现了其他错误消息。请检查我的最新问题。也许这有帮助。此外,你可以在谷歌上粘贴错误信息并搜索,通常你会得到答案。