无法在ubuntu

时间:2015-05-21 06:51:50

标签: php sqlite ubuntu driver

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

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驱动程序。

提前致谢。

1 个答案:

答案 0 :(得分:0)

一般来说,这似乎是另一个运行apt-get的过程。你可以找到并杀死它,或者只是重新启动你的机器。