The installation of telegraf fails on Suse 12.3 (Enterprise) due to a dependency issue. Recent telegraf versions require shadow-utils, and this package does not exist in Suse 12.3.
The installation can be forced (rpm -i --nodeps telegraf-...), and then telegraf worked well for me. So I suspect that the dependency is not required for Suse12.3. I suspect that telegraf wants to ensure that useradd is available, and this in Suse12.3 is part of the shadow package.
So I think that the dependency list for Suse should be modified. For RHEL/CentOS it was OK for me.
n/a
Tested with telegraf-1.5.0-1.x86_64.rpm and telegraf-1.5.2-1.x86_64.rpm. Worked with CentOS/RHEL 7.4, but failed with SUSE Linux Enterprise Server 12 patchlevel 3. I did not test older Suse versions.
suse1:/tmp # zypper install /tmp/telegraf-1.5.2-1.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: nothing provides shadow-utils needed by telegraf-1.5.2-1.x86_64
Solution 1: do not install telegraf-1.5.2-1.x86_64
Solution 2: break telegraf-1.5.2-1.x86_64 by ignoring some of its dependencies
...
Clean installation not requiring to ignore a (false?) alarm about the dependency
see above.
[Include gist of relevant config, logs, etc.]
Opening a feature request kicks off a discussion.
Related with PR https://github.com/influxdata/telegraf/pull/3505 and issue https://github.com/influxdata/telegraf/issues/3447
Workaround:
github.com/influxdata/telegraf $ diff scripts/build.py scripts/build_suse.py
649c649
< fpm_command += "--depends coreutils --depends shadow-utils --rpm-posttrans {}".format(POSTINST_SCRIPT)
---
> fpm_command += "--depends coreutils --depends shadow --rpm-posttrans {}".format(POSTINST_SCRIPT)
Im having the same issue ( for influxdb and kapacitor as well ). Im installing on a custom distro and the shadow-utils dependency is getting in the way.
As a workaround you can install with no dependencies:
sudo rpm -i --nodeps telegraf-1.7.2-1.x86_64.rpm
Same on Suse 15/SLE15
Faced the same issue in Aug 2020 on Suse 42.2
This repo is fixing this https://software.opensuse.org//download.html?project=home%3ABerlinOnline%3Atelegraf&package=shadow-utils
Most helpful comment
As a workaround you can install with no dependencies: