Kickstart Install failing on Ubuntu 24.04

I’ve installed Netdata before no problems, but on a new machine I run the kickstarter install script, and it runs through and installs a really old version.

It appears to be successful all the way through until it attempts to check netdata-updater.sh exists, but thrws an error, and I’m left with netdata v1.43.2

Can anyone see what I’m doing wrong? Heres the full install log.

Thanks very much for any help.

dave@myserver:~$ wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && sh /tmp/netdata-kickstart.sh --stable-channel --disable-telemetry
--2025-01-29 14:40:30--  https://get.netdata.cloud/kickstart.sh
Resolving get.netdata.cloud (get.netdata.cloud)... 2606:4700:10::6816:4ee5, 2606:4700:10::6816:4fe5, 2606:4700:10::ac43:24ac, ...
Connecting to get.netdata.cloud (get.netdata.cloud)|2606:4700:10::6816:4ee5|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 94287 (92K) [application/octet-stream]
Saving to: ‘/tmp/netdata-kickstart.sh’

/tmp/netdata-kickstart.sh                                                         100%[==========================================================================================================================================================================================================>]  92.08K  --.-KB/s    in 0.009s  

2025-01-29 14:40:31 (10.3 MB/s) - ‘/tmp/netdata-kickstart.sh’ saved [94287/94287]


 --- Using /tmp/netdata-kickstart-KLA8l3NqmH as a temporary directory. --- 
 --- Checking for existing installations of Netdata... --- 
 --- No existing installations of netdata found, assuming this is a fresh install. --- 
 --- Attempting to install using native packages... --- 
 --- Repository configuration is already present, attempting to install netdata. --- 
Root privileges required to run mkdir -p /etc/netdata
[/tmp/netdata-kickstart-KLA8l3NqmH]$ sudo mkdir -p /etc/netdata 
 OK 

Root privileges required to run touch /etc/netdata/.opt-out-from-anonymous-statistics
[/tmp/netdata-kickstart-KLA8l3NqmH]$ sudo touch /etc/netdata/.opt-out-from-anonymous-statistics 
 OK 

Root privileges required to run env apt-get install netdata
[/tmp/netdata-kickstart-KLA8l3NqmH]$ sudo env apt-get install netdata 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  fonts-font-awesome fonts-glyphicons-halflings libjs-bootstrap libnetfilter-acct1 netdata-core netdata-plugins-bash netdata-plugins-python netdata-web
Suggested packages:
  apcupsd iw lm-sensors nc fping python3-psycopg2 python3-pymysql
The following NEW packages will be installed:
  fonts-font-awesome fonts-glyphicons-halflings libjs-bootstrap libnetfilter-acct1 netdata netdata-core netdata-plugins-bash netdata-plugins-python netdata-web
