Repository navigation
ci: use apt-get instead of apt in workflow steps - #1963
Open
Martini991 wants to merge 1 commit into
Open
Martini991 wants to merge 1 commit into
Martini991 wants to merge 1 commit into
Conversation
apt is meant for interactive use and prints "WARNING: apt does not have a stable CLI interface" when run from a script. Use apt-get in the deb jobs of ci.yaml and deprecated.yaml. Flags and step names are unchanged.
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.
Problem
The deb jobs in
ci.yamlanddeprecated.yamlrunapt(update --audit,install,remove), so every call logs:Follow-up to #1962, which makes the same switch in the setup scripts. The two PRs are independent.
Change
apt→apt-getin fiverun:lines. Flags and step names are unchanged;apt-getsupports--audittoo.Testing
Ran the deb job steps in containers, with the Node.js 24 setup script from
master:debian:13,aptdebian:13,apt-getupdate --auditinstall nodejs -yremove nodejs -y+install nsolid -yubuntu:20.04(deprecated.yaml, Node.js 18):apt-get install nodejs -yinstalls v18.20.8.Note: the
debian:11jobs already fail onmaster(several bullseye-security packages return 404, e.g. this run), so they will fail here too. I reproduced the same failure with bothaptandapt-get.Prepared with the help of Claude Code; I reviewed the change and ran the tests above.