Why installing openjdk-7-jdk on Ubuntu Trusty installs systemd as well?

Colin Law clanlaw at gmail.com
Fri Dec 30 15:37:44 UTC 2016


On 30 December 2016 at 12:24, Yuri Kanivetsky <yuri.kanivetsky at gmail.com> wrote:
> Hi,
>
> I tried both apt and aptitude. But I can't see systemd in the output
> of neither debtree (debtree openjdk-7-jdk), nor apt-rdepends
> (apt-rdepends openjdk-7-jdk). Am I to add any switches to the
> commands?
>
> The bigger picture is that I'm provisioning a server with ansible. I
> need it to install elasticsearch, which depends on java. Which brings
> systemd with itself. After which ansible fails to enable
> elasticsearch. Since it sees systemctl and tries to enable
> eslasticsearch with systemctl. But elasticsearch doesn't come with
> systemd unit file. It comes with init script.
>
> Does openjdk-7-jdk really depends on systemd? Is there a way to avoid
> installing systemd?

What does
apt-cache policy openjdk-7-jdk
give?

Colin




More information about the ubuntu-users mailing list