Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 55682  / 2 Years ago, fri, november 26, 2021, 6:20:42

I am trying to run



sudo apt-get install libsqlite3-dev


But I'm getting this error:



E: Unable to locate package sqlite3


How can I fix this?


More From » 12.10

 Answers
4

I just saw that your command is not complete. Try:



sudo apt-get install sqlite3 libsqlite3-dev


If still does not work, try the following:



Running the command:



 sudo apt-cache policy sqlite3


will give you the following output:



sqlite3:
Installed: (none)
Candidate: 3.7.9-2ubuntu1.1
Version table:
3.7.9-2ubuntu1.1 0
500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
3.7.9-2ubuntu1 0
500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages


It is visible that the package is in archive.ubuntu.com/ubuntu



Hence, check your repositories. Open the update manager, go to settings, and after typing your password, you will see the repositories selected:



enter image description here



Try the options I have selected, and you should be fine.


[#34605] Saturday, November 27, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulild

Total Points: 239
Total Questions: 103
Total Answers: 112

Location: Papua New Guinea
Member since Thu, Jul 9, 2020
4 Years ago
;