首先我输入
sudo gedit /etc/apt/sources.list
之后我得到了一个来源列表然后我输入
deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/
然后我得到这样的错误
No command 'deb' found, did you mean:
Command 'derb' from package 'icu-devtools' (main)
Command 'deb3' from package 'quilt' (main)
Command 'debc' from package 'devscripts' (main)
Command 'dwb' from package 'dwb' (universe)
Command 'xdeb' from package 'xdeb' (universe)
Command 'debi' from package 'devscripts' (main)
Command 'dab' from package 'bsdgames' (universe)
deb: command not found
我应该如何进行?
答案1
打开终端和文件
/etc/apt/sources.list
sudo nano /etc/apt/sources.list
在文件末尾添加以下行
deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/
保存并关闭
添加公钥
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 06F90DE5381BA480
更新您的存储库信息
sudo apt-get update
安装
sudo apt-get install r-base
我的答案中的其他方式这里