Fixes #39506 - remove invalid apt-get update option#1042
Closed
sbernhard wants to merge 1 commit into
Closed
Conversation
dosas
suggested changes
Jul 8, 2026
| } | ||
| export DEBIAN_FRONTEND=noninteractive | ||
| apt-get -y update | ||
| apt-get update |
There was a problem hiding this comment.
I disagree:
from the man page
-y, --yes, --assume-yes
Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively. If an undesirable situation, such as changing a held package, trying to install an
unauthenticated package or removing an essential package occurs then apt-get will abort. Configuration Item: APT::Get::Assume-Yes.
Contributor
Author
There was a problem hiding this comment.
Isn't this for PKG install/ u install etc.?
Contributor
Author
There was a problem hiding this comment.
Actually, I had the same impression than you. I had a look at the apt-get source and asked AI - the opton “-y” is not yet used in apt-get update. BUT, its is not YET used. Maybe somewhere in the future. It does not hurt right now - so, let is as it yes.
I will close this PR - Dont fix whats not broken!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.