jrowen / ARM-rstudio-server

Build script for rstudio-server on an ARM Chromebook
MIT License
32 stars 15 forks source link

Issue installing R #3

Open ghost opened 7 years ago

ghost commented 7 years ago

I ran into a lot of this when I was just installing R with apt-get (and still do when I try to install r-base) yet R seems to be working fine for the most part when I use it from the cli.

I don't think these errors have anything to do with your script, but I would appreciate some direction! I'm installing this on a 2gb pine64 board (arm64 architecture)

Thanks!


W: The repository 'http://ppa.launchpad.net/marutter/rdev/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/relan/exfat/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://repo.ajenti.org/debian main InRelease' doesn't support architecture 'arm64'
N: Skipping acquire of configured file 'ubuntu/binary-arm64/Packages' as repository 'http://repo.ajenti.org/debian main InRelease' doesn't support architecture 'arm64'
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://dev2day.de/pms jessie InRelease' doesn't support architecture 'arm64'
E: Failed to fetch https://downloads.plex.tv/repo/deb/dists/public/InRelease  Unable to find expected entry 'main/binary-arm64/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Failed to fetch http://ppa.launchpad.net/marutter/rdev/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found
E: Failed to fetch http://ppa.launchpad.net/relan/exfat/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 **r-base : Depends: r-base-core (>= 3.3.2-1xenial0) but 3.2.3-4 is to be installed
          Depends: r-recommended (= 3.3.2-1xenial0) but it is not going to be installed
          Recommends: r-base-html but it is not going to be installed
 r-base-dev : Depends: r-base-core (>= 3.3.2-1xenial0) but 3.2.3-4 is to be installed**
E: Unable to correct problems, you have held broken packages.
./build_rstudio.sh: line 12: cd: /home/sam/Downloads/: No such file or directory
--2016-12-28 12:43:25--  https://github.com/rstudio/rstudio/tarball/v0.99.473
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/rstudio/rstudio/legacy.tar.gz/v0.99.473 [following]
--2016-12-28 12:43:26--  https://codeload.github.com/rstudio/rstudio/legacy.tar.gz/v0.99.473
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'v0.99.473'

v0.99.473                          [                           <=>                       ]  16.21M  1.57MB/s    in 8.8s

2016-12-28 12:43:36 (1.84 MB/s) - 'v0.99.473' saved [16992418]

mkdir: cannot create directory '/home/sam/Downloads/rstudio-v0.99.473': No such file or directory
tar: /home/sam/Downloads/v0.99.473: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rm: cannot remove '/home/sam/Downloads/v0.99.473': No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-7-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'openjdk-7-jdk' has no installation candidate
./build_rstudio.sh: line 20: cd: /home/sam/Downloads/rstudio-v0.99.473/dependencies/linux/: No such file or directory
./build_rstudio.sh: line 21: ./install-dependencies-debian: No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  liblua5.1-0 libyaml-0-2 pandoc-data
Suggested packages:
  texlive-latex-recommended texlive-xetex texlive-luatex pandoc-citeproc etoolbox wkhtmltopdf
