-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Cannot uninstall software #2199
Copy link
Copy link
Closed
Labels
Description
I have two versions of mvapich2 installed, 2.2b and 2.2. But I am unable to uninstall them:
$ spack uninstall [email protected] %gcc@5
==> Error: [email protected]%gcc@5 matches multiple packages:
-- linux-centos6-x86_64 / [email protected] -----------------------------
v6xdy4c [email protected]%gcc~debug~gforker+hydra~mrail~nemesis~nemesisib~nemesisibtcp+psm~remshell~slurm~sock
m6iglhi [email protected]%gcc~debug~gforker+hydra~mrail~nemesis~nemesisib~nemesisibtcp+psm~remshell~slurm~sock
==> Error: You can either:
a) Use a more specific spec, or
b) use spack uninstall -a to uninstall ALL matching specs.
I'm also unable to install them by hash:
$ spack uninstall /v6xdy4ccf7drmudbjkxa2vu6ctovy2jj
==> Error: [email protected]%[email protected]~debug~gforker+hydra~mrail~nemesis~nemesisib~nemesisibtcp+psm~remshell~slurm~sock arch=linux-centos6-x86_64^[email protected]%[email protected] arch=linux-centos6-x86_64^[email protected]%[email protected] arch=linux-centos6-x86_64 matches multiple packages:
-- linux-centos6-x86_64 / [email protected] -----------------------------
v6xdy4c [email protected]%gcc~debug~gforker+hydra~mrail~nemesis~nemesisib~nemesisibtcp+psm~remshell~slurm~sock
m6iglhi [email protected]%gcc~debug~gforker+hydra~mrail~nemesis~nemesisib~nemesisibtcp+psm~remshell~slurm~sock
==> Error: You can either:
a) Use a more specific spec, or
b) use spack uninstall -a to uninstall ALL matching specs.
Uninstalling them by running rm on the directory followed by spack reindex corrupts my Spack database, and I can no longer install anything:
$ spack install mvapich2 %gcc@5
==> Installing mvapich2
==> libpciaccess is already installed in /blues/gpfs/home/software/spack-0.9.1/opt/spack/linux-centos6-x86_64/gcc-5.3.0/libpciaccess-0.13.4-tbllpvg3h4r2hgxkvzgtmgm645g777ub
Traceback (most recent call last):
File "/soft/spack-0.9.1/bin/spack", line 203, in <module>
main()
File "/soft/spack-0.9.1/bin/spack", line 180, in main
return_val = command(parser, args)
File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/cmd/install.py", line 342, in install
package.do_install(**kwargs)
File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/package.py", line 1190, in do_install
**kwargs
File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/package.py", line 1162, in do_install
rec = spack.store.db.get_record(self.spec)
File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/database.py", line 80, in converter
return function(self, spec_like, *args, **kwargs)
File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/database.py", line 529, in get_record
key = self._get_matching_spec_key(spec, **kwargs)
File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/database.py", line 521, in _get_matching_spec_key
match = self.query_one(spec, **kwargs)
File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/database.py", line 655, in query_one
assert len(concrete_specs) <= 1
AssertionError
This was reported in #2123, and I have no idea what is causing it. Please help.
Reactions are currently unavailable