Pkg.gc error

There appears to be some problem with the registry. I was facing the similar issue but removed julia and package/registry folder altogether and did reinstallation. The error is gone.
Hope it helps.