提问人:Maitreyee Tewari 提问时间:11/18/2023 最后编辑:ShadowMaitreyee Tewari 更新时间:11/18/2023 访问量:18
无法在 Ubuntu 22.04.3 LTS 上安装 mssql-tools [已关闭]
Cannot install mssql-tools on Ubuntu 22.04.3 LTS [closed]
问:
当我运行时,我收到以下错误:如果有人遇到同样的问题,请告诉我,它是如何解决的?sqlcmd -S localhost -U SA -P 'Password'
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Can't open lib 'ODBC Driver 17 for SQL Server' : file not found.
我尝试按照此链接上的说明安装 ODBC 17 https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver16&tabs=ubuntu18-install%2Cubuntu17-install%2Cdebian8-install%2Credhat7-13-install%2Crhel7-offline 然后我收到以下错误
The following packages have unmet dependencies:
msodbcsql17 : Depends: odbcinst
unixodbc : Depends: odbcinst1debian2 (>= 2.3.11-1) but it is not going to be installed
Depends: libodbc1 (>= 2.3.11-1) but it is not going to be installed
unixodbc-dev : Depends: odbcinst1debian2 (= 2.3.11-1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
然后我跑了,但返回以下错误sudo apt --fix-broken install
dpkg: error processing archive /var/cache/apt/archives/odbcinst1debian2_2.3.11-1
_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbcinst.so.2.0.0', which is
also in package libodbcinst2:amd64 2.3.9-5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../libodbc1_2.3.11-1_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.11-1) ...
dpkg: error processing archive /var/cache/apt/archives/libodbc1_2.3.11-1_amd64.d
eb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbc.so.2.0.0', which is also
in package libodbc2:amd64 2.3.9-5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/odbcinst_2.3.11-1_amd64.deb
/var/cache/apt/archives/odbcinst1debian2_2.3.11-1_amd64.deb
/var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我不确定该怎么做以及如何摆脱这个问题。
答: 暂无答案
评论