php - 无法在 ubuntu 上安装 sqlite

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

提前致谢。

最佳答案

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

关于php - 无法在 ubuntu 上安装 sqlite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30366509/

相关文章:

php - iOS - 发送值的静默推送通知

mysql - 雪豹: Fatal error: Call to undefined function mysql_connect()

php - 处理产品上传的图像

c# - SQLite 即使在连接关闭后仍保持数据库锁定

php - 如何在我的站点 ssl 上制作表单

java - 由于 mContext 对象,Android 中的编译错误

SQLITE 自定义数据类型?

linux - 在Linux上提取分割的.tar文件,需要单独解密

bash - Ubuntu使用脚本将JAVA_HOME路径添加到bashrc不起作用

java - 无法使用 Sublime Text 2、Ubuntu 12.04 64 编译 Java