【问题标题】:docker build fails when installing msodbcsql17安装 msodbcsql17 时 docker build 失败
【发布时间】:2023-01-11 04:00:44
【问题描述】:

我有一个两周前成功构建的 Dockerfile。我什么也没做,现在在尝试构建时出现此错误:

#5 32.40 The following information may help to resolve the situation:
#5 32.40 
#5 32.40 The following packages have unmet dependencies:
#5 32.63  msodbcsql17 : Depends: unixodbc (>= 2.3.1) but it is not going to be installed
#5 32.67 E: Unable to correct problems, you have held broken packages.

Dockerfile 的相关部分是:

RUN apt-get update \
 && apt-get install --yes --no-install-recommends \
        apt-transport-https \
        curl \
        gnupg \
        unixodbc-dev \
 && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
 && curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list \
 && apt-get update \
 && ACCEPT_EULA=Y apt-get install --yes --no-install-recommends msodbcsql17 \

【问题讨论】:

    标签: docker unixodbc


    【解决方案1】:

    更改行:

            unixodbc-dev 
    

    到:

            unixodbc 
    

    【讨论】:

      猜你喜欢
      • 2021-10-21
      • 2018-01-20
      • 2021-09-01
      • 2018-04-12
      • 2021-03-06
      • 2021-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多