Closed huangwb8 closed 5 years ago
I know the reason~ It's because I changed the default mirrors to the one of Tsinghua University.
repository mirrors.tuna.tsinghua.edu.cn
url: http://mirrors.tuna.tsinghua.edu.cn/hackage
I was surprised that the problematical Tsinghua University mirror of haskell was widely recommand in China but nobody met the same problem like me. Maybe there are other setting needed but apparently the help doc of tsinghua mirror didn't provide other masseges. Whatever, it works well with default config even if I have to bear the slow speed.
It could just be an unrecoverable corrupt download from the mirror. Clearing out the 01-index*
the 00-index.*
and the *.json
from ~/.cabal/packages/mirrors.tuna.tsinghua.edu.cdn
might fix it. (or even clearing out the whole directory.)
The strange error would appear if I try to install a package.
For example:
I had tried 'cabal update' but it seems not work.
Here are some systerm massage. Looking forward to your return!