1.E: 无法定位软件包问题
https://blog.csdn.net/beizhengren/article/details/77678603
修改source.list文件,其中出现了deb url这样类似命令的内容
2.deb是什么?
https://ubuntuqa.com/article/1249.html
它不是一个命令,而是在sources.list
文件中用于指示Debian软件存储库。
如果我在sources.list
中有deb http://archive.ubuntu.com/ubuntu/ quantal main restricted
,它说我有一个基于“http://archive.ubuntu.com/ubuntu/”的Debian存档,分发是”quantal”,组件是”main”和”restricted”。
3.下载安装R
https://docs.rstudio.com/resources/install-r/
但是在运行
curl -O https://cdn.rstudio.com/r/ubuntu-1804/pkgs/r-${R_VERSION}_1_amd64.deb sudo gdebi r-${R_VERSION}_1_amd64.deb
出现了:软件包可能已被破坏,或者不允许您打开此文件。检查文件的权限。
未找到合适的解决办法,本来是安装R=4.0版本的,现在就安装3.6.5吧,下载好deb文件后,仍旧报同样的错误。
那么首先通过https://www.howtoing.com/how-to-install-r-on-ubuntu-18-04,
sudo apt install r-base
安装了4.0.3,默认最新版本的R
4.安装Rstudio
https://rstudio.com/products/rstudio/download-server/debian-ubuntu/
sudo apt-get install gdebi-core wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.3.1093-amd64.deb sudo gdebi rstudio-server-1.3.1093-amd64.deb
访问http:ip:8787就可以了!