问题
大家好,我需要在我的树莓派 3 B 中安装 R 软件(至少 3.5,但希望是 3.6)
我开始做通常的事情:
sudo apt-get update
sudo apt install r-base r-base-dev
哪个有效,但我得到 R 3.3
因此,我尝试了在此网页中找到的内容,并且它可以正常工作:
sudo add-apt-repository 'deb http://cran.dcc.uchile.cl/bin/linux/debian stretch-cran35/'
但我收到以下错误:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/stretch
我不确定我做错了什么
请帮忙!!