[slurm-users] How to install a newer slurm version on Ubuntu 18.04

Reed Dier reed.dier at focusvq.com
Fri Apr 14 16:37:07 UTC 2023


> On the third node (with Ubuntu 18.04), I tried to add the following line to /etc/apt/sources.list:
> deb http://za.archive.ubuntu.com/ubuntu <http://za.archive.ubuntu.com/ubuntu> jammy main universe

You definitely can’t just add the jammy repos to a bionic system.
This will more or less break apt in many ways due to dependencies.

> I wonder if it is possible to install slurm 21.08.5 on Ubuntu 18.04? or I should downgrade the installed slurm on the other nodes to slurm 17.11.2?

As someone who is running slurm on ubuntu, I highly recommend ripping the bandaid off and building from source.
The ubuntu/debian packages run really far behind, and don’t provide a ton of flexibility for upgrades or fixes.

Grab the tarball, and then run

> ./configure —prefix=$PREFIX}/slurm-$SLURM_VERSION —sysconfdir=/etc/slurm;
>         make -j $NUM_CPUS;
>         make install

$PREFIX would be where you want to install the slurm binaries to/run them from, which may be an NFS share or something like that.
I would also strongly recommend not mixing Ubuntu releases in the same cluster.

Reed

> On Apr 14, 2023, at 11:12 AM, mohammed shambakey <shambakey1 at gmail.com> wrote:
> 
> Hi
> 
> I'm new to slurm, and sorry if this is a repeated email. I have a cluster at my work consisting of one head node, and 3 compute nodes. Ubuntu 22.04 is installed on the head node, and 2 compute nodes, whereas the third has Ubuntu 18.04 (it is needed because it hosts an old M10 GPU).
> 
> I installed slurm 21.08.5 on the head node, and the 2 compute nodes with Ubuntu 22.04. On the third node (with Ubuntu 18.04), I tried to add the following line to /etc/apt/sources.list:
> deb http://za.archive.ubuntu.com/ubuntu <http://za.archive.ubuntu.com/ubuntu> jammy main universe
> 
> Then, I tried to update the third machine and install the slurmd package, but I receive the following error:
> 
> Setting up slurm-wlm-basic-plugins (21.08.5-2ubuntu1) ...
> cp: cannot stat '/etc/slurm-llnl/.': No such file or directory
> dpkg: error processing package slurm-wlm-basic-plugins (--configure):
>  installed slurm-wlm-basic-plugins package post-installation script subprocess returned error exit status 1
> dpkg: dependency problems prevent configuration of slurmd:
>  slurmd depends on slurm-wlm-basic-plugins (= 21.08.5-2ubuntu1); however:
>   Package slurm-wlm-basic-plugins is not configured yet.
> 
> dpkg: error processing package slurmd (--configure):
>  dependency problems - leaving unconfigured
> dpkg: dependency problems prevent configuration of slurm-client:
>  slurm-client depends on slurm-wlm-basic-plugins (= 21.08.5-2ubuntu1); however:
>   Package slurm-wlm-basic-plugins is not configured yet.
> 
> dpkg: error processing package slurm-client (--configure):
>  dependency problems - leaving unconfigured
> No apport report written because the error message indicates its a followup error from a previous failure.
>                                                                                                           No apport report written because the error message indicates its a followup error from a previous failure.
>                                                                       Errors were encountered while processing:
>  slurm-wlm-basic-plugins
>  slurmd
>  slurm-client
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> I wonder if it is possible to install slurm 21.08.5 on Ubuntu 18.04? or I should downgrade the installed slurm on the other nodes to slurm 17.11.2?
> 
> Regards
> 
> -- 
> Mohammed

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20230414/872125ec/attachment-0001.htm>


More information about the slurm-users mailing list