Luc*_*s X 8 package-management apt dependencies r software-installation
我真的很难在 Ubuntu 18 上安装 R。这是我第一次使用操作系统......我尝试在网站上查找其他问题但没有运气,即使在这基本上是我的问题:依赖错误而在 Ubuntu 17.10 中安装 R
无论如何,我尝试运行sudo apt install r-base,响应是:
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 : Depends: r-base-core (>= 3.4.4-1xenial0) but it is not going to be installed
Depends: r-recommended (= 3.4.4-1xenial0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
我在这里或任何其他网站上看到的任何说明似乎都没有纠正这个问题......如果有人能帮助我,我将不胜感激!谢谢。
我在另一篇文章中发现了问题......这个:
如何恢复默认存储库?
我猜我从另一个论坛使用的一些代码似乎最终弄乱了我的存储库?抱歉,我只是需要做更多研究时才寻求帮助:P
所以我所做的是:
sudo rm /etc/apt/sources.listsudo -i software-properties-gtk转到software-properties-gtk(在控制台中运行它)并将存储库重置为离我最近的存储库(地理上):
然后只需将更新配置重置为我猜适合您的任何配置,我将所有内容每天自动更新。
然后我就跑sudo apt-get intall r-base进去了,它奏效了!
归功于我之前提到的原始帖子。
| 归档时间: |
|
| 查看次数: |
8602 次 |
| 最近记录: |