【发布时间】:2021-10-21 01:37:37
【问题描述】:
我正在尝试更新使用 python:3.9 作为基础(使用 Debian GNU/Linux 10 (buster))的 docker 映像,但现在它失败了,之前的步骤没有问题。
新的图像sha是@sha256:8f642902ba368481c9aca0a100f08daf93793c6fa14d3002253ea3cd210383a7,我使用的命令可以在这里找到https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#debian17。
这是输出错误:
#20 0.380 Reading package lists...
#20 0.838 Building dependency tree...
#20 0.942 Reading state information...
#20 0.998 Some packages could not be installed. This may mean that you have
#20 0.998 requested an impossible situation or if you are using the unstable
#20 0.998 distribution that some required packages have not yet been created
#20 0.998 or been moved out of Incoming.
#20 0.998 The following information may help to resolve the situation:
#20 0.998
#20 0.998 The following packages have unmet dependencies:
#20 1.049 libodbc1 : PreDepends: multiarch-support but it is not installable
#20 1.049 odbcinst1debian2 : PreDepends: multiarch-support but it is not installable
#20 1.062 E: Unable to correct problems, you have held broken packages.
------
executor failed running [/bin/sh -c ACCEPT_EULA=Y apt-get install -y msodbcsql17]: exit code: 100
有谁知道为什么它停止使用新的图像版本?
【问题讨论】:
-
以下包有未满足的依赖关系是由于包引用不正确。在这种情况下,
docker run -it --rm "python:3.9" cat /etc/os-release报告:Debian GNU/Linux 11 (bullseye)。
标签: python sql-server docker debian