安装 mssq-tools 时未满足 libc6 和 libstdc++ 的依赖关系

安装 mssq-tools 时未满足 libc6 和 libstdc++ 的依赖关系

我正在尝试安装 Microsoft SQL 工具,但在依赖项上遇到错误。使用 apt-get 时也会出现同样的错误。如您所见,除了不安装 mssq-tools 之外,aptitude 没有其他方法可以解决这个问题。

我对诊断包裹问题很不熟悉,非常希望您能帮助我了解这里发生的情况。

$> sudo aptitude install mssql-tools
The following NEW packages will be installed:
  mssql-tools{b}
0 packages upgraded, 1 newly installed, 0 to remove and 235 not upgraded.
Need to get 1,263 kB of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
 mssql-tools : Depends: libc6 (>= 2.21) but 2.15-0ubuntu10.12 is installed and it is kept back.
               Depends: libstdc++6 (>= 5.2) but 4.6.3-1ubuntu5 is installed.
               Depends: libgss3 but it is not going to be installed.
               Depends: msodbcsql (>= 13.0.0.0) but it is not going to be installed.
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1)     mssql-tools [Not Installed]

我的 Ubuntu 版本如下:

$> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:        12.04
Codename:       precise

答案1

你至少需要 Ubuntu 16.04

相关内容