0 upgraded, 9 newly installed, 0 to remove and 15 not upgraded.
Need to get 0 B/12.6 MB of archives.
After this operation, 52.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package fonts-font-awesome.
(Reading database ... 78181 files and directories currently installed.)
Preparing to unpack .../0-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1_all.deb ...
Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ...
Selecting previously unselected package fonts-glyphicons-halflings.
Preparing to unpack .../1-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-3_all.deb ...
Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-3) ...
Selecting previously unselected package libjs-bootstrap.
Preparing to unpack .../2-libjs-bootstrap_3.4.1+dfsg-3_all.deb ...
Unpacking libjs-bootstrap (3.4.1+dfsg-3) ...
Selecting previously unselected package libnetfilter-acct1:amd64.
Preparing to unpack .../3-libnetfilter-acct1_1.0.3-4_amd64.deb ...
Unpacking libnetfilter-acct1:amd64 (1.0.3-4) ...
Selecting previously unselected package netdata-core.
Preparing to unpack .../4-netdata-core_1.43.2-1build2_amd64.deb ...
Unpacking netdata-core (1.43.2-1build2) ...
Selecting previously unselected package netdata-plugins-bash.
Preparing to unpack .../5-netdata-plugins-bash_1.43.2-1build2_all.deb ...
Unpacking netdata-plugins-bash (1.43.2-1build2) ...
Selecting previously unselected package netdata-web.
Preparing to unpack .../6-netdata-web_1.43.2-1build2_all.deb ...
Unpacking netdata-web (1.43.2-1build2) ...
Selecting previously unselected package netdata.
Preparing to unpack .../7-netdata_1.43.2-1build2_all.deb ...
Unpacking netdata (1.43.2-1build2) ...
Selecting previously unselected package netdata-plugins-python.
Preparing to unpack .../8-netdata-plugins-python_1.43.2-1build2_all.deb ...
Unpacking netdata-plugins-python (1.43.2-1build2) ...
Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-3) ...
Setting up libnetfilter-acct1:amd64 (1.0.3-4) ...
Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ...
Setting up libjs-bootstrap (3.4.1+dfsg-3) ...
Setting up netdata-core (1.43.2-1build2) ...
Setting up netdata-plugins-bash (1.43.2-1build2) ...
Setting up netdata-plugins-python (1.43.2-1build2) ...
Setting up netdata-web (1.43.2-1build2) ...
Setting up netdata (1.43.2-1build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for fontconfig (2.15.0-1.1ubuntu2) ...
Scanning processes...                                                                                                                                                                                                                                                                                                                
Scanning processor microcode...                                                                                                                                                                                                                                                                                                      
Scanning linux images...                                                                                                                                                                                                                                                                                                             

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
 OK 

Root privileges required to run test -x //usr/libexec/netdata/netdata-updater.sh
[/tmp/netdata-kickstart-KLA8l3NqmH]$ sudo test -x //usr/libexec/netdata/netdata-updater.sh 
 FAILED 

Root privileges required to run test -x //netdata/usr/libexec/netdata/netdata-updater.sh
[/tmp/netdata-kickstart-KLA8l3NqmH]$ sudo test -x //netdata/usr/libexec/netdata/netdata-updater.sh 
 FAILED 

 WARNING  Could not find netdata-updater.sh. This means that auto-updates cannot (currently) be enabled on this system. See https://learn.netdata.cloud/docs/agent/packaging/installer/update for more information about updating Netdata.

Successfully installed the Netdata Agent.

The following non-fatal warnings or errors were encountered:

  - Command "sudo test -x //usr/libexec/netdata/netdata-updater.sh" failed with exit code 1.
  - Command "sudo test -x //netdata/usr/libexec/netdata/netdata-updater.sh" failed with exit code 1.
  - Could not find netdata-updater.sh. This means that auto-updates cannot (currently) be enabled on this system. See https://learn.netdata.cloud/docs/agent/packaging/installer/update for more information about updating Netdata.

To view your system's real-time performance metrics, open your web browser and enter http://NODE:19999.
Replace NODE with the IP address or hostname of your Netdata server to access the dashboard.

Official documentation can be found online at https://learn.netdata.cloud/docs/.

Looking to monitor all of your infrastructure with Netdata? Check out Netdata Cloud at https://app.netdata.cloud.

Join our community and connect with us on:
  - GitHub: https://github.com/netdata/netdata/discussions
  - Discord: https://discord.gg/5ygS846fR6
  - Our community forums: https://community.netdata.cloud/
Root privileges required to run rm -rf /tmp/netdata-kickstart-KLA8l3NqmH
[/home/dave]$ sudo rm -rf /tmp/netdata-kickstart-KLA8l3NqmH 
 OK 

dave@myserver:~$ netdata -v
netdata v1.43.2

Based on the output, you’ve somehow ended up with Netdata installed from Ubuntu’s repositories instead of a copy from our repositories. This is usually a result of a non-standard priority configuration for the system repositories.

Can you share the output of apt-cache policy netdata on the affected system? That should let us confirm whether it is indeed an issue with repository priorities, or is something else.

Thanks for your reply, does this help?

dave@myserver:~$ apt-cache policy netdata
netdata:
  Installed: 1.43.2-1build2
  Candidate: 1.43.2-1build2
  Version table:
     2.2.1 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     2.2.0 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     2.1.1 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     2.1.0 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     2.0.3 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     2.0.2 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     2.0.1 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     2.0.0 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     1.47.5 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     1.47.4 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     1.47.3 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     1.47.2 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     1.47.1 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     1.47.0 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     1.46.3 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     1.46.2 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     1.46.1 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
     1.46.0 500
        500 http://repository.netdata.cloud/repos/stable/ubuntu noble/ Packages
 *** 1.43.2-1build2 1001
       1001 http://mirror.hetzner.com/ubuntu/packages noble/universe amd64 Packages
       1001 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
        100 /var/lib/dpkg/status

Yes. It is indeed an issue of repository priorities. You should be able to get the latest version of Netdata by increasing the priority of the http://repository.netdata.cloud/repos/stable/ubuntu repository to at least 1001 (the current priority of the system repositories) by creating a file in /etc/apt/preferences.d with the exact contents:

Package: *
Pin: origin "repository.netdata.cloud"
Pin-Priority: 1001

Alternatively, you could take a similar approach to lower the priority for mirror.hetzner.com and archive.ubuntu.com to 500 or lower (500 is the default priority for system repositories on Ubuntu and Debian systems).

Either way, once you update the priority configuration, you should be able to just run apt upgrade netdata to get the correct version of Netdata.

1 Like

Thank you so much, that was indeed the problem. Great support, fast and clear explanation.

Thanks again!