Deepin 15.11安装最新版R的方法
Tofloor
poster avatar
johnmy
deepin
2020-01-10 01:12
Author
本帖最后由 johnmy 于 2020-1-9 17:22 编辑

原文发表于知乎,高手看起来可能比较简单。给需要的人参考,对于其他版本也适合,前面主要步骤是查看加哪个语句到sources.list中。

1.在Deepin中按Ctrl+Alt+T启动终端,输入以下命令查看Debian的版本。

  1. cat /etc/debian_version  
Copy the Code


查看对应的版本代号,9.0对应stretch,根据https://mirrors.ustc.edu.cn/CRAN/bin/linux/debian/#supported-branches
查看对应版本添加的deb语句为:
  1. deb http:///bin/linux/debian stretch-cran35/
Copy the Code

我们将http://替换为中国的镜像,例如:
  1. deb https://mirrors.ustc.edu.cn/bin/linux/debian stretch-cran35/
Copy the Code

3. 在终端运行
  1. sudo deepin-editor /etc/apt/sources.list
Copy the Code

打开sources.list文件,在末尾加上:
  1. deb https://mirrors.ustc.edu.cn/bin/linux/debian stretch-cran35/
Copy the Code


关闭sources.list
当然也可以用其他方法加上该语句。
4.最后在终端运行:
  1. sudo apt update
Copy the Code
  1. sudo apt upgrade
Copy the Code
  1. sudo apt install r-base
Copy the Code

等待安装完成。
5.在终端运行:
  1. R
Copy the Code

看是否可以打开。







Reply Favorite View the author
All Replies
avatar
johnmy
deepin
2020-01-10 01:38
#1
这个帖子和https://bbs.deepin.org/post/187840发帖重复,请参考前者。
Reply View the author