メモリ増設を機にubuntu20.04を削除してインストールしなおしてからstackを入れてstack setupまで行うと画像のようなエラーが発生します。buildのほうも成功しません。検索しましたが、私見では有用な解決策が見当たりませんでした。どなたかお力添えいただけると助かります。Haskellを、書きたいです。
Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-tinfo6-8.10.4.
ghc-pkg: Couldn't open database /home/sa/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.4/lib/ghc-8.10.4/package.conf.d for modification: {handle: /home/sa/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.4/lib/ghc-8.10.4/package.conf.d/package.cache.lock}: hLock: invalid argument (Invalid argument)
make[1]: *** [: install_packages] Error 1
make: *** [Makefile:51: install] Error 2
Received ExitFailure 2 when running
Raw command: /usr/bin/make install
Run from: /home/sa/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.4.temp/ghc-8.10.4/
Error: Error encountered while installing GHC with
make install
run in /home/sa/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.4.temp/ghc-8.10.4/
The following directories may now contain files, but won't be used by stack:
- /home/sa/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.4.temp/
- /home/sa/.stack/programs/x86_64-linux/ghc-tinfo6-8.10.4/
For more information consider rerunning with --verbose flag
Installing GHC ...