Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

OS: Ubuntu 12.04 LTS

$sudo apt-get install libsqlite3-dev

The following packages have unmet dependencies: libsqlite3-dev : Depends: libsqlite3-0 (=3.7.9-2ubuntu1) but 3.7.9-2ubuntu1.1 is to be installed



$sudo apt-get install libsqlite3-0

Building dependency tree
Reading state information... 
Done libsqlite3-0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 103 not upgraded.

I have also try to download the newest package on https://launchpad.net/ubuntu/raring/i386/libsqlite3-dev/3.7.15-1

and have read this: https://getsatisfaction.com/jolicloud/topics/installing_libsqlite3_dev_doesnt_work

Ubuntu responsed: "cannot install libc6:i386" or "is not statisfiable..."

share|improve this question
    
It shows you have a 103 upgrades. What's up with that? –  wojox Dec 19 '12 at 13:39
    
now i have updated all the patches by Upgrate Manager. I cannot remove libsqlite3-0 because it's already there. Have tried sudo apt-get remove libsqlite3-0, still cannot install libsqlite3-dev –  CodeFarmer Dec 19 '12 at 13:53
    
did you try sudo apt-get purge libsqlite3-0? –  don.joey Dec 20 '12 at 13:55

1 Answer 1

up vote 3 down vote accepted

This appears to be a problem with some of the 64-bit packages being out of sync with the 32-bit packages (3.7.9-2ubuntu1 vs. 3.7.9-2ubuntu1.1).

The following answer is shamelessly cut'n'pasted from the thread at http://www.kubuntuforums.net/showthread.php?60125-Can-t-install-anything-bad-libsqlite3-0-amd64 which I recommend for a more thorough description (as well as steps to verify that this is indeed your problem.)

  1. Download the 64-bit version:

    apt-get download libsqlite3-0:amd64
    
  2. Download the 32-bit version:

    apt-get download libsqlite3-0:i386
    
  3. Forcibly remove the existing 64-bit version:

    sudo dpkg --force-depends --purge libsqlite3-0:amd64
    
  4. Forcibly remove the existing 32-bit version:

    sudo dpkg --force-depends --purge libsqlite3-0:i386
    
  5. Manually install the 64-bit version:

    sudo dpkg --install libsqlite3-0*amd64.deb
    
  6. Manually install the 32-bit version:

    sudo dpkg --install libsqlite3-0*i386.deb
    

Then see if your install of the -dev works, since one of those should match what it's looking for.

share|improve this answer
    
Step 2 and 4 will not cancel out? –  CodeFarmer Dec 22 '12 at 7:43
    
Step 2 is a download only, not an install. –  Ubuntourist Dec 23 '12 at 13:38

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.