[Solved] Cannot install cockpit in Fedora CoreOS

I am following the official documentation for installing cockpit on Fedora CoreOS, and I am running into an error.

When I get to the step

podman container runlabel INSTALL quay.io/cockpit/ws

I get the error

cockpit-ws must not be installed in the host
Error: `/proc/self/exe run --rm --privileged -v /:/host -e IMAGE=quay.io/cockpit/ws:latest quay.io/cockpit/ws:latest /container/label-install quay.io/cockpit/ws:latest` failed: exit status 1

Unless the offical documentation somehow installs cockpit-ws on the host somehow, I didn’t explicitly install it.

Any ideas? Thanks.

It doesn’t look like installing cockpit-system cockpit-ostree cockpit-podman pulls in cockpit-ws here.

What’s the output of rpm -q cockpit-ws?

The output of

rpm -q cockpit-ws

is

cockpit-ws-250.1.1-1.el8.x86_64

This suggests that cockpit-ws is installed.

I think I figured out the problem. In the process of installing cockpit, I also installed some cockpit extensions as suggested by the official documentation. Well, in this process, I somehow also installed the cockpit-identities package which pulls in the cockpit package which also pulls in the package cockpit-ws

For anyone’s future reference, I figured this out with the following commands:

Figure out what package requires cockpit-ws:
rpm -q --whatrequires cockpit-ws

cockpit-250.1.1-1.el8.x86_64 is the output

Figure out what requires cockpit:
rpm -q --whatrequires cockpit
cockpit-identities-0.1.12-1.el8.noarch is the output.

and nothing requires cockpit-identities so it’s removed

rpm -q --whatrequires cockpit-identities
no package requires cockpit-identities is the output

From there, follow the official documentation (without cockpit-identities, heh) to get cockpit working.

Thanks to everyone on this forum working to help people like me figure stuff out. :smile: