Version checksum does not match package installation

Ok, so I created a project on my old laptop in rails and geroku. I want to access files and forward new changes to the hero on my laptop. They are all stored on Git, so I can clone the Git repository to my new laptop.

My laptop did not have any previous software, so I installed rubies and rails and the versions were fine, but when I try to install the package when the folder is open on the command line, I get the error message "Check / version does not match checksum. provided by the server! Something is wrong. "

I am new to rails etc., so I have no idea what is going on here. I just want to set up my environment exactly the same as last time, so I can start where I left off on my old laptop. I have tried many things, such as cleaning gems, updating gems, reinstalling rubies and rails.

In addition to this, when I try to use rails -v, I get the error message "You do not have [insert gem name] try running install install" So, I will install a new gem and then get the same error.

This has become a nightmare, and I just want to find a clean way to install rubies and rails so that these errors disappear.

I created this project following the guidelines, so I think I could do all this, but I would rather just fix this current problem. I found that this happened to someone else, but this was the case when creating a new file.

This is my gem file in the project

source 'http://rubygems.org'

ruby '2.1.8'

gem 'rails', '4.1.8'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0',          group: :doc
gem 'pygments.rb', '~> 0.6.0'
gem 'redcarpet', '~> 3.2.2'
gem 'friendly_id', '~> 5.1.0'
gem 'will_paginate', '~> 3.0.7'

gem 'tzinfo-data', platforms: [:mingw, :mswin]

group :development do
    gem 'sqlite3'
end

group :production do
    gem 'pg'
    gem 'rails_12factor'
end
+4
source share
2 answers

Try it. I had a similar problem. The same mistake.

Try to run

gem uninstall bundler

If this does not allow you, add --forceat the end of the command.

Then reinstall bundler

gem install bundler
bundle

I also made a few extra deletions, but I'm not sure if this was necessary.

+18
source

had a similar problem:

fixed using

rm -rf ~ / .bundle / cache

+1

Source: https://habr.com/ru/post/1628695/


All Articles