Estou tentando instalar openjdk-7-jdkno Ubuntu Trusty (com aptou aptitude), mas parece depender systemd, o que eu gostaria de evitar. Mas também não consigo ver systemdna saída de debtreeor apt-rdepends. Por que? Será que openjdk-7-jdkdependem systemdou não?
Para lhe dar uma visão geral, estou provisionando um servidor. E tudo acontece durante a instalação elasticsearch. Quer javae javaquer systemd. Mas após a instalação systemd, ele não pode ser ativado elasticsearch, pois vem com o script init, não com o arquivo de unidade systemd. Ele vê systemctle supõe que deve ser usado, não service.
UPD Não precisa systemdaté que eu faça apt update. Antes 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:
Depois 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
Eles não estão mudando o Ubuntu Trusty systemd?
Além disso, o sistema operacional está sendo executado no contêiner lxc, mas duvido que isso tenha a ver com isso. E é uma instalação nova, por assim dizer. I criar recipiente, faça o login, apt update, apt install openjdk-7-jdk, e ele quer 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
E nada dentro /etc/apt/sources.list.d.
systemd, isso resolveria o seu problema, além de ter uma vida útil de suporte mais longa que o Ubuntu 14.04 (Trusty).