Hi - I am following the coincashew guide to set up a stake pool.
I’m at the section: Installing Cabal and GHC section…
When I run this command:
sudo apt-get install git jq bc make automake rsync htop curl build-essential pkg-config libffi-dev libgmp-dev libssl-dev libtinfo-dev libsystemd-dev zlib1g-dev make g++ wget libncursesw5 libtool autoconf -y
I get this error:
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:
libsystemd-dev : Depends: libsystemd0 (= 249.11-0ubuntu3) but 249.11-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.
I am using Ubuntu 22.04
Any advice?
have you completed a sudo apt-get update and then upgrade first?
Yeah, there seems something odd going on. package management - Why libudev version ubuntu3.1 doesn't exist? - Ask Ubuntu
Try install the others first then work on this one alone.
I installed all the packages individually. Only libsystemd-dev fails with the error above… guess I’ll just wait for a fix from Ubuntu.
Unless… anyone knows of a workaround?
Could you not simply install the libsystemd-dev package?
sudo apt-get install libsystemd-dev
libsystemd-dev fails with the error above…
Updated today and now installation works - thanks to whoever worked over the weekend to fix the Ubuntu error
I tried to set up a new cardano-node
on a fresh Ubuntu machine today and got the same error when installing libsystemd-dev
:
The following packages have unmet dependencies:
libsystemd-dev : Depends: libsystemd0 (= 249.11-0ubuntu3) but 249.11-0ubuntu3.1 is to be installed
I tried apt update && apt upgrade
.
I tried apt-get autoremove
.
I rebooted several times.
dpkg --get-selections | grep hold
shows no held packages.
I also tried to install libsystemd0
with the desired version 249.11-0ubuntu3
but this comes with other problems.
Has anyone an idea on how to solve this?
It seems that the Ubuntu package repositories sometimes get the -dev
package a little later than the corresponding binary package.
Not really something that someone in Cardano can do anything about.
https://packages.ubuntu.com/jammy-updates/libsystemd-dev looks like you should get version 249.11-0ubuntu3.4 of both packages after apt update
.
Thanks for the reply!
I got the problem solved now by using the Ubuntu focal image instead of the jammy image.
1 Like