apt-get gives the following warning when some of the commands below are run by a GitHub Action on an Ubuntu-lastest GitHub runner:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
What else should be used instead of apt-get to do the same things that the following commands do on the Ubuntu-latest GitHub runner?
sudo apt install -y dos2unix
sudo apt update && sudo apt upgrade
sudo apt clean
We originally just ignored the warning message above. But last night a lot of our jobs on those Ubuntu-latest runners returned wonky results, and some of the broken jobs had the apt-get warning shown above. We do not currently have last night's wonky logs to post here. But we want to prevent unpredictable intermittent wonky behavior.
Is there a better alternative to apt-get to use for scripts?
apt-getper your text oraptper your examples? You seem to be confusing them