Reputation: 43
I am trying to install Jekyll and use it to create a GitHub website with markdown. I use Debian 9 and gem 2.7.3
$ sudo update_rubygems
And if I just want to install Jekyll :
$ sudo gem install Jekyll
ERROR: Error installing jekyll:
invalid gem: package metadata is missing in
/var/lib/gems/2.3.0/cache/jekyll-3.6.2.gem
I expected the result to be a complete installation of Jekyll without errors of missing packages.
I get several errors of not existing softwares such as :
Upvotes: 0
Views: 1412
Reputation: 6122
it can be fixed by removing the cached gem meta data file. in your case it is /var/lib/gems/2.3.0/cache/jekyll-3.6.2.gem
so to fix remove this file
rm /var/lib/gems/2.3.0/cache/jekyll-3.6.2.gem
then try installing the gem again
gem install jekyll -v '3.6.2'
then try updating rubygems again. it will work.
Upvotes: 1