Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
GPG error updating Debian repositories
-
Is there any documentation about how ProGet generate the certificates for Debian repositories? or, where I could find them in a Windows installation? To have something to start working with.
I tried searching for any file with .asc extension, but there is nothing found in my Windows installation, so I guess certificates like stable.asc are generated/stored somehow on the website for download 驴?I'm totally willing to help as far as I can. Thank you.
-
Hi @daniel-scati,
ProGet generates a signing key when you first create a Debian feed; it's stored in the database, so you won't be able to find it on disk. You can "see" (i.e. download) the key under Manage Feed > "signing key".
We don't really document how the key is generated, but looking at the code... we use BouncyCastle to create a 4096-bit nonexpiring PGP key with
<feed-name>@progetas the pgp comment. That's what gets saved in the database, and is what you end up downloading.So creating a new feed would give you a new signing key.
Hope that helps.
Cheers,
Alana -
Hello
Just in case, starting from Ubuntu 22.04, certificates for Debian repositories stored in Proget can be imported using this commandcurl -fsSL ${proget}/${feed}/keys/${feed}.asc | sudo gpg --dearmor -o /etc/apt/keyrings/${feed}.gpgA source file in /etc/apt/sources.list.d/ will contain
deb [arch=amd64 signed-by=/etc/apt/keyrings/${feed}.gpg] ${proget}/${feed} ${distribution} ${components}Best regards
PhilippeC. -
Thanks @philippe-camelio_3885!
Should we update our docs to reflect this? Does this basically only apply to Ubuntu 22.04+?
Currently, the instruction we have uses
apt-key addinstead:
https://docs.inedo.com/docs/proget-feeds-debianThanks,
Alana -
-
@philippe-camelio_3885 thank you much, we just updated the docs :)
-
@philippe-camelio_3885 thanks for the piece of advice about how to import the certificate on Jammy, but I already used that way, and it also fails.
After several tests I found out the root of the problem, and strange as it may seem, it is caused for the Description field in the Properties of Manage Feed. The feed description supports markdown format, but if it contains a break line with a blank line, after some minutes (or hours?) it will start to fail in the client when execute an update.
One example of a description that reproduce the bug could be:**Fabricaci贸n** Instaladores Ubuntu liberados a producci贸nThe second blank line is the one that causes the issue. Fortunately, edit the description removing the blank line solves it

-
@daniel-scati great work finding that :)
The Feed Description is written in the Release Index, and the Debian "Stanza" format is kind of weird like that.
However, newlines should already be replaced...
var desc = FeedCache.GetFeed(this.feedId)?.Feed_Description; if (!string.IsNullOrWhiteSpace(desc)) writer.WriteLine($"Description: {desc.ReplaceLineEndings("\n ")}");A blank line with a space isn't supposed to create a new "stanza", but maybe it is in your version?? We'll look closer; perhaps we should just strip the newline altogether and replace it with a space.
Cheers,
Alana -
@daniel-scati we'll also get this fixed via PG-2635 in an upcoming maintenance release (hopefully 2024.2), which is targeted for next Friday.
-
Fix verified on 2024.2 version.
Thank you.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 馃挆
Register Login