【发布时间】:2021-06-29 08:04:38
【问题描述】:
今天我尝试为我的 rails 6.1.0 构建一个带有活动存储的 docker,我收到以下错误:
Your bundle is locked to mimemagic (0.3.5), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of mimemagic (0.3.5) has removed it. You'll need to update your
bundle to a version other than mimemagic (0.3.5) that hasn't been removed in order to install.
现在我尝试安装 mimemagic
gem install mimemagic -v 0.3.5
我遇到以下错误:
ERROR: Could not find a valid gem 'mimemagic' (= 0.3.5) in any repository
ERROR: Possible alternatives: mimemagic
好像宝石不见了。有人可以解释一下吗?
有什么办法可以解决这个问题?
【问题讨论】:
-
删除
Gemfile.lock并重新运行bundle install对我来说效果很好 -
你也可以查看这个链接exerror.com/…;有 4 种解决方案可用于解决此错误。
标签: ruby-on-rails ruby-on-rails-6 mimemagic