gpt4 book ai didi

php - 无法在 ubuntu 上安装 sqlite

转载 作者:行者123 更新时间:2023-12-04 18:51:54 25 4
gpt4 key购买 nike

我是 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com