gpt4 book ai didi

sql-server - 无法在 ubuntu 20 中安装 SQLserver 工具

转载 作者:行者123 更新时间:2023-12-03 15:42:22 26 4
gpt4 key购买 nike

我在我的 ubuntu 中安装了 SQLserver。但是当我安装 sqlserver-tool 时发生了一些事情。
类型

sudo apt-get install unixodbc-dev

返回
eading 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:
unixodbc-dev : Depends: unixodbc (= 2.3.7)
Depends: odbcinst1debian2 (= 2.3.7) but 2.3.6-0.1build1 is to be installed
E: Unable to correct problems, you have held broken packages.

所以我在下面尝试
sudo apt-get install unixodbc

返回
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:
unixodbc : Depends: odbcinst1debian2 (>= 2.3.7) but 2.3.6-0.1build1 is to be installed
Depends: libodbc1 (>= 2.3.7) but 2.3.6-0.1build1 is to be installed
E: Unable to correct problems, you have held broken packages.

最后
sudo apt-get install odbcinst1debian2

返回
eading 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:
odbcinst1debian2 : PreDepends: multiarch-support but it is not installable
E: Unable to correct problems, you have held broken packages.

我完全堆叠,完全不知道。
剂量任何人都可以帮助我。谢谢。

最佳答案

用户 rim96 是对的,原因是微软的源码列表中包含依赖多架构的更高版本(2.3.7)的 unixodbc(与 Ubuntu 的 2.3.6 版本不同)
我认为 unixodbc 2.3.6 已经足够好了。就我而言,以下步骤对我有所帮助。
删除 Microsoft 的源列表。

mv /etc/apt/sources.list.d/mssql-tools.list ~/
更新来源
sudo apt-get update 
从 Ubuntu 存储库安装 unixodbc 2.3.6
sudo apt-get install unixodbc
将微软的源列表移回
mv ~/mssql-tools.list /etc/apt/sources.list.d/
再次更新来源
sudo apt-get update
从 Microsoft 的存储库安装 mssq-tools(或任何你想要的)
sudo apt-get install mssql-tools

关于sql-server - 无法在 ubuntu 20 中安装 SQLserver 工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62387396/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com