我正在尝试在 Ubuntu 18.04 WSL 上设置 SLURM。当我尝试安装时,收到以下错误:
sudo apt-get install slurm-wlm
Reading package lists... Done
Building dependency tree
Reading state information... Done
slurm-wlm is already the newest version (17.11.2-1build1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
slurm-wlm : Depends: slurm-client (= 17.11.2-1build1) but it is not going to be installed
slurmctld : Depends: slurm-client (= 17.11.2-1build1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
我尝试使用下面的代码修复安装,但它也出现了错误。
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
slurm-client
The following NEW packages will be installed:
slurm-client
0 upgraded, 1 newly installed, 0 to remove and 43 not upgraded.
6 not fully installed or removed.
Need to get 0 B/870 kB of archives.
After this operation, 1935 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 81615 files and directories currently installed.)
Preparing to unpack .../slurm-client_17.11.2-1build1_amd64.deb ...
Unpacking slurm-client (17.11.2-1build1) ...
dpkg: error processing archive /var/cache/apt/archives/slurm-client_17.11.2-1build1_amd64.deb (--unpack):
unable to install new version of '/usr/bin/sacctmgr': File exists
Errors were encountered while processing:
/var/cache/apt/archives/slurm-client_17.11.2-1build1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试定位该文件,但在系统内任何地方都找不到它。以下代码:
ls -ld /usr/bin/sacctmgr /usr/bin/
产生了以下错误信息:
ls: cannot access '/usr/bin/sacctmgr': No such file or directory
drwxr-xr-x 1 root root 4096 Jul 30 23:16 /usr/bin/
提前感谢您提供的任何建议!
答案1
鉴于我正在运行 Ubuntu 18.04 WSL,我实际上能够搜索进入 Ubuntu 子系统的子目录,找到该文件并将其删除。
我的所有内容都保存在 Windows 系统中的默认 /mnt/ 文件夹中,因此我能够按照 Ubuntu WSL 的设置说明在我的文件中找到它。