Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

"tag byte does not have MSB set" whith gpg_provider internal

Đang mở
#1,478 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go

Hướng nghiên cứu

Reproduce the failure with aptly 1.6.2 using the provided API sequence: add the VSCodium key, then create the mirror. Start by tracing how the internal GPG provider loads trustedkeys.gpg during mirror creation and compare that with the successful key-add response. Done means mirror creation succeeds with the supplied key, without the invalid-data error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hey @neolynx ,

when using the internal gpg_provider, I get the following error when creating or updating a mirror:

unable to initialize GPG verifier: failure loading trustedkeys.gpg keyring: openpgp: invalid data: tag byte does not have MSB set

I am using aptly 1.6.2. Here is a short example using the API, when trying to mirror the vscodium repo:

def add_key():
    resp = requests.get(
        "https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg")

    body = {
        "GpgKeyArmor": resp.text,
        "Keyring": "trustedkeys.gpg",
    }

    url = "http://localhost:8080/api/gpg/key"

    resp = requests.post(url, json=body)

    print(resp.status_code)
    print(resp.text)


def create_mirror():
    body = {
        "Architectures": ["amd64"],
        "Distribution": "vscodium",
        "Filter": "codium (>= 1.102.35058)",
        "FilterWithDeps": True,
        "Name": "vscodium",
        "ArchiveURL": "https://download.vscodium.com/debs",
    }

    url = "http://localhost:8080/api/mirrors"

    resp = requests.post(url, json=body)

    print(resp.status_code)
    print(resp.text)

if __name__ == "__main__":
    # add_key()
    create_mirror()

add_key() works, but create_mirror() responses with that error.

Ngôn ngữ chính
Go
Star
2.9k
Fork
436
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aptly-dev/aptly

Tất cả issue của aptly-dev/aptly

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.