The following NEW packages will be installed:
  liblua5.1-0 libyaml-0-2 pandoc pandoc-data
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/10.6 MB of archives.
After this operation, 122 MB of additional disk space will be used.
Selecting previously unselected package libyaml-0-2:arm64.
(Reading database ... 66919 files and directories currently installed.)
Preparing to unpack .../libyaml-0-2_0.1.6-3_arm64.deb ...
Unpacking libyaml-0-2:arm64 (0.1.6-3) ...
Selecting previously unselected package liblua5.1-0:arm64.
Preparing to unpack .../liblua5.1-0_5.1.5-8ubuntu1_arm64.deb ...
Unpacking liblua5.1-0:arm64 (5.1.5-8ubuntu1) ...
Selecting previously unselected package pandoc-data.
Preparing to unpack .../pandoc-data_1.16.0.2~dfsg-1_all.deb ...
Unpacking pandoc-data (1.16.0.2~dfsg-1) ...
Selecting previously unselected package pandoc.
Preparing to unpack .../pandoc_1.16.0.2~dfsg-1_arm64.deb ...
Unpacking pandoc (1.16.0.2~dfsg-1) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libyaml-0-2:arm64 (0.1.6-3) ...
Setting up liblua5.1-0:arm64 (5.1.5-8ubuntu1) ...
Setting up pandoc-data (1.16.0.2~dfsg-1) ...
Setting up pandoc (1.16.0.2~dfsg-1) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcurl4-openssl-dev is already the newest version (7.47.0-1ubuntu2.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
./build_rstudio.sh: line 29: cd: /home/sam/Downloads/rstudio-v0.99.473/dependencies/common/: No such file or directory
./build_rstudio.sh: line 31: ./install-gwt: No such file or directory
./build_rstudio.sh: line 32: ./install-dictionaries: No such file or directory
./build_rstudio.sh: line 33: ./install-mathjax: No such file or directory
./build_rstudio.sh: line 34: ./install-boost: No such file or directory
./build_rstudio.sh: line 36: ./install-libclang: No such file or directory
./build_rstudio.sh: line 37: ./install-packages: No such file or directory
mkdir: cannot create directory '/home/sam/Downloads/rstudio-v0.99.473/dependencies/common/pandoc': No such file or directory
./build_rstudio.sh: line 43: cd: /home/sam/Downloads: No such file or directory
--2016-12-28 12:44:22--  http://dl.google.com/closure-compiler/compiler-latest.zip
Resolving dl.google.com (dl.google.com)... 172.217.6.14, 2607:f8b0:4009:813::200e
Connecting to dl.google.com (dl.google.com)|172.217.6.14|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6475111 (6.2M) [application/zip]
Saving to: 'compiler-latest.zip'

compiler-latest.zip            100%[====================================================>]   6.17M  3.02MB/s    in 2.0s

2016-12-28 12:44:26 (3.02 MB/s) - 'compiler-latest.zip' saved [6475111/6475111]

Archive:  compiler-latest.zip
  inflating: closure-compiler-v20161201.jar
  inflating: COPYING
replace README.md? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
  inflating: README.md
mv: cannot move 'closure-compiler-v20161201.jar' to '/home/sam/Downloads/rstudio-v0.99.473/src/gwt/tools/compiler/compiler.jar': No such file or directory
./build_rstudio.sh: line 50: cd: /home/sam/Downloads/rstudio-v0.99.473/: No such file or directory
CMake Error: The source directory "/home/sam/downloads/ARM-rstudio-server-master" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No rule to make target 'install'.  Stop.
useradd: user 'rstudio-server' already exists
cp: cannot stat '/usr/local/lib/rstudio-server/extras/init.d/debian/rstudio-server': No such file or directory
chmod: cannot access '/etc/init.d/rstudio-server': No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
locales is already the newest version (2.23-0ubuntu5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'openjdk-7-jdk' is not installed, so not removed
Package 'cabal-install' is not installed, so not removed
Package 'ghc' is not installed, so not removed
Package 'libboost-all-dev' is not installed, so not removed
The following packages will be REMOVED:
  liblua5.1-0 libyaml-0-2 pandoc pandoc-data
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 122 MB disk space will be freed.
(Reading database ... 67022 files and directories currently installed.)
Removing pandoc (1.16.0.2~dfsg-1) ...
Removing liblua5.1-0:arm64 (5.1.5-8ubuntu1) ...
Removing libyaml-0-2:arm64 (0.1.6-3) ...
Removing pandoc-data (1.16.0.2~dfsg-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo: rstudio-server: command not found
jrowen commented 7 years ago

I'd suggest starting with you apt repo locations. It may be that some of the required deps are not installing.

ztrayl3 commented 3 years ago

I had a similar issue, caused by trying to install R on an arm64 OS (specifically Ubuntu 20.10 on a Raspberry Pi 400). There is an issue with r-base for arm64 systems, however building from source through this page allowed me to get a working R installation. I have not attempted to install Rstudio Server after this yet, and I see that this is a 4 year old issue, but I thought I would comment in case someone else is digging around like me.