microsoft / linux-package-repositories

Microsoft Packaged Linux Software (DEBs, RPMs, etc) are hosted on packages.microsoft.com (PMC) made available as native Linux repositories for use with package managers like APT, YUM, etc.
https://packages.microsoft.com
MIT License
64 stars 17 forks source link

https://packages.microsoft.com/ubuntu/22.04/prod/dists gives 403 #44

Closed bsteinfeld closed 1 year ago

bsteinfeld commented 1 year ago

Describe the issue

When I try to run apt update I get the following error:

E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy Release' is not signed.

I believe this is because https://packages.microsoft.com/ubuntu/22.04/prod/dists/ is giving a 403 - so are other versions of Ubuntu.

When did the issue occur?

I first saw this issues around 4pm EST.

If applicable, what package did you attempt to install, and from which repo? I was attempting to install dotnet-sdk-7.0, but things failed on apt update.

Steps to Reproduce

curl -SLO "https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb" \
    && dpkg -i packages-microsoft-prod.deb \
    && rm packages-microsoft-prod.deb \
    && apt update

Actual Result

E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy Release' is not signed.

Expected Result No error.

Screenshots

image

Additional context

dustin-rcg commented 1 year ago

Same here. Our builds are failing for ubuntu/20.04/mssql-server-2019.

2023-02-28 20:56:28. deb [arch=amd64,armhf,arm64] https://packages.microsoft.com/ubuntu/20.04/mssql-server-2019 focal main
2023-02-28 20:56:28. Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
2023-02-28 20:56:28. Ign:2 https://packages.microsoft.com/ubuntu/20.04/mssql-server-2019 focal InRelease
2023-02-28 20:56:28. Get:3 https://packages.microsoft.com/ubuntu/20.04/mssql-server-2019 focal Release [2532 B]
2023-02-28 20:56:28. Ign:4 https://packages.microsoft.com/ubuntu/20.04/mssql-server-2019 focal Release.gpg
2023-02-28 20:56:29. Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
2023-02-28 20:56:29. Hit:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease
2023-02-28 20:56:29. Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease
2023-02-28 20:56:29. Reading package lists...
2023-02-28 20:56:32. 
2023-02-28 20:56:32  E: The repository 'https://packages.microsoft.com/ubuntu/20.04/mssql-server-2019 focal Release' is not signed.
jasonzio commented 1 year ago

This should be corrected now.

kadams54 commented 1 year ago

FWIW, I'm running into the same issue in CI when it tries to install the azure-cli:

E: The repository 'https://packages.microsoft.com/repos/azure-cli focal Release' is not signed.

I was able to workaround the error by setting up Microsoft's repo following the instructions here, rather than (as we'd previously done) the steps included in the Azure CLI instructions.

Definitely seems like something that needs to be fixed posthaste, but if anyone needs a workaround in the meantime, maybe this will work for you too?

daviddavis commented 1 year ago

@kadams54 can you try again? The issue should be fixed now.

kadams54 commented 1 year ago

Confirmed, thanks!