Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to install php5-sqlite3. In the command line I type:

sudo apt-get install php5-sqlite3

As I result I get:

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

What is happening here and how I can solve this problem?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

I think you want php5-sqlite.

share|improve this answer
    
Thank you. It worked. I was able to install php5-sqlite and after that I was able to use sqlite from PHP without any additional changes. –  Roman Feb 28 '10 at 13:59

You could have found the package you were searching for by using:

$ sudo apt-cache search php sqlite

More information on the search command from the apt-cache man page:

search regex [ regex ... ]

search performs a full text search on all available package lists for the regex pattern given. It searches the package names and the descriptions for an occurrence of the regular expression and prints out the package name and the short description. If --full is given then output identical to show is produced for each matched package, and if --names-only is given then the long description is not searched, only the package name is.

Separate arguments can be used to specify multiple search patterns that are anded together.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.