-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Bug]: Kickstart script doesn't check for default release configuration on Debian-based Linux #12837
Comments
OK, this appears to actually be two bugs:
|
|
@iigorkarpov The problem with that is the same as what we run into trying to use equivalent options for DNF/YUM. Namely, it only applies for that specific invocation of the package manager, and then never again unless users specify the option again. That would allow the install to work correctly, but the moment the user runs a system upgrade in the scenario described in the issue description, the package will be downgraded to the one provided by the distribution repository. |
I see. Though as a matter of fact downgrades require the confirmation. So at least it won't be downgraded silently. |
Shorter term though, we need to figure out why the |
That's because the check will never fail - the command will generate output similar to this:
The nightly versions will all appear, the |
Ah, good catch. Looking at it again I have no idea why I thought that would work when I first wrote it. So effectively what we need to be looking for then is that the entry associated with our repo has the highest probity of any of the entries, or alternatively some option that only lists the entry for the version that would be installed if |
Bug description
The kickstart script will add a custom apt repository on compatible systems to install netdata. By default, this script will prefer nightly builds of netdata, which are given priority level 500 (check via
apt-cache policy netdata
).If a system has a "default release" configuration set-up, e.g. via
APT::Default-Release "stable"
, then the default stable distribution will have priority level 900.This results in the kickstart script calling apt to install netdata, but instead of the nightly version the stable version from the main system repository will be installed (e.g. "buster-stable").
As those versions are usually quite old, they won't meet expectations of the kickstart script, which will then fail and leave a half-installed netdata installation on the system, requiring users to manually clean up and run the kickstart script again (as it will detect an "unknown" installation otherwise).
Expected behavior
One possible expected behaviour would be for the kickstart script to check if:
a) Installation via
apt
is the selected/preferred methodb) What the current "default" priority is or check for a "Default-Release" setting
c) Inform users about a current
apt
system setting that prohibits the script from installing netdata successfullySteps to reproduce
/etc/apt/apt.conf.d
with the contentAPT::Default-Release "stable"
Installation method
kickstart.sh
System info
Netdata build info
Additional info
No response
The text was updated successfully, but these errors were encountered: