Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to Cockpit 329 removes cockpit-pcp #21344

Open
martinpitt opened this issue Nov 27, 2024 Discussed in #21343 · 20 comments
Open

Updating to Cockpit 329 removes cockpit-pcp #21344

martinpitt opened this issue Nov 27, 2024 Discussed in #21343 · 20 comments

Comments

@martinpitt
Copy link
Member

Discussed in #21343

Originally posted by compbl November 27, 2024
When I attempt to update to Cockpit 329 via the software updates page I am receiving an error "The following packages have unmet dependencies: cockpit-bridge: Conflicts: cockpit-pcp" I am assuming I have to remove cockpit-pcp, but cannot find how to do that. Any help would be appceiated. Running on Ubuntu 22.04.5 LTS

Thanks

@martinpitt
Copy link
Member Author

I'm starting from the basics, booted a clean 22.04 machine with some cockpit packages installed:

# dpkg -l | grep ^ii.*cockpit
ii  cockpit                                          264-1ubuntu0.22.04.1                    all          Web Console for Linux servers
ii  cockpit-bridge                                   264-1ubuntu0.22.04.1                    amd64        Cockpit bridge server-side component
ii  cockpit-pcp                                      264-1ubuntu0.22.04.1                    amd64        Cockpit PCP integration
ii  cockpit-system                                   264-1ubuntu0.22.04.1                    all          Cockpit admin interface for a system
ii  cockpit-ws             

and apt itself can do it fine:

 apt upgrade -t jammy-backports cockpit
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  redis-server redis-tools redis
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages will be REMOVED:
  cockpit-pcp
The following packages will be upgraded:
  cockpit cockpit-bridge cockpit-system cockpit-ws dmidecode libdebuginfod-common libdebuginfod1 libdw1 libelf1 libsoup-gnome2.4-1
  libsoup2.4-1 libsoup2.4-common needrestart

Setting up your scenario (older backport) is a bit more effort, I'll do that later.

@emaayan
Copy link

emaayan commented Nov 28, 2024

so do i need to remove cokcpit-pcp fresh installation ? just do apt install cockpit cockpit-sos and that's it? cause right now i don't get pcp

@martinpitt
Copy link
Member Author

@emaayan Not sure what you mean, but with recent versions there is no cockpit-pcp, right. If you want historic metrics, install python3-pcp. The metrics page will also do this for you with on-demand installation.

@emaayan
Copy link

emaayan commented Nov 29, 2024

@emaayan Not sure what you mean, but with recent versions there is no cockpit-pcp, right. If you want historic metrics, install python3-pcp. The metrics page will also do this for you with on-demand installation.

well i don't install cockpit-pcp i get a banner in the performance tab that asks me if i want to install it.

@martinpitt
Copy link
Member Author

@emaayan Can you please give me the output of dpkg -l '*cockpit*'?

@emaayan
Copy link

emaayan commented Nov 29, 2024 via email

@emaayan
Copy link

emaayan commented Nov 29, 2024 via email

@martinpitt
Copy link
Member Author

Heh, ok -- attaching images via email is apparently not working 😅

@emaayan
Copy link

emaayan commented Nov 29, 2024

good it would be less embarrassing cause at the time i didn't catch you previous reply about the cockpit itself not being pinned so now i have cockpit 14 and the rest of the cockpits at 3.29.1

@emaayan
Copy link

emaayan commented Nov 29, 2024

@martinpitt
still a problem, and missing pcp
image

image

@LeLawnGames
Copy link

Any fixes for this yet? My existing cockpit instance is unable to have updates installed because of the cockpit-pcp error.

@martinpitt
Copy link
Member Author

@LeLawnGames are python3-pcp and pcp installed? These are what "Install PCP support" should do.

@emaayan
Copy link

emaayan commented Dec 1, 2024

@LeLawnGames are python3-pcp and pcp installed? These are what "Install PCP support" should do.

isn't there a way to install them from the start?

@amatson97
Copy link

amatson97 commented Dec 1, 2024

I had a similar issue on my install, I was able to clear the failing services by running:

sudo apt-get upgrade pcp
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  libpcp-pmda-perl libpcp-trace2 libpcp-web1 libpfm4 pcp

Not sure if this helped, but i did enable both of this and install which also seemed to install some additional packages.

Screenshot from 2024-12-01 18-01-56

My dpkg -l 'cockpit' output:

dpkg -l '*cockpit*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                   Version          Architecture Description
+++-======================-================-============-================================================================
ii  cockpit                329-1~bpo22.04.1 all          Web Console for Linux servers
ii  cockpit-bridge         329-1~bpo22.04.1 amd64        Cockpit bridge server-side component
un  cockpit-dashboard      <none>           <none>       (no description available)
un  cockpit-doc            <none>           <none>       (no description available)
ii  cockpit-file-sharing   4.2.8-1focal     all          A cockpit module to make file sharing with Samba and NFS easier.
ii  cockpit-networkmanager 329-1~bpo22.04.1 all          Cockpit user interface for networking
ii  cockpit-packagekit     329-1~bpo22.04.1 all          Cockpit user interface for apps and package updates
un  cockpit-pcp            <none>           <none>       (no description available)
un  cockpit-shell          <none>           <none>       (no description available)
un  cockpit-sosreport      <none>           <none>       (no description available)
ii  cockpit-storaged       329-1~bpo22.04.1 all          Cockpit user interface for storage
ii  cockpit-system         329-1~bpo22.04.1 all          Cockpit admin interface for a system
un  cockpit-systemd        <none>           <none>       (no description available)
un  cockpit-tuned          <none>           <none>       (no description available)
un  cockpit-users          <none>           <none>       (no description available)
ii  cockpit-ws             329-1~bpo22.04.1 amd64        Cockpit Web Service

But still I am getting:

sudo apt install cockpit-pcp
Reading package lists... Done
Building dependency tree... Done
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:
 cockpit-bridge : Conflicts: cockpit-pcp
E: Unable to correct problems, you have held broken packages.

@LeLawnGames
Copy link

Yeah it's the above error I keep encountering -- Conflicts: cockpit-pcp

@LunarTwilight
Copy link

LunarTwilight commented Dec 2, 2024

I was having a somewhat similar issue with no historical logs, installing pcp helped, as it was uninstalled by upgrading.

@berwhale
Copy link

berwhale commented Dec 2, 2024

sudo apt remove cockpit-pcp fixed the issue for me. I had to reboot afterwards to get the metrics back.

@ShiftedRy
Copy link

sudo apt remove cockpit-pcp fixed the issue for me. I had to reboot afterwards to get the metrics back.

worked for me too!

@LeLawnGames
Copy link

Yep worked for me!

@kevinceegross
Copy link

sudo apt remove cockpit-pcp fixed the issue for me as well. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants