I am trying to test my scripts for data migration from mssql-server
to oracle server
. For this, I have to install pyodbc
python
package for Ubuntu, it has the dependency of unixodbc
. When I try to install unixodbc-dev
using:
sudo apt-get install unixodbc-dev
It gives broken packages error:
The following packages have unmet dependencies:
unixodbc-dev : Depends: unixodbc (= 2.3.1-4.1)
Depends: odbcinst1debian2 (= 2.3.1-4.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
But with aptitude (sudo aptitude install unixodbc-dev
) it is installing and also removing some SQL server files due to which my SQL-server
goes down.
Again on installing SQL server
with this command:
sudo apt-get install mssql-server mssql-tools -y
it removes unixodbc
:
Removing unixodbc-dev (2.3.1-4.1) ...
Removing unixodbc (2.3.1-4.1) ...
Removing libodbc1:amd64 (2.3.1-4.1) ...
Removing odbcinst (2.3.1-4.1) ...
Removing odbcinst1debian2:amd64 (2.3.1-4.1) ...
Hence again, I am left only with SQL-server
and no unixodbc
(pyodbc doesn't works). I understand that there is some dependency issue between both of the packages.
Is there is a way to Install both on the same machine or do I have to use 2 machines here?
pip install pyodbc
only, but no luck. – Subgroup