-
Notifications
You must be signed in to change notification settings - Fork 82
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
WARNING: apt does not have a stable CLI interface. Use with caution in scripts. #41
Comments
Not sure if this is the proper way to do this, but I wanted to also report I am getting this warning. Running clean install on Debian11 bullseye minimal kernel5.16. I have read it could be that just, "apt" was used in a script instead of, "apt-git" and its just a warning because using only apt will make progress bars, and that could cause errors in some scripts. |
So a few options come to mind:
|
How about simply ignoring a Warning as long it works as intended? |
How about just using apt-get? There is zero reason to use apt in a script. It is literally a wrapper around apt-get / apt-cache / dpkg with a slightly nicer interface, which you don't need in a script. |
Hello,
Also get the message "WARNING: apt does not have a stable CLI interface. Use with caution in scripts"
|
This wouldnt make it any faster! And please do not involve any of the listed contributors. In general help from Contributors is highly appriciated, but this PR comes to a time where to many parts are moving these days. I am open to your suggestion and I might sound rude with my first question but I dont like ranting here. To be fair, yes, I planned already to switch to apt-get, as done today in sonar ( my other project here ). Also I planned a long time ago to switch the "backend" to a, imho, better alternative called camera-streamer. Therefor I am sorry to refuse your PR, to any other time PR's by enthusiasts like you are highly welcome and appriciated. As last but not least, I dont know exactly if I had it documented well but please open PRs against the develop branch! I let this issue open that you can track if I had made changes, I will quote it in my commits. Regards Kwad |
Thank you @KwadFan for the explanation. |
I would aprriciate it if you test the branch mentioned in #46 Let me know your opinion please. Regards Kwad |
Hi @KwadFan just saw this. In the middle of a print job at the moment. Will try sometime this week. Thank you for continuing to work on this issue! |
You can use the develop branch. I merged it already there. Will change the behavior slightly. New users are overwhelmed by make config, so will make that optional. |
What happened
Fresh install of crowsnest on nearly-fresh install of Mainsail (which was freshly installed on a freshly-built RaspbianOS Lite 64-bit Bullseye on a Raspberry Pi 4B)
Note the
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
That happens later on in the same script as well
What did you expect to happen
No warning because whatever is trying to be grep'd / awk'd / sed'd / etc in the script out of
apt
should be retrieved using an appropriate methodHow to reproduce
crowsnest
afreshmake install
Additional information
No response
The text was updated successfully, but these errors were encountered: