Unable to download from https://dl.winehq.org/wine-builds/

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ubiqprince
Newbie
Newbie
Posts: 1
Joined: Mon Aug 28, 2023 1:37 am

Unable to download from https://dl.winehq.org/wine-builds/

Post by ubiqprince »

HI,
I am a new user of winehq. I am trying to install wine into a docker container.

Below is the contents of my dockerfile

Code: Select all

FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base
RUN apt-get update -y && \
    apt-get install -y --no-install-recommends \
        software-properties-common \
        ca-certificates \        
        wget

# Add Wine repository and install Wine
RUN dpkg --add-architecture i386 && \
    mkdir -pm755 /etc/apt/keyrings && \
    wget -O /etc/apt/keyrings/winehq-archive.key --no-check-certificate https://dl.winehq.org/wine-builds/winehq.key && \
	wget -NP /etc/apt/sources.list.d/ --no-check-certificate https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources && \
    apt-get update -y && \    
    apt-get install -y --install-recommends winehq-stable
I am getting error when trying to download from the winehq server. I also tried by skipping the certificate check by adding --no-check-certificate option, still i get the below error.

10.47 W: Failed to fetch https://dl.winehq.org/wine-builds/ubunt ... /InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 151.101.158.217 443]

Can I please get some assistance or directions in this regard?

Thanks in advance
Locked