$ make install
make[1]: Entering directory '/home/arta/Downloads/R-3.5.1/m4'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/home/arta/Downloads/R-3.5.1/m4'
make[1]: Entering directory '/home/arta/Downloads/R-3.5.1/tools'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/home/arta/Downloads/R-3.5.1/tools'
make[1]: Entering directory '/home/arta/Downloads/R-3.5.1/doc'
installing doc ...
mkdir -p -- /usr/local/lib/R/doc
mkdir: cannot create directory '/usr/local/lib/R/doc': Permission denied
Makefile:104: recipe for target 'installdirs' failed
make[1]: *** [installdirs] Error 1
make[1]: Leaving directory '/home/arta/Downloads/R-3.5.1/doc'
Makefile:95: recipe for target 'install' failed
make: *** [install] Error 1
Above is the result of running make install
.
I followed the first link you sent me and enabled the use of source code (at least, that's what I think I did). I then ran sudo apt-get install r-base-core
and this was the result:
root@lappy-486:~# sudo apt-get install r-base-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
r-base-core is already the newest version (3.4.4-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 93 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up install-info (6.5.0.dfsg.1-2) ...
python2: can't open file '=': [Errno 2] No such file or directory
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
I followed the second link you sent me and ran sudo apt-get build-dep r-base
and this was my output:
root@lappy-486:~# sudo apt-get build-dep r-base
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
bison fonts-lmodern libbison-dev libcairo-script-interpreter2 libcairo2-dev
libcurl4-openssl-dev libjbig-dev libmime-charset-perl libpango1.0-dev
libpixman-1-dev libpotrace0 libptexenc1 libsombok3 libsynctex1 libtexlua52
libtexluajit2 libtext-unidecode-perl libtiff5-dev libtiffxx5
libunicode-linebreak-perl libxcb-render0-dev libxcb-shm0-dev libzzip-0-13
mpack preview-latex-style tcl8.6 tcl8.6-dev tex-common texinfo texlive-base
texlive-binaries texlive-extra-utils texlive-fonts-extra
texlive-fonts-recommended texlive-generic-recommended texlive-latex-base
texlive-latex-extra texlive-latex-recommended texlive-pictures
texlive-plain-generic tk8.6 tk8.6-dev xvfb
0 upgraded, 43 newly installed, 0 to remove and 93 not upgraded.
1 not fully installed or removed.
Need to get 472 MB of archives.
After this operation, 1,273 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 tex-common all 6.09 [33.0 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libbison-dev amd64 2:3.0.4.dfsg-1build1 [339 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 bison amd64 2:3.0.4.dfsg-1build1 [266 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 fonts-lmodern all 2.004.5-3 [4,551 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libcairo-script-interpreter2 amd64 1.15.10-2 [53.4 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libpixman-1-dev amd64 0.34.0-2 [244 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-render0-dev amd64 1.13-1 [18.4 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libxcb-shm0-dev amd64 1.13-1 [6,676 B]
Get:9 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libcairo2-dev amd64 1.15.10-2 [626 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcurl4-openssl-dev amd64 7.58.0-2ubuntu3.2 [295 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 libmime-charset-perl all 1.012.2-1 [30.9 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpango1.0-dev amd64 1.40.14-1ubuntu0.1 [288 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libpotrace0 amd64 1.14-2 [17.4 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libptexenc1 amd64 2017.20170613.44572-8build1 [34.5 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 libsombok3 amd64 2.4.0-1 [27.2 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libsynctex1 amd64 2017.20170613.44572-8build1 [41.3 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libtexlua52 amd64 2017.20170613.44572-8build1 [91.0 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libtexluajit2 amd64 2017.20170613.44572-8build1 [230 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 libtext-unidecode-perl all 1.30-1 [99.0 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libjbig-dev amd64 2.1-3.1build1 [25.2 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libtiffxx5 amd64 4.0.9-5 [5,804 B]
Get:22 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libtiff5-dev amd64 4.0.9-5 [273 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 libunicode-linebreak-perl amd64 0.0.20160702-1build2 [96.6 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libzzip-0-13 amd64 0.13.62-3.1ubuntu0.18.04.1 [26.0 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 mpack amd64 1.6-8.2 [35.5 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 preview-latex-style all 11.91-1ubuntu1 [185 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 tcl8.6 amd64 8.6.8+dfsg-3 [14.4 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 tcl8.6-dev amd64 8.6.8+dfsg-3 [887 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 texinfo amd64 6.5.0.dfsg.1-2 [752 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 texlive-binaries amd64 2017.20170613.44572-8build1 [8,174 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 texlive-base all 2017.20180305-1 [18.7 MB]
Get:32 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 texlive-latex-base all 2017.20180305-1 [951 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 texlive-extra-utils all 2017.20180305-2 [20.9 MB]
Get:34 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 texlive-fonts-extra all 2017.20180305-2 [354 MB]
Get:35 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 texlive-fonts-recommended all 2017.20180305-1 [5,262 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 texlive-plain-generic all 2017.20180305-2 [23.6 MB]
Get:37 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 texlive-generic-recommended all 2017.20180305-1 [15.9 kB]
Get:38 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 texlive-latex-recommended all 2017.20180305-1 [14.9 MB]
Get:39 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 texlive-pictures all 2017.20180305-1 [4,026 kB]
Get:40 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 texlive-latex-extra all 2017.20180305-2 [10.6 MB]
Get:41 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 tk8.6 amd64 8.6.8-4 [12.3 kB]
Get:42 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 tk8.6-dev amd64 8.6.8-4 [679 kB]
Get:43 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 xvfb amd64 2:1.19.6-1ubuntu4 [784 kB]
Fetched 472 MB in 1min 27s (5,450 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up install-info (6.5.0.dfsg.1-2) ...
python2: can't open file '=': [Errno 2] No such file or directory
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Failed to process build dependencies