I'm trying to install openjdk-7-jdk
on Ubuntu Trusty (with apt
or aptitude
), but it seems to depend on systemd
, which I'd like to avoid. But also, I can't see systemd
in the output of debtree
or apt-rdepends
. Why is that so? Does openjdk-7-jdk
depend on systemd
or not?
To give you the bigger picture, I'm provisioning a server. And it all happens when installing elasticsearch
. It wants java
, and java
wants systemd
. But after installing systemd
, it can't enable elasticsearch
, since it comes with init script, not systemd unit file. It sees systemctl
and supposes it's to be used, not service
.
UPD It doesn't need systemd
until I do apt update
. Before apt update
:
# apt-cache policy openjdk-7-jdk
openjdk-7-jdk:
Installed: (none)
Candidate: 7u101-2.6.6-0ubuntu0.14.04.1
Version table:
7u101-2.6.6-0ubuntu0.14.04.1 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
7u51-2.4.6-1ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
# apt-cache policy systemd
systemd:
Installed: (none)
Candidate: (none)
Version table:
After apt update
:
# apt-cache policy openjdk-7-jdk
openjdk-7-jdk:
Installed: (none)
Candidate: 7u121-2.6.8-1ubuntu0.14.04.1
Version table:
7u121-2.6.8-1ubuntu0.14.04.1 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
7u51-2.4.6-1ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
# apt-cache policy systemd
systemd:
Installed: (none)
Candidate: 204-5ubuntu20.20
Version table:
204-5ubuntu20.20 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
Aren't they switching Ubuntu Trusty to systemd
?
Also, the OS is running in lxc container, but I doubt that has to do with this. And it's a fresh install, so to say. I create container, log in, apt update
, apt install openjdk-7-jdk
, and it wants systemd
.
/etc/apt/sources.list
:
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
And nothing in /etc/apt/sources.list.d
.
systemd
, that would solve your problem as well has having a longer support lifespan remaining than Ubuntu 14.04 (Trusty). – Mark Stosberg Dec 30 '16 at 15:27