如果一个软件包没有安装应用程序,我该怎么办?

我正在尝试安装php5-sqlite3。 在命令行中input:

sudo apt-get install php5-sqlite3 

因为我得到:

 Reading package lists... Done Building dependency tree Reading state information... Done Package php5-sqlite3 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package php5-sqlite3 has no installation candidate 

这里发生了什么,我怎么能解决这个问题?

我想你想要php5-sqlite的。

您可以使用以下方法find您要search的软件包:

 $ sudo apt-cache search php sqlite 

有关apt-cache手册页中的search命令的更多信息:

search正则expression式[regex …]

search在给定的正则expression式模式的所有可用包列表上执行全文search。 它search软件包名称和描述以查找正则expression式,并打印出软件包名称和简短描述。 如果给出–full,则为每个匹配的包生成与show相同的输出,如果仅给出–names-only,则不search长描述,只有包名是。

可以使用单独的参数来指定多个search模式结合在一起。