【问题标题】:Linux Mint 'rvm requirements' failureLinux Mint 'rvm requirements' 失败
【发布时间】:2014-07-09 00:05:23
【问题描述】:

我运行 Linux Mint 16 (petra) 并且越来越多地遇到它说它需要一个包的问题,​​它甚至告诉我它需要我安装什么,我尝试完全安装那个包,然后它说“嘿那个包不存在!哈哈!”

这变得令人难以置信的令人沮丧,不幸的是,在重新安装操作系统时我完全不走运,因为我需要一根以太网电缆和一个路由器,而这两者我都没有。我试图开始学习 Erlang,这已经变得不可能了,因为我什至无法安装它(请参阅我以前的 stackoverflow 帖子),现在我什至无法让 rails 工作,这是我在开始之前经常做的事情今年夏天实习。

这是我的问题。

core@core ~ $ rvm 要求

检查薄荷糖的要求。 薄荷的安装要求。 更新系统..核心密码 'apt-get --quiet --yes update' 需要:...... 安装所需的包:libreadline6-dev、libyaml-dev、autoconf、 libgdbm-dev、libncurses5-dev、automake、libtool、libffi-dev.....错误 运行'requirements_debian_libs_install libreadline6-dev libyaml-dev autoconf libgdbm-dev libncurses5-dev automake libtool libffi-dev', 显示最后 15 行 /home/core/.rvm/log/1404864015/package_install_libreadline6-dev_libyaml-dev_autoconf_libgdbm-dev_libncurses5-dev_automake_libtool_libffi-dev.log 只能从其他来源获得

包 libtool 不可用,但被另一个人引用 包裹。这可能意味着该包丢失,已 已过时,或仅可从其他来源获得

E: 无法找到包 libreadline6-dev E: 包 'autoconf' 有 没有安装候选 E:无法找到软件包 libgdbm-dev E: 无法找到软件包 libncurses5-dev E:软件包 'automake' 没有 安装候选 E:软件包“libtool”没有安装 候选人 E:无法找到软件包 libffi-dev + 返回 100 + 返回 100 需求安装失败,状态为:100。

我尝试安装其中几个包,然后我收到消息“嘿,那个包不存在!”

我能做什么?

请帮我解决这个问题,这样我才能再次变得高效。非常非常感谢提前!

更新:iain 建议我运行我执行的命令,它产生了这个:

core@core ~ $ sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev [sudo] 核心密码:读取包列表...完成构建 依赖树读取状态信息...完成包 autoconf 不可用,但被另一个包引用。这个 可能意味着该包丢失、已过时或仅 可从其他来源获得

E: 包 'autoconf' 没有安装候选 E: 无法 定位软件包 libreadline6-dev

【问题讨论】:

  • 你试过apt-get update吗?
  • 是的,一切都是最新的。
  • 我在下面添加了一个包列表,但也许它不能解决你的问题。

标签: ruby-on-rails ruby linux installation linux-mint


【解决方案1】:

这些是我为了让 Ruby 在 Ubuntu 系统上构建而安装的软件包

make
autoconf
libtool
build-essential
libffi-dev
libgdbm-dev
libncurses5-dev
libreadline-dev
libssl-dev
libyaml-dev
zlib1g-dev

我从the ruby-build wiki 获得了大部分列表,这表明:

apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev

但我也添加了make,这是一个很好的衡量标准。


我是从 Vagrant 提供的 Ubuntu 盒子中得到的,hashicorp/precise64 应该(希望)与 Mint 用来检查的内容足够接近。

# 

# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ precise main restricted

#deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/main/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ dists/precise/restricted/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04 LTS _Precise Pangolin_ - Release amd64 (20120424.1)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

MD5 可能会有所帮助:

$ md5 sources.list 
MD5 (sources.list) = b966730006afc9e02e6d56d7ceb96af5

【讨论】:

  • @ArthurCollé 我唯一能想到的另一件事是运行apt-get check(有关更多命令,请参阅help.ubuntu.com/community/AptGet/Howto)和/或检查存储库列表是否正常且可访问。
  • @ArthurCollé(来自help.ubuntu.com/community/Repositories/Ubuntu)您可以检查/etc/apt/sources.list,但您可能应该根据已知良好的列表检查它......我会尝试找到一个。
  • 再次感谢您,不胜感激! [6年后...]
  • @ArthurColle 迟到总比没有好:)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-05-06
  • 1970-01-01
  • 1970-01-01
  • 2018-06-08
  • 1970-01-01
  • 2018-08-26
  • 1970-01-01
相关资源
最近更新 更多