본문 바로가기

날리지/Virtuoso

How to install iodbc in Ubuntu 12.10 & 14.04 LTS

I need to install the library iodbc (depends on libodbc2) in my Quantal machine. Yet there is creepy dependency problem. This was replaced somehow by unixodbc which I don't have, installed. Here is what I get when I try to install :


install iodbc failure


sudo apt-get install libiodbc2-dev

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:


The following packages have unmet dependencies:

 libiodbc2-dev : Depends: libiodbc2 (= 3.52.7-2build2) but it is not going to be installed

                 Depends: iodbc (= 3.52.7-2build2) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

I can tell that iodbc conflicts with odbcinst. Yet, I cannot remove it due to the following:


Fix Problem: 

sudo apt-get update 
sudo apt-get install libiodbc2 iodbc