Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
因为R-base-core需要一个libc6版本>;=2.29?_R_Linux - Fatal编程技术网

因为R-base-core需要一个libc6版本>;=2.29?

因为R-base-core需要一个libc6版本>;=2.29?,r,linux,R,Linux,我正试图在Ubuntu18.04.4LTS上安装R4.0,但我不断收到错误 > sudo apt install r-base-core Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible

我正试图在Ubuntu18.04.4LTS上安装R4.0,但我不断收到错误

> sudo apt install r-base-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 r-base-core : Depends: libc6 (>= 2.29) but 2.27-3ubuntu1 is to be installed
               Depends: libicu66 (>= 66.1-1~) but it is not installable
               Depends: libreadline8 (>= 6.0) but it is not installable
               Recommends: r-recommended but it is not going to be installed
               Recommends: r-base-dev but it is not going to be installed
               Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
当尝试安装时。我已经删除了R 3.6.3,并添加了

deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/

在我的
/etc/apt/sources.list
文件中。请注意,上面的代码需要libc6(>=2.29),但据我所见,它不适用于18.04。这是否意味着我必须升级到19.04或20.04才能运行R4.0?

是的。这可能是该特定软件包/版本中的一个bug,但如果您希望使用该软件包,则应升级到更新的Ubuntu版本

升级Ubuntu是使用命令
sudo-release-upgrade
实现的。这假设您的用户有权运行root/管理命令。更多详细信息请参见

如果等待修复或升级并不令人满意,您可能会发现在Docker容器中运行R是一个更好的解决方案。这是一种越来越常见的运行笨拙的开发工具的方法

  • 可在此处找到介绍:
  • 码头工人 您注意到的软件包的名称如下:

问题:您的系统是否当前版本为18.04?如果是这样,升级应该可以正常工作。我在18.04上写了一篇关于测试R4.0.0的博文(发布之前),并附上了一段视频:

  • 博文
  • 带链接的幻灯片
  • 显示升级的视频
还有两个最近(相关)的职位


简言之,在一个其他方面都很好的系统上(即,没有其他强制或冲突的包或其他东西),只需添加新的回购协议(如幻灯片和视频所示),更新
apt
索引和升级。我在另一个视频中也对我的19.10 Ubuntu系统做了同样的操作。

问题可能出在你的
/etc/apt/sources.list上。请检查您是否已在其中禁用R的所有其他存储库,例如,它不应包含类似
deb的行https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
我使用的是Ubuntu18.04,应该只有一个源代码
debhttps://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/
in/etc/apt/sources.list 不幸的是,我添加了
debhttps://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
错误地将其删除以安装R 4.0
R现在已成功安装。

在Ubuntu 20.04上安装R 4.0时,我遇到了同样的问题 这是我的解决方案。 首先我只想安装R而不是R-base-core等等。安装所有的r-base-core和r-base-dev等等都不起作用。 阅读官方文件 小心 如果问题仍然存在,请尝试续订
/etc/apt/sources.list

使用完整的文档或处理备份文档

这个答案并没有解决问题(“如何升级我的Ubuntu系统?”)。关于Docker和Rocker的提示很好,但实际上是另一个话题。(上下文:我是R版Debian/Ubuntu软件包和Docker/Rocker版参考的
R-base
image的维护者。)从头:请不要这样做。如果你想在Debian或Ubuntu上与R安装相关的问题上找到高质量的读者,而你在这里什么也得不到,请在R-sig-Debian列表上发布。但请不要以为我可以自由支配自己的时间,以至于我可以随叫随到。可悲的是,我也有一些真正的义务。无意冒犯。这是一个要求,不是要求。我打电话给你是因为我有时会直接接到我自己专业领域的请求。当我真正的义务允许时,如果我愿意,我可以选择响应。我通过将sources.list中的行更改为:
deb来实现它https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/
。在我运行Focus 20的另一台机器上,它写为
debhttps://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
因此修改是手动进行的,并在重新安装R坦克后生效!我被困在/etc/apt/sources.list中的apt回购协议之间的冲突!事实上,我的AWS实例附带了多个R源,留下了
仿生
一个解决了Meth的问题。这个答案不够具体,也不有用。添加更多细节,而不仅仅是一个可能在短时间内被破坏的链接。这个答案并不比“阅读手册”好多少