sudo mkdir -p ~/rpi_mnt pi@raspberrypi48:~ $ sudo mount /dev/sda2 -o rw ~/rpi_mnt pi@raspberrypi48:~ $ cd ~/rpi_mnt pi@raspberrypi48:~/rpi_mnt $ sudo mount --bind /dev ~/rpi_mnt/dev/ pi@raspberrypi48:~/rpi_mnt $ sudo mount --bind /sys ~/rpi_mnt/sys/ pi@raspberrypi48:~/rpi_mnt $ sudo mount --bind /proc ~/rpi_mnt/proc/ pi@raspberrypi48:~/rpi_mnt $ sudo mount --bind /dev/pts ~/rpi_mnt/dev/pts pi@raspberrypi48:~/rpi_mnt $ sudo mkdir -p ~/rpi_mnt/mnt/compile pi@raspberrypi48:~/rpi_mnt $ sudo mount --bind /media/netdir/source/phantomjs_pkg1 ~/rpi_mnt/mnt/compile pi@raspberrypi48:~/rpi_mnt $ cd ~/rpi_mnt pi@raspberrypi48:~/rpi_mnt $ sudo chroot . bin/bash root@raspberrypi48:/# root@raspberrypi48:/# ls -l total 88 drwxr-xr-x 2 root root 4096 Sep 26 09:14 bin drwxr-xr-x 2 root root 4096 Jan 2 22:41 boot drwxr-xr-x 18 root root 4000 Jan 7 23:01 dev drwxr-xr-x 114 root root 12288 Jan 6 23:27 etc drwxr-xr-x 3 root root 4096 Sep 26 09:09 home drwxr-xr-x 16 root root 4096 Jan 6 23:14 lib drwx------ 2 root root 16384 Sep 26 09:30 lost+found drwxr-xr-x 3 root root 4096 Jan 6 23:06 media drwxr-xr-x 6 root root 4096 Jan 6 23:06 mnt drwxr-xr-x 4 root root 4096 Sep 26 09:16 opt dr-xr-xr-x 173 root root 0 Jan 1 1970 proc drwx------ 5 root root 4096 Jan 6 23:05 root drwxr-xr-x 4 root root 4096 Sep 26 09:05 run drwxr-xr-x 2 root root 4096 Jan 6 23:14 sbin drwxr-xr-x 3 root root 4096 Jan 6 23:04 srv dr-xr-xr-x 12 root root 0 Jan 7 22:10 sys drwxrwxrwx 8 systemd-timesync 98 4096 Jan 6 23:05 tftpboot drwxrwxrwt 7 root root 4096 Jan 6 23:28 tmp drwxr-xr-x 11 root root 4096 Sep 26 09:15 usr drwxr-xr-x 11 root root 4096 Jan 6 23:27 var root@raspberrypi48:/# echo 00:00:00 00:00:00 root@raspberrypi48:/# date Tue 07 Jan 2020 11:12:43 PM JST root@raspberrypi48:/# cd /mnt/compile root@raspberrypi48:/mnt/compile# ls -l total 40636 -rw-r--r--+ 1 pi pi 743942 Sep 13 2015 bison_2%3a3.0.4.dfsg-1_armhf.deb -rw-r--r--+ 1 pi pi 413888 Jan 16 2017 flex_2.6.1-1.3_armhf.deb -rw-r--r--+ 1 pi pi 137806 Aug 15 2015 gperf_3.0.4-2_armhf.deb -rw-r--r--+ 1 pi pi 156550 Sep 8 07:08 icu-devtools_57.1-6+deb9u3_armhf.deb -rw-r--r--+ 1 pi pi 432604 Sep 13 2015 libbison-dev_2%3a3.0.4.dfsg-1_armhf.deb -rw-r--r--+ 1 pi pi 93038 Jan 16 2017 libfl-dev_2.6.1-1.3_armhf.deb -rw-r--r--+ 1 pi pi 313136 Aug 31 2016 libfontconfig1_2.11.0-6.7_armhf.deb -rw-r--r--+ 1 pi pi 877246 Aug 31 2016 libfontconfig1-dev_2.11.0-6.7_armhf.deb -rw-r--r--+ 1 pi pi 28444 Jun 14 2016 libgdbm3_1.8.3-14_armhf.deb -rw-r--r--+ 1 pi pi 7425372 Sep 8 07:08 libicu57_57.1-6+deb9u3_armhf.deb -rw-r--r--+ 1 pi pi 15766882 Sep 8 07:08 libicu-dev_57.1-6+deb9u3_armhf.deb -rw-r--r--+ 1 pi pi 109264 Oct 27 2016 libjpeg62-turbo_1%3a1.5.1-2_armhf.deb -rw-r--r--+ 1 pi pi 180714 Oct 27 2016 libjpeg62-turbo-dev_1%3a1.5.1-2_armhf.deb -rw-r--r--+ 1 pi pi 56150 Oct 21 2016 libjpeg-dev_1%3a1.5.1-2_all.deb -rw-r--r--+ 1 pi pi 2836576 Nov 30 2018 libperl5.24_5.24.1-3+deb9u5_armhf.deb -rw-r--r--+ 1 pi pi 263160 Apr 28 2019 libpng16-16_1.6.28-1+deb9u1_armhf.deb -rw-r--r--+ 1 pi pi 231974 Apr 28 2019 libpng-dev_1.6.28-1+deb9u1_armhf.deb -rw-r--r--+ 1 pi pi 129604 Apr 28 2019 libpng-tools_1.6.28-1+deb9u1_armhf.deb -rw-r--r--+ 1 pi pi 2866580 Apr 28 2019 libruby2.3_2.3.3-1+deb9u6+rpi1_armhf.deb -rw-r--r--+ 1 pi pi 28414 Mar 27 2016 libsigsegv2_2.10-5_armhf.deb -rw-r--r--+ 1 pi pi 493138 Dec 10 2017 libsqlite3-0_3.16.2-5+deb9u1_armhf.deb -rw-r--r--+ 1 pi pi 613156 Dec 10 2017 libsqlite3-dev_3.16.2-5+deb9u1_armhf.deb -rw-r--r--+ 1 pi pi 898808 Mar 1 2019 libssl1.0.2_1.0.2r-1~deb9u1_armhf.deb -rw-r--r--+ 1 pi pi 1159976 Mar 1 2019 libssl1.0-dev_1.0.2r-1~deb9u1_armhf.deb -rw-r--r--+ 1 pi pi 184906 Jan 16 2017 m4_1.4.18-1_armhf.deb -rw-r--r--+ 1 pi pi 218554 Nov 30 2018 perl_5.24.1-3+deb9u5_armhf.deb -rw-r--r--+ 1 pi pi 1197914 Nov 30 2018 perl-base_5.24.1-3+deb9u5_armhf.deb -rw-r--r--+ 1 pi pi 2722478 Nov 29 2018 perl-modules-5.24_5.24.1-3+deb9u5_all.deb -rw-r--r--+ 1 pi pi 10768 Dec 22 2016 ruby_1%3a2.3.3_armhf.deb -rw-r--r--+ 1 pi pi 188474 Apr 28 2019 ruby2.3_2.3.3-1+deb9u6+rpi1_armhf.deb drwxr-xr-x+ 1 pi pi 762 Dec 8 20:07 tmp -rw-r--r--+ 1 pi pi 767866 Apr 8 2019 wget_1.18-5+deb9u3_armhf.deb root@raspberrypi48:/mnt/compile# dpkg -i libssl1.0.2_1.0.2r-1~deb9u1_armhf.deb Selecting previously unselected package libssl1.0.2:armhf. (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 98215 files and directories currently installed.) Preparing to unpack libssl1.0.2_1.0.2r-1~deb9u1_armhf.deb ... Unpacking libssl1.0.2:armhf (1.0.2r-1~deb9u1) ... Setting up libssl1.0.2:armhf (1.0.2r-1~deb9u1) ... Processing triggers for libc-bin (2.28-10+rpi1) ... root@raspberrypi48:/mnt/compile# dpikkg -i icu-devtools_57.1-6+deb9u3_armhf.deb Selecting previously unselected package icu-devtools. (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 98236 files and directories currently installed.) Preparing to unpack icu-devtools_57.1-6+deb9u3_armhf.deb ... Unpacking icu-devtools (57.1-6+deb9u3) ... dpkg: dependency problems prevent configuration of icu-devtools: icu-devtools depends on libicu57 (>= 57.1-1~); however: Package libicu57 is not installed. dpkg: error processing package icu-devtools (--install): dependency problems - leaving unconfigured Processing triggers for man-db (2.8.5-2) ... Errors were encountered while processing: icu-devtools root@raspberrypi48:/mnt/compile# dpkg -i libicu57_57.1-6+deb9u3_armhf.deb Selecting previously unselected package libicu57:armhf. (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 98271 files and directories currently installed.) Preparing to unpack libicu57_57.1-6+deb9u3_armhf.deb ... Unpacking libicu57:armhf (57.1-6+deb9u3) ... Setting up libicu57:armhf (57.1-6+deb9u3) ... Processing triggers for libc-bin (2.28-10+rpi1) ... root@raspberrypi48:/mnt/compile# dpkg -i icu-devtools_57.1-6+deb9u3_armhf.deb (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 98292 files and directories currently installed.) Preparing to unpack icu-devtools_57.1-6+deb9u3_armhf.deb ... Unpacking icu-devtools (57.1-6+deb9u3) over (57.1-6+deb9u3) ... Setting up icu-devtools (57.1-6+deb9u3) ... Processing triggers for man-db (2.8.5-2) ... root@raspberrypi48:/mnt/compile# compile finish bash: compile: command not found root@raspberrypi48:/mnt/compile# exit exit pi@raspberrypi48:~/rpi_mnt $ cd pi@raspberrypi48:~ $ sudo umount ~/rpi_mnt/mnt/compile pi@raspberrypi48:~ $ sudo umount ~/rpi_mnt/dev/pts pi@raspberrypi48:~ $ sudo umount ~/rpi_mnt/proc pi@raspberrypi48:~ $ sudo umount ~/rpi_mnt/sys pi@raspberrypi48:~ $ sudo umount ~/rpi_mnt/dev pi@raspberrypi48:~ $ sudo umount ~/rpi_mnt pi@raspberrypi48:~ $