ubuntu:18.04 unable to install tomcat9 due to libsystemd0 dependency problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Fix Released
|
High
|
Tomáš Virtus |
Bug Description
### Steps to reproduce
1. `docker pull docker.
2. `docker run --pull --rm -it docker.
2. Inside the docker container:
```bash
apt-get update
apt-get install -y tomcat9
```
### Expected result
* `tomcat9` is installed successfully
### Actual result
* Installation fails with unresolvable dependencies:
```bash
root@c9849e6844
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
tomcat9 : Depends: systemd (>= 215) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
```
Attempting to install systemd results in the following:
```bash
root@c9849e6844
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
systemd : Depends: libsystemd0 (= 237-3ubuntu10.53) but 237-3ubuntu10.54 is to be installed
E: Unable to correct problems, you have held broken packages.
```
### Workaround
* Installing tomcat9 works if you downgrade libsystemd:
```bash
apt-get install -y --allow-downgrades tomcat9 libsystemd0=
```
### Info
* /etc/cloud/
* Image digest: `sha256:
* Pulled from library/ubuntu Fri Sep 2 03:39:03 UTC 2022
description: | updated |
Changed in cloud-images: | |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
summary: |
- ubuntu:18.04 unable to install tomcat9 + ubuntu:18.04 unable to install tomcat9 due to libsystemd0 dependency + problem |
I think this is probably a ubuntu bug, caused by a version mismatch between systemd and libsystemd0.
I've raised https:/ /bugs.launchpad .net/ubuntu/ +source/ systemd/ +bug/1988523