GPG Key Error for Microsoft SQL Server 2022 on Ubuntu 22.04 #517

Closed
opened 2026-02-04 19:26:56 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @KevinD987 on GitHub (Feb 18, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

SQL Server 2022 LXC

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/sqlserver2022.sh)"

📝 Provide a clear and concise description of the issue.

When running the installation script for Microsoft SQL Server 2022 on Ubuntu 22.04, the following error occurs during the apt-get update step:
W: GPG error: https://packages.microsoft.com/ubuntu/22.04/mssql-server-2022 jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF E: The repository 'https://packages.microsoft.com/ubuntu/22.04/mssql-server-2022 jammy InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default.
This means that the GPG key for the Microsoft repository is missing or incorrect, preventing the package manager from verifying the authenticity of the repository.

Suggested Fix:

To resolve this issue, update the script to properly import and use the correct GPG key.

sudo mkdir -p /etc/apt/keyrings curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null

Best regards

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

🔄 Steps to reproduce the issue.

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/sqlserver2022.sh)"

Paste the full error output (if available).

W: GPG error: https://packages.microsoft.com/ubuntu/22.04/mssql-server-2022 jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF E: The repository 'https://packages.microsoft.com/ubuntu/22.04/mssql-server-2022 jammy InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default.

🖼️ Additional context (optional).

No response

Originally created by @KevinD987 on GitHub (Feb 18, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? SQL Server 2022 LXC ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/sqlserver2022.sh)" ### 📝 Provide a clear and concise description of the issue. When running the installation script for Microsoft SQL Server 2022 on Ubuntu 22.04, the following error occurs during the apt-get update step: `W: GPG error: https://packages.microsoft.com/ubuntu/22.04/mssql-server-2022 jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF E: The repository 'https://packages.microsoft.com/ubuntu/22.04/mssql-server-2022 jammy InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default.` This means that the GPG key for the Microsoft repository is missing or incorrect, preventing the package manager from verifying the authenticity of the repository. Suggested Fix: To resolve this issue, update the script to properly import and use the correct GPG key. `sudo mkdir -p /etc/apt/keyrings curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null` Best regards ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 🔄 Steps to reproduce the issue. bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/sqlserver2022.sh)" ### ❌ Paste the full error output (if available). `W: GPG error: https://packages.microsoft.com/ubuntu/22.04/mssql-server-2022 jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF E: The repository 'https://packages.microsoft.com/ubuntu/22.04/mssql-server-2022 jammy InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default.` ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-04 19:26:56 +03:00
Author
Owner

@MickLesk commented on GitHub (Feb 18, 2025):

Old state? Already fixed and Tested several Times

@MickLesk commented on GitHub (Feb 18, 2025): Old state? Already fixed and Tested several Times
Author
Owner

@KevinD987 commented on GitHub (Feb 18, 2025):

No tested today.

@KevinD987 commented on GitHub (Feb 18, 2025): No tested today.
Author
Owner

@MickLesk commented on GitHub (Feb 18, 2025):

Fixed since 80min try again and then Close issue

@MickLesk commented on GitHub (Feb 18, 2025): Fixed since 80min try again and then Close issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#517