我试图在Ubuntu18.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/ 谢谢您能提供的任何建议!
发布于 2020-08-02 22:43:50
考虑到我运行的是Ubuntu18.04WSL,我实际上能够搜索进入Ubuntu子系统的子目录,找到文件并删除它。
我的所有东西都保存在我的Windows系统中的默认/mnt/文件夹中,所以我能够按照Ubuntu的设置说明在我的文件中找到它。
https://askubuntu.com/questions/1263464
复制相似问题