You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Redhat虚拟机中R Studio Server安装rgdal时yum缓存失败求助

解决Redhat Linux中安装rgdal依赖时Yum仓库报错的问题

从你的错误日志最后一行可以明确看到,故障出在softwarecollections7仓库上,这个就是你需要填写的<repoid>值。下面是具体的解决方案:

方案1:临时禁用故障仓库,先安装所需依赖

直接在安装命令里临时跳过这个仓库,不影响其他仓库的使用:

yum install gdal-devel proj-devel proj-nad proj-epsg --disablerepo=softwarecollections7

方案2:永久禁用故障仓库

如果这个仓库对你来说没有使用需求,可以直接永久禁用它:

# 使用yum-config-manager禁用
yum-config-manager --disable softwarecollections7

# 如果是通过subscription-manager管理的仓库,用这条命令
subscription-manager repos --disable=softwarecollections7

方案3:设置仓库不可用时自动跳过

如果只是临时网络或上游故障,不想每次手动禁用,可以配置Yum自动跳过不可用的该仓库:

yum-config-manager --save --setopt=softwarecollections7.skip_if_unavailable=true

完成依赖安装后,回到R Studio Server的控制台,执行以下命令安装rgdal包:

install.packages("rgdal")

内容的提问来源于stack exchange,提问作者R_Student

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.03 03:41:42