Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
Deepin 15.11安装最新版R的方法
Experiences and Insight
935
views ·
1
replies ·
To
floor
Go
johnmy
deepin
2020-01-10 01:12
Author
本帖最后由 johnmy 于 2020-1-9 17:22 编辑
原文发表于知乎,高手看起来可能比较简单。给需要的人参考,对于其他版本也适合,前面主要步骤是查看加哪个语句到sources.list中。
1.在Deepin中按Ctrl+Alt+T启动终端,输入以下命令查看Debian的版本。
cat /etc/debian_version
Copy the Code
2.根据显示的版本号,到
https://baike.baidu.com/item/Debian/748667?fr=aladdin#3
查看对应的版本代号,9.0对应stretch,根据
https://mirrors.ustc.edu.cn/CRAN/bin/linux/debian/#supported-branches
查看对应版本添加的deb语句为:
deb http:///bin/linux/debian stretch-cran35/
Copy the Code
我们将http://替换为中国的镜像,例如:
deb https://mirrors.ustc.edu.cn/bin/linux/debian stretch-cran35/
Copy the Code
3. 在终端运行
sudo deepin-editor /etc/apt/sources.list
Copy the Code
打开sources.list文件,在末尾加上:
deb https://mirrors.ustc.edu.cn/bin/linux/debian stretch-cran35/
Copy the Code
关闭sources.list
当然也可以用其他方法加上该语句。
4.最后在终端运行:
sudo apt update
Copy the Code
sudo apt upgrade
Copy the Code
sudo apt install r-base
Copy the Code
等待安装完成。
5.在终端运行:
R
Copy the Code
看是否可以打开。
Reply
Like 0
Favorite
View the author
All Replies
johnmy
deepin
2020-01-10 01:38
#1
这个帖子和
https://bbs.deepin.org/post/187840
发帖重复,请参考前者。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WiFi Drivers
Popular Events
More
原文发表于知乎,高手看起来可能比较简单。给需要的人参考,对于其他版本也适合,前面主要步骤是查看加哪个语句到sources.list中。
1.在Deepin中按Ctrl+Alt+T启动终端,输入以下命令查看Debian的版本。