GPG Verification Failure (NO_PUBKEY) on Ubuntu 26.04 due to Key Rotation Mismatch
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- bash
- Lĩnh vực
- devops
Hướng nghiên cứu
Đọc các dòng 183-191 của installer.sh, tập trung vào việc chọn khóa dựa trên phiên bản và chuyển hướng của gpg --dearmor. Xác minh rằng keyring vẫn giữ cả microsoft.asc và microsoft-2025.asc, sau đó chạy cập nhật kho Edge trên Ubuntu 26.04; hoàn tất khi apt-get update không còn báo cáo NO_PUBKEY EB3E94ADBE1229CF.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The installer.sh script (Release 2026-04-23) fails on Ubuntu 26.04 "Resolute Raccoon" when attempting to install Microsoft Edge. While the script correctly identifies 26.04 and imports the new microsoft-2025.asc key, the Microsoft Edge repository is still signed with the legacy microsoft.asc key. Because the script overwrites the keyring with only the version-specific key, the subsequent apt-get update fails because the public key for the Edge repository is unavailable.
Error log:
W: GPG error: https://packages.microsoft.com/repos/edge stable 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/repos/edge stable InRelease' is not signed.
Root CauseLine 183-187: The script uses dpkg --compare-versions to select either the 2025 key or the legacy key. Line 191: The script uses gpg --dearmor > "$HOME/microsoft.gpg", which replaces any existing keys in the temporary file rather than appending them. Result: On Ubuntu 26.04, the legacy key (required by the Edge repo) is missing from /usr/share/keyrings/microsoft.gpg, causing the installation to exit with status 100. Suggested FixModify the key import logic to merge both keys into the keyring during the transition period, or ensure the Edge repository enrollment includes the legacy key explicitly.
Example:
Import both keys to ensure compatibility with legacy-signed repos (Edge) and new repos (Intune)
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > "$HOME/microsoft.gpg"
curl -fsSL https://packages.microsoft.com/keys/microsoft-2025.asc | gpg --dearmor >> "$HOME/microsoft.gpg"
- Ngôn ngữ chính
- Shell
- Star
- 1.1k
- Fork
- 306
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/shell-intune-samples
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/shell-intune-samples#266 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
microsoft/shell-intune-samples#250 · 1 bình luận ·
-
Suppport Fedora Linux 44Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
microsoft/shell-intune-samples#300 · 5 bình luận · 1 reaction ·
-
Something went wrong [4ulu5]Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của microsoft/shell-intune-samples
Issue tương tự
-
area: compat area: parsing bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
reubeno/brush#1526 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add dependabotĐang mởfeat
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 72/100
open-nudge/opentemplate#204 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
omarchy-brightness-keyboard: double idle-blank saves brightness 0, so wake 'restore' keeps the keyboard backlight offCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Type/Improvement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
wso2/product-integrator-mi#5099 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Windows 上 pwsh 工具名未按 exec 分类着色,与状态圆点颜色家族分裂Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ccch1mneyyy/dsh-TUI#1555 ·
Maintainer thường phản hồi trong vòng 1 ngày