Mssql-tools18 not installing on debian 12

Gaurav Singh 0 Reputation points
2024-09-11T20:14:13.82+00:00

Hi,

I am trying to install mssql-tools18 on a debian docker image.

this is what my dockerfile looks like:

FROM python:3.11.10

RUN curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg && \
  curl https://packages.microsoft.com/config/debian/12/prod.list | tee /etc/apt/sources.list.d/mssql-release.list && \
  apt-get update -y && \
  apt-get upgrade -y && \
  ACCEPT_EULA=Y apt-get install -y \
    libgssapi-krb5-2 \
    build-essential \
    unixodbc-dev \
    libffi-dev \
    libssl-dev \
    msodbcsql18 \
    mssql-tools18 && \
  apt-get clean all && \
  curl -sSL https://install.python-poetry.org | python3 - && \
  $HOME/.local/bin/poetry config virtualenvs.create false

COPY poetry.lock pyproject.toml /mssql-helmsman/

# the PATH update in the previous step doesn't take in time
RUN cd /mssql-helmsman && \
    $HOME/.local/bin/poetry install --no-dev --no-root && \
    pip install aws-sso-util

RUN mkdir -p /mssql-helmsman/src

COPY src/ /mssql-helmsman/src/

# copy this separately to improve incremental build times
COPY entrypoint.sh /mssql-helmsman/

ENTRYPOINT ["/bin/bash", "/mssql-helmsman/entrypoint.sh"]

When at the mssql-tools18 installation step, i get this issue

42.30 Get:1 https://packages.microsoft.com/debian/12/prod bookworm/main arm64 msodbcsql18 arm64 18.4.1.1-1 [689 kB]

42.58 Ign:2 https://packages.microsoft.com/debian/12/prod bookworm/main arm64 mssql-tools18 arm64 18.4.1.1-1

43.77 Ign:2 https://packages.microsoft.com/debian/12/prod bookworm/main arm64 mssql-tools18 arm64 18.4.1.1-1

45.97 Ign:2 https://packages.microsoft.com/debian/12/prod bookworm/main arm64 mssql-tools18 arm64 18.4.1.1-1

50.17 Err:2 https://packages.microsoft.com/debian/12/prod bookworm/main arm64 mssql-tools18 arm64 18.4.1.1-1

50.17 Could not handshake: A TLS fatal alert has been received. [IP: 4.155.111.140 443]

50.17 Fetched 689 kB in 8s (86.7 kB/s)

50.17 E: Failed to fetch https://pmc-geofence.trafficmanager.net/debian/12/prod/pool/main/m/mssql-tools18/mssql-tools18_18.4.1.1-1_arm64.deb?geofence=true Could not handshake: A TLS fatal alert has been received. [IP: 4.155.111.140 443]

50.17 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I can't seem to be able to curl this mirror as well

curl https://pmc-geofence.trafficmanager.net/

curl: (35) LibreSSL/3.3.6: error:1404B458:SSL routines:ST_CONNECT:tlsv1 unrecognized name

This used to work before. Did this mirror get moved to someplace else and its not reflected correctly in debian repositories?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,998 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CathyJi-MSFT 22,306 Reputation points Microsoft Vendor
    2024-09-12T02:42:41.5866667+00:00

    Hi @Gaurav Singh

    I am not familiar with Debian, try my best to research this online. It seems a known issue. Please refer to Failure to install mssql-tools18 due to lack of secure connection to get detail information.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.