-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add deb822 apt sources to install section in Debian manual #23249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -114,11 +114,21 @@ Docker from the repository. | |||||
sudo curl -fsSL {{% param "download-url-base" %}}/gpg -o /etc/apt/keyrings/docker.asc | ||||||
sudo chmod a+r /etc/apt/keyrings/docker.asc | ||||||
|
||||||
# Add the repository to Apt sources: | ||||||
# Add the repository to Apt sources (legacy format): | ||||||
echo \ | ||||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \ | ||||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | ||||||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||||||
|
||||||
# Add the repository to Apt sources (new deb822 format, introduced with Trixie): | ||||||
echo -e \ | ||||||
"Types: deb\n\ | ||||||
URIs: https://download.docker.com/linux/debian/\n\ | ||||||
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")\n\ | ||||||
Components: stable\n\ | ||||||
Signed-By: /etc/apt/keyrings/docker.gpg" | \ | ||||||
|
Signed-By: /etc/apt/keyrings/docker.gpg" | \ | |
Signed-By: /etc/apt/keyrings/docker.asc" | \ |
Just a typo correction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong way around. This should be a machine-readable file not ASCII export.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, then .gpg
should be fine. Kept that in the newest commit 7e2650e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarifying! Now I switched back to the originally used .asc
.
But if you prefer gpg --dearmor
I can also include that. Just let me know. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deb822 format was introduced in apt version 1.1 ten years before the release of Trixie
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh 😅 , thanks for that comment.
Did not know that, I can adjust the comment together with possible other review comments.
Maybe we should just say:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop this comment and the use of non-deb822 format sources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed with 7e2650e
(Hope it is still ok to keep the original comment, which just stated
# Add the repository to Apt sources:
. The paragraph seemed to me a bit lonely without the comment. At least explanations about (non-)deb822 are gone now).