Home > database >  When installing SQLite3 on raspberry pi4 , meet error "have unmet dependencies"
When installing SQLite3 on raspberry pi4 , meet error "have unmet dependencies"

Time:12-03

guys I am a rookie for raspberry pi stuff, I am using SQLite3 for my project, and I tried to install SQLite3 with the command

sudo apt-get install sqlite3

I just kept meeting error

The following packages have unmet dependencies: sqlite3 : Depends: libsqlite3-0 (= 3.7.13-1 deb7u4) but 3.27.2-3 deb10u1 is to be installed E: Unable to correct problems, you have held broken packages.

I tried the sudo apt-get install libsqlite3-0, it said

libsqlite3-0 is already the newest version (3.27.2-3 deb10u1)

And I tried in install version 3.7.13, the unmet dependencies just occurred again ("Depends: libcomedi0 (>= 0.8.1)") and keep snowballing.

I also tried to update and upgrade first but that does not help, appreciate any assistant!!!

CodePudding user response:

I presume it seems not a SQLite3 problem. Broken packages were produced before. For a broken packages you could run sudo dpkg --configure -a to repair.

CodePudding user response:

I finally consulted the professor and he gave me a solution, to add

-t buster

after the command (I am using buster).

For example, the command for installing sqlite3 becomes

sudo apt-get install sqlite3 -t buster

This solved my problem, not only for this one but also other "unmet dependencies" problems I met like installing OpenCV and libraries related.

  • Related