Pet*_*ter 6 sql-server bash installation ubuntu
我在 ubuntu 中安装了 SQLserver。但是当我安装 sqlserver-tool 时发生了一些事情。类型
sudo apt-get install unixodbc-dev
Run Code Online (Sandbox Code Playgroud)
返回
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.
Run Code Online (Sandbox Code Playgroud)
所以我在下面试过
sudo apt-get install unixodbc
Run Code Online (Sandbox Code Playgroud)
返回
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.
Run Code Online (Sandbox Code Playgroud)
最后
sudo apt-get install odbcinst1debian2
Run Code Online (Sandbox Code Playgroud)
返回
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.
Run Code Online (Sandbox Code Playgroud)
我完全堆叠,完全不知道。剂量任何人都可以帮助我。谢谢。
用户 rim96 说得对,原因是微软的源列表中包含依赖于多架构的更高版本(2.3.7)的 unixodbc(与 Ubuntu 的版本 2.3.6 不同)我认为 unixodbc 2.3.6 已经足够了。就我而言,以下步骤对我有帮助。
删除 Microsoft 的源列表。
mv /etc/apt/sources.list.d/mssql-tools.list ~/
Run Code Online (Sandbox Code Playgroud)
更新来源
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
从 Ubuntu 存储库安装 unixodbc 2.3.6
sudo apt-get install unixodbc
Run Code Online (Sandbox Code Playgroud)
将微软的源列表移回
mv ~/mssql-tools.list /etc/apt/sources.list.d/
Run Code Online (Sandbox Code Playgroud)
再次更新资源
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
从 Microsoft 的存储库安装 mssq-tools(或任何你想要的)
sudo apt-get install mssql-tools
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3419 次 |
| 最近记录: |