標籤:pac tutorial community repos version michael uri unity bin
遍地的坑啊
目標 搭建docker sparkR
小目標 rpy2 fbprophet python3
坑1:
rpy2 如果要求python支援 需要 R
解決方案:去下載r
坑2:
ubuntu的不能下載latest 版本的 R 如果直接
apt-get updateapt-get install r-base
會直接下載到3.1.1 而python3下的 rpy2要求 R -version >= 3.3.x
解決方案:https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-16-04-2
坑3:
gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.comgpg: key E084DAB9: public key "Michael Rutter <[email protected]>" importedgpg: Total number processed: 1gpg: imported: 1 (RSA: 1)/bin/sh: 1: add-apt-repository: not found
add-apt-repository 無效
解決方案:依賴問題 先運行 apt-get update
坑4:
gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.comgpg: key E084DAB9: public key "Michael Rutter <[email protected]>" importedgpg: Total number processed: 1gpg: imported: 1 (RSA: 1)Hit:1 http://security.ubuntu.com/ubuntu xenial-security InReleaseHit:2 http://archive.ubuntu.com/ubuntu xenial InReleaseHit:3 http://archive.ubuntu.com/ubuntu xenial-updates InReleaseHit:4 http://archive.ubuntu.com/ubuntu xenial-backports InReleaseReading package lists...E: The method driver /usr/lib/apt/methods/https could not be found.E: Failed to fetch https://cran.rstudio.com/bin/linux/ubuntu/xenial/InReleaseE: Some index files failed to download. They have been ignored, or old ones used instead.
解決方案:待解決
branch1:
嘗試直接加入key之後下載r
FROM ubuntuRUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 && apt-get update && apt-get install -y r-base r-base-dev
這個是最新的穩定版本 3.2.3顯然不符合標準。。。
話說營運的活 感覺一天一天都在編譯失敗中讀過 那是多麼絕望又痛苦的生活啊
隨筆1215 docker r+python