pi@raspberrypi:~ $ sudo apt-get update Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB] Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB] Get:3 http://archive.raspberrypi.org/debian stretch/main armhf Packages [159 kB] Get:4 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB] Get:5 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [32.9 kB] Fetched 11.9 MB in 65d 5h 2min 32s (2 B/s) Reading package lists... Done pi@raspberrypi:~ $ sudo apt-get -g upgrade E: Command line option 'g' [from -g] is not understood in combination with the other options. pi@raspberrypi:~ $ sudo apt-get -g upgrade E: Command line option 'g' [from -g] is not understood in combination with the other options. pi@raspberrypi:~ $ pi@raspberrypi:~ $ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier Use 'sudo apt autoremove' to remove them. The following packages have been kept back: chromium-browser rpi-chromium-mods The following packages will be upgraded: bluez-firmware curl git git-man gnupg gnupg-agent gpgv libcurl3 libcurl3-gnutls libfm-data libfm-extra4 libfm-gtk-data libfm-gtk4 libfm-modules libfm4 libgcrypt20 libmad0 libpackagekit-glib2-18 libperl5.24 libprocps6 libsdl-image1.2 libwavpack1 lxinput lxplug-network lxplug-volume nodered packagekit perl perl-base perl-modules-5.24 pi-bluetooth pi-package pi-package-data pi-package-session piclone pipanel procps python-blinkt python-phatbeat python-rainbowhat python3-blinkt python3-phatbeat python3-rainbowhat raspberrypi-ui-mods raspi-config rc-gui rpd-icons scratch2 wget wiringpi xdg-utils 51 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. Need to get 93.4 MB of archives. After this operation, 52.2 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://archive.raspberrypi.org/debian stretch/main armhf bluez-firmware all 1.2-3+rpt6 [126 kB] Get:2 http://archive.raspberrypi.org/debian stretch/ui armhf libfm-data all 1.2.5-1+rpi5 [235 kB] Get:3 http://archive.raspberrypi.org/debian stretch/ui armhf libfm-extra4 armhf 1.2.5-1+rpi5 [29.3 kB] Get:4 http://archive.raspberrypi.org/debian stretch/ui armhf libfm-gtk-data all 1.2.5-1+rpi5 [34.0 kB] Get:5 http://archive.raspberrypi.org/debian stretch/ui armhf libfm-gtk4 armhf 1.2.5-1+rpi5 [134 kB] Get:6 http://archive.raspberrypi.org/debian stretch/ui armhf libfm4 armhf 1.2.5-1+rpi5 [101 kB] Get:7 http://archive.raspberrypi.org/debian stretch/ui armhf libfm-modules armhf 1.2.5-1+rpi5 [46.0 kB] Get:8 http://archive.raspberrypi.org/debian stretch/ui armhf lxinput armhf 0.3.5-1+rpi4 [58.8 kB] Get:9 http://archive.raspberrypi.org/debian stretch/ui armhf raspi-config all 20180518 [20.1 kB] Get:10 http://archive.raspberrypi.org/debian stretch/ui armhf rc-gui armhf 1.20 [42.2 kB] Get:11 http://archive.raspberrypi.org/debian stretch/ui armhf lxplug-network armhf 0.11 [31.3 kB] Get:12 http://archive.raspberrypi.org/debian stretch/ui armhf lxplug-volume armhf 0.13 [16.5 kB] Get:13 http://archive.raspberrypi.org/debian stretch/main armhf nodered armhf 0.18.7-1 [5,162 kB] Get:14 http://archive.raspberrypi.org/debian stretch/main armhf pi-bluetooth all 0.1.8 [4,346 B] Get:15 http://archive.raspberrypi.org/debian stretch/ui armhf pi-package-data all 0.5 [1,044 kB] Get:16 http://mirror.us.leaseweb.net/raspbian/raspbian stretch/main armhf libperl5.24 armhf 5.24.1-3+deb9u4 [2,848 kB] Get:17 http://raspbian.mirror.constant.com/raspbian stretch/main armhf perl armhf 5.24.1-3+deb9u4 [218 kB] Get:20 http://archive.raspberrypi.org/debian stretch/ui armhf pi-package-session armhf 0.5 [72.9 kB] Get:18 http://mirror.us.leaseweb.net/raspbian/raspbian stretch/main armhf perl-base armhf 5.24.1-3+deb9u4 [1,196 kB] Get:23 http://archive.raspberrypi.org/debian stretch/ui armhf pi-package armhf 0.5 [131 kB] Get:25 http://archive.raspberrypi.org/debian stretch/ui armhf piclone armhf 0.9 [14.1 kB] Get:26 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf libgcrypt20 armhf 1.7.6-2+deb9u3 [462 kB] Get:39 http://archive.raspberrypi.org/debian stretch/ui armhf pipanel armhf 20180621~152457 [20.0 kB] Get:27 http://raspbian-us.ngc292.space/raspbian stretch/main armhf gpgv armhf 2.1.18-8~deb9u2 [441 kB] Get:32 http://mirror.sjc02.svwh.net/raspbian/raspbian stretch/main armhf wget armhf 1.18-5+deb9u2 [768 kB] Get:33 http://mirror.us.leaseweb.net/raspbian/raspbian stretch/main armhf curl armhf 7.52.1-5+deb9u6 [220 kB] Get:19 http://raspbian.mirror.constant.com/raspbian stretch/main armhf perl-modules-5.24 all 5.24.1-3+deb9u4 [2,724 kB] Get:30 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libprocps6 armhf 2:3.3.12-3+deb9u1 [55.8 kB] Get:31 http://raspbian-us.ngc292.space/raspbian stretch/main armhf procps armhf 2:3.3.12-3+deb9u1 [229 kB] Get:41 http://archive.raspberrypi.org/debian stretch/ui armhf rpd-icons all 0.16 [976 kB] Get:34 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libcurl3 armhf 7.52.1-5+deb9u6 [261 kB] Get:35 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libmad0 armhf 0.15.1b-8+deb9u1 [66.1 kB] Get:36 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libpackagekit-glib2-18 armhf 1.1.5-2+deb9u1 [96.2 kB] Get:28 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf gnupg-agent armhf 2.1.18-8~deb9u2 [499 kB] Get:43 http://archive.raspberrypi.org/debian stretch/main armhf wiringpi armhf 2.46 [47.1 kB] Get:44 http://archive.raspberrypi.org/debian stretch/main armhf python-blinkt all 0.1.2 [6,126 B] Get:38 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf libwavpack1 armhf 5.0.0-2+deb9u2 [73.3 kB] Get:40 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf packagekit armhf 1.1.5-2+deb9u1 [519 kB] Get:45 http://archive.raspberrypi.org/debian stretch/main armhf python-phatbeat all 0.1.1 [5,646 B] Get:46 http://archive.raspberrypi.org/debian stretch/main armhf python-rainbowhat all 0.1.0 [11.5 kB] Get:47 http://archive.raspberrypi.org/debian stretch/main armhf python3-blinkt all 0.1.2 [6,212 B] Get:48 http://archive.raspberrypi.org/debian stretch/main armhf python3-phatbeat all 0.1.1 [5,730 B] Get:21 http://raspbian.mirror.constant.com/raspbian stretch/main armhf git-man all 1:2.11.0-3+deb9u3 [1,433 kB] Get:49 http://archive.raspberrypi.org/debian stretch/main armhf python3-rainbowhat all 0.1.0 [11.6 kB] Get:50 http://archive.raspberrypi.org/debian stretch/ui armhf raspberrypi-ui-mods all 1.20180517 [314 kB] Get:22 http://raspbian.mirror.constant.com/raspbian stretch/main armhf libcurl3-gnutls armhf 7.52.1-5+deb9u6 [259 kB] Get:24 http://raspbian.mirror.constant.com/raspbian stretch/main armhf git armhf 1:2.11.0-3+deb9u3 [3,388 kB] Get:51 http://archive.raspberrypi.org/debian stretch/ui armhf scratch2 armhf 0.19 [67.8 MB] Get:29 http://raspbian.mirror.constant.com/raspbian stretch/main armhf gnupg armhf 2.1.18-8~deb9u2 [1,020 kB] Get:37 http://raspbian.mirror.constant.com/raspbian stretch/main armhf libsdl-image1.2 armhf 1.2.12-5+deb9u1 [31.7 kB] Get:42 http://raspbian.mirror.constant.com/raspbian stretch/main armhf xdg-utils all 1.1.1-1+deb9u1 [71.2 kB] Fetched 93.4 MB in 1min 17s (1,203 kB/s) Reading changelogs... Done Extracting templates from packages: 100% (Reading database ... 124722 files and directories currently installed.) Preparing to unpack .../libperl5.24_5.24.1-3+deb9u4_armhf.deb ... Unpacking libperl5.24:armhf (5.24.1-3+deb9u4) over (5.24.1-3+deb9u3) ... Preparing to unpack .../perl_5.24.1-3+deb9u4_armhf.deb ... Unpacking perl (5.24.1-3+deb9u4) over (5.24.1-3+deb9u3) ... Preparing to unpack .../perl-base_5.24.1-3+deb9u4_armhf.deb ... Unpacking perl-base (5.24.1-3+deb9u4) over (5.24.1-3+deb9u3) ... Setting up perl-base (5.24.1-3+deb9u4) ... (Reading database ... 124722 files and directories currently installed.) Preparing to unpack .../perl-modules-5.24_5.24.1-3+deb9u4_all.deb ... Unpacking perl-modules-5.24 (5.24.1-3+deb9u4) over (5.24.1-3+deb9u3) ... Preparing to unpack .../git-man_1%3a2.11.0-3+deb9u3_all.deb ... Unpacking git-man (1:2.11.0-3+deb9u3) over (1:2.11.0-3+deb9u2) ... Preparing to unpack .../libcurl3-gnutls_7.52.1-5+deb9u6_armhf.deb ... Unpacking libcurl3-gnutls:armhf (7.52.1-5+deb9u6) over (7.52.1-5+deb9u5) ... Preparing to unpack .../git_1%3a2.11.0-3+deb9u3_armhf.deb ... Unpacking git (1:2.11.0-3+deb9u3) over (1:2.11.0-3+deb9u2) ... Preparing to unpack .../libgcrypt20_1.7.6-2+deb9u3_armhf.deb ... Unpacking libgcrypt20:armhf (1.7.6-2+deb9u3) over (1.7.6-2+deb9u2) ... Setting up libgcrypt20:armhf (1.7.6-2+deb9u3) ... (Reading database ... 124722 files and directories currently installed.) Preparing to unpack .../gpgv_2.1.18-8~deb9u2_armhf.deb ... Unpacking gpgv (2.1.18-8~deb9u2) over (2.1.18-8~deb9u1) ... Setting up gpgv (2.1.18-8~deb9u2) ... (Reading database ... 124722 files and directories currently installed.) Preparing to unpack .../gnupg-agent_2.1.18-8~deb9u2_armhf.deb ... Unpacking gnupg-agent (2.1.18-8~deb9u2) over (2.1.18-8~deb9u1) ... Setting up gnupg-agent (2.1.18-8~deb9u2) ... (Reading database ... 124722 files and directories currently installed.) Preparing to unpack .../gnupg_2.1.18-8~deb9u2_armhf.deb ... Unpacking gnupg (2.1.18-8~deb9u2) over (2.1.18-8~deb9u1) ... Setting up gnupg (2.1.18-8~deb9u2) ... (Reading database ... 124722 files and directories currently installed.) Preparing to unpack .../00-libprocps6_2%3a3.3.12-3+deb9u1_armhf.deb ... Unpacking libprocps6:armhf (2:3.3.12-3+deb9u1) over (2:3.3.12-3) ... Preparing to unpack .../01-procps_2%3a3.3.12-3+deb9u1_armhf.deb ... Unpacking procps (2:3.3.12-3+deb9u1) over (2:3.3.12-3) ... Preparing to unpack .../02-wget_1.18-5+deb9u2_armhf.deb ... Unpacking wget (1.18-5+deb9u2) over (1.18-5+deb9u1) ... Preparing to unpack .../03-bluez-firmware_1.2-3+rpt6_all.deb ... Unpacking bluez-firmware (1.2-3+rpt6) over (1.2-3+rpt4.1) ... Preparing to unpack .../04-curl_7.52.1-5+deb9u6_armhf.deb ... Unpacking curl (7.52.1-5+deb9u6) over (7.52.1-5+deb9u5) ... Preparing to unpack .../05-libcurl3_7.52.1-5+deb9u6_armhf.deb ... Unpacking libcurl3:armhf (7.52.1-5+deb9u6) over (7.52.1-5+deb9u5) ... Preparing to unpack .../06-libfm-data_1.2.5-1+rpi5_all.deb ... Unpacking libfm-data (1.2.5-1+rpi5) over (1.2.5-1+rpi4) ... Preparing to unpack .../07-libfm-extra4_1.2.5-1+rpi5_armhf.deb ... Unpacking libfm-extra4:armhf (1.2.5-1+rpi5) over (1.2.5-1+rpi4) ... Preparing to unpack .../08-libfm-gtk-data_1.2.5-1+rpi5_all.deb ... Unpacking libfm-gtk-data (1.2.5-1+rpi5) over (1.2.5-1+rpi4) ... Preparing to unpack .../09-libfm-gtk4_1.2.5-1+rpi5_armhf.deb ... Unpacking libfm-gtk4:armhf (1.2.5-1+rpi5) over (1.2.5-1+rpi4) ... Preparing to unpack .../10-libfm4_1.2.5-1+rpi5_armhf.deb ... Unpacking libfm4:armhf (1.2.5-1+rpi5) over (1.2.5-1+rpi4) ... Preparing to unpack .../11-libfm-modules_1.2.5-1+rpi5_armhf.deb ... Unpacking libfm-modules:armhf (1.2.5-1+rpi5) over (1.2.5-1+rpi4) ... Preparing to unpack .../12-libmad0_0.15.1b-8+deb9u1_armhf.deb ... Unpacking libmad0:armhf (0.15.1b-8+deb9u1) over (0.15.1b-8) ... Preparing to unpack .../13-libpackagekit-glib2-18_1.1.5-2+deb9u1_armhf.deb ... Unpacking libpackagekit-glib2-18:armhf (1.1.5-2+deb9u1) over (1.1.5-2) ... Preparing to unpack .../14-libsdl-image1.2_1.2.12-5+deb9u1_armhf.deb ... Unpacking libsdl-image1.2:armhf (1.2.12-5+deb9u1) over (1.2.12-5+b2) ... Preparing to unpack .../15-libwavpack1_5.0.0-2+deb9u2_armhf.deb ... Unpacking libwavpack1:armhf (5.0.0-2+deb9u2) over (5.0.0-2+deb9u1) ... Preparing to unpack .../16-lxinput_0.3.5-1+rpi4_armhf.deb ... Unpacking lxinput (0.3.5-1+rpi4) over (0.3.5-1+rpi3) ... Preparing to unpack .../17-raspi-config_20180518_all.deb ... Unpacking raspi-config (20180518) over (20180406+1) ... Preparing to unpack .../18-rc-gui_1.20_armhf.deb ... Unpacking rc-gui (1.20) over (1.16) ... Preparing to unpack .../19-lxplug-network_0.11_armhf.deb ... Unpacking lxplug-network (0.11) over (0.9) ... Preparing to unpack .../20-lxplug-volume_0.13_armhf.deb ... Unpacking lxplug-volume (0.13) over (0.10) ... Preparing to unpack .../21-nodered_0.18.7-1_armhf.deb ... Unpacking nodered (0.18.7-1) over (0.18.4-1) ... Preparing to unpack .../22-packagekit_1.1.5-2+deb9u1_armhf.deb ... Unpacking packagekit (1.1.5-2+deb9u1) over (1.1.5-2) ... Preparing to unpack .../23-pi-bluetooth_0.1.8_all.deb ... Unpacking pi-bluetooth (0.1.8) over (0.1.7) ... Preparing to unpack .../24-pi-package-data_0.5_all.deb ... Unpacking pi-package-data (0.5) over (0.3) ... Preparing to unpack .../25-pi-package-session_0.5_armhf.deb ... Unpacking pi-package-session (0.5) over (0.3) ... Preparing to unpack .../26-pi-package_0.5_armhf.deb ... Unpacking pi-package (0.5) over (0.3) ... Preparing to unpack .../27-piclone_0.9_armhf.deb ... Unpacking piclone (0.9) over (0.7) ... Preparing to unpack .../28-pipanel_20180621~152457_armhf.deb ... Unpacking pipanel (20180621~152457) over (20180126~074441) ... Preparing to unpack .../29-rpd-icons_0.16_all.deb ... Unpacking rpd-icons (0.16) over (0.15) ... Preparing to unpack .../30-wiringpi_2.46_armhf.deb ... Unpacking wiringpi (2.46) over (2.44+1) ... Preparing to unpack .../31-xdg-utils_1.1.1-1+deb9u1_all.deb ... Unpacking xdg-utils (1.1.1-1+deb9u1) over (1.1.1-1) ... Preparing to unpack .../32-python-blinkt_0.1.2_all.deb ... Unpacking python-blinkt (0.1.2) over (0.1.1) ... Preparing to unpack .../33-python-phatbeat_0.1.1_all.deb ... Unpacking python-phatbeat (0.1.1) over (0.1.0) ... Preparing to unpack .../34-python-rainbowhat_0.1.0_all.deb ... Unpacking python-rainbowhat (0.1.0) over (0.0.2) ... Preparing to unpack .../35-python3-blinkt_0.1.2_all.deb ... Unpacking python3-blinkt (0.1.2) over (0.1.1) ... Preparing to unpack .../36-python3-phatbeat_0.1.1_all.deb ... Unpacking python3-phatbeat (0.1.1) over (0.1.0) ... Preparing to unpack .../37-python3-rainbowhat_0.1.0_all.deb ... Unpacking python3-rainbowhat (0.1.0) over (0.0.2) ... Preparing to unpack .../38-raspberrypi-ui-mods_1.20180517_all.deb ... Unpacking raspberrypi-ui-mods (1.20180517) over (1.20180307) ... Preparing to unpack .../39-scratch2_0.19_armhf.deb ... Unpacking scratch2 (0.19) over (0.18) ... Setting up perl-modules-5.24 (5.24.1-3+deb9u4) ... Setting up pipanel (20180621~152457) ... Setting up libperl5.24:armhf (5.24.1-3+deb9u4) ... Setting up git-man (1:2.11.0-3+deb9u3) ... Setting up scratch2 (0.19) ... gtk-update-icon-cache: Cache file created successfully. Setting up piclone (0.9) ... Setting up bluez-firmware (1.2-3+rpt6) ... Setting up rpd-icons (0.16) ... Setting up python-rainbowhat (0.1.0) ... Processing triggers for mime-support (3.60) ... Processing triggers for desktop-file-utils (0.23-1) ... Setting up libwavpack1:armhf (5.0.0-2+deb9u2) ... Setting up libcurl3:armhf (7.52.1-5+deb9u6) ... Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ... Setting up libcurl3-gnutls:armhf (7.52.1-5+deb9u6) ... Processing triggers for libglib2.0-0:armhf (2.50.3-2) ... Setting up pi-bluetooth (0.1.8) ... Created symlink /etc/systemd/system/bluetooth.target.wants/bthelper.service → /lib/systemd/system/bthelper.service. Setting up raspberrypi-ui-mods (1.20180517) ... Installing new version of config file /etc/xdg/lxsession/LXDE-pi/desktop.conf ... Installing new version of config file /etc/xdg/openbox/lxde-pi-rc.xml ... Installing new version of config file /etc/xdg/pcmanfm/LXDE-pi/desktop-items-0.conf ... Backing up old config files... Backing up old config files... /home/pi/.config/Trolltech.conf /home/pi/.themes/PiX /home/pi/.config/lxsession/LXDE-pi/desktop.conf /home/pi/.config/openbox/lxde-pi-rc.xml /home/pi/.config/pcmanfm/LXDE-pi/desktop-items-0.conf /home/pi/.config/gtk-3.0/gtk.css Removing obsolete conffile /etc/xdg/autostart/lxkeymap.desktop ... Setting up libfm-data (1.2.5-1+rpi5) ... Setting up libpackagekit-glib2-18:armhf (1.1.5-2+deb9u1) ... Setting up libprocps6:armhf (2:3.3.12-3+deb9u1) ... Setting up procps (2:3.3.12-3+deb9u1) ... Setting up raspi-config (20180518) ... Setting up perl (5.24.1-3+deb9u4) ... Setting up pi-package-data (0.5) ... Setting up python3-blinkt (0.1.2) ... Setting up libfm-extra4:armhf (1.2.5-1+rpi5) ... Setting up nodered (0.18.7-1) ... Setting up lxinput (0.3.5-1+rpi4) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Setting up python3-rainbowhat (0.1.0) ... Processing triggers for systemd (232-25+deb9u2) ... Setting up wget (1.18-5+deb9u2) ... Setting up rc-gui (1.20) ... Setting up libfm-gtk-data (1.2.5-1+rpi5) ... Processing triggers for man-db (2.7.6.1-2) ... Processing triggers for shared-mime-info (1.8-1) ... Processing triggers for gnome-menus (3.13.3-9) ... Setting up libsdl-image1.2:armhf (1.2.12-5+deb9u1) ... Setting up libmad0:armhf (0.15.1b-8+deb9u1) ... Processing triggers for dbus (1.10.26-0+deb9u1) ... Setting up python3-phatbeat (0.1.1) ... Setting up python-blinkt (0.1.2) ... Setting up xdg-utils (1.1.1-1+deb9u1) ... Setting up python-phatbeat (0.1.1) ... Processing triggers for hicolor-icon-theme (0.15-1) ... Setting up git (1:2.11.0-3+deb9u3) ... Setting up packagekit (1.1.5-2+deb9u1) ... Setting up wiringpi (2.46) ... Setting up curl (7.52.1-5+deb9u6) ... Setting up libfm4:armhf (1.2.5-1+rpi5) ... Setting up pi-package-session (0.5) ... Setting up libfm-gtk4:armhf (1.2.5-1+rpi5) ... Setting up pi-package (0.5) ... Setting up libfm-modules:armhf (1.2.5-1+rpi5) ... Setting up lxplug-volume (0.13) ... Setting up lxplug-network (0.11) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... pi@raspberrypi:~ $ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier Use 'sudo apt autoremove' to remove them. The following packages have been kept back: chromium-browser rpi-chromium-mods 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. pi@raspberrypi:~ $ sudo apt-get install git Reading package lists... Done Building dependency tree Reading state information... Done git is already the newest version (1:2.11.0-3+deb9u3). The following packages were automatically installed and are no longer required: lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. pi@raspberrypi:~ $ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done python-pip is already the newest version (9.0.1-2+rpt2). The following packages were automatically installed and are no longer required: lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. pi@raspberrypi:~ $ sudo apt-get install pkg-config libboost-python-dev libboost-thread-dev libbluetooth-dev libglib2.0-dev python-dev build-essential python-dev Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.3). pkg-config is already the newest version (0.29-4). python-dev is already the newest version (2.7.13-2). python-dev set to manually installed. The following packages were automatically installed and are no longer required: lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libboost-atomic1.62-dev libboost-atomic1.62.0 libboost-chrono1.62-dev libboost-chrono1.62.0 libboost-date-time1.62-dev libboost-python1.62-dev libboost-python1.62.0 libboost-serialization1.62-dev libboost-serialization1.62.0 libboost-system1.62-dev libboost-thread1.62-dev libboost1.62-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 Suggested packages: libboost1.62-doc gccxml libboost-context1.62-dev libboost-coroutine1.62-dev libboost-exception1.62-dev libboost-fiber1.62-dev libboost-filesystem1.62-dev libboost-graph1.62-dev libboost-graph-parallel1.62-dev libboost-iostreams1.62-dev libboost-locale1.62-dev libboost-log1.62-dev libboost-math1.62-dev libboost-mpi1.62-dev libboost-mpi-python1.62-dev libboost-program-options1.62-dev libboost-random1.62-dev libboost-regex1.62-dev libboost-signals1.62-dev libboost-test1.62-dev libboost-timer1.62-dev libboost-type-erasure1.62-dev libboost-wave1.62-dev libboost1.62-tools-dev libmpfrc++-dev libntl-dev libglib2.0-doc The following NEW packages will be installed: libbluetooth-dev libboost-atomic1.62-dev libboost-atomic1.62.0 libboost-chrono1.62-dev libboost-chrono1.62.0 libboost-date-time1.62-dev libboost-python-dev libboost-python1.62-dev libboost-python1.62.0 libboost-serialization1.62-dev libboost-serialization1.62.0 libboost-system1.62-dev libboost-thread-dev libboost-thread1.62-dev libboost1.62-dev libglib2.0-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 0 upgraded, 19 newly installed, 0 to remove and 2 not upgraded. Need to get 11.8 MB of archives. After this operation, 134 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://archive.raspberrypi.org/debian stretch/main armhf libbluetooth-dev armhf 5.43-2+rpt2+deb9u2 [181 kB] Get:2 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libpcrecpp0v5 armhf 2:8.39-3 [149 kB] Get:3 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libboost1.62-dev armhf 1.62.0+dfsg-4 [7,009 kB] Get:4 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf libboost-atomic1.62.0 armhf 1.62.0+dfsg-4 [31.1 kB] Get:9 http://mirror.umd.edu/raspbian/raspbian stretch/main armhf libboost-serialization1.62-dev armhf 1.62.0+dfsg-4 [170 kB] Get:8 http://raspbian.mirror.constant.com/raspbian stretch/main armhf libboost-serialization1.62.0 armhf 1.62.0+dfsg-4 [105 kB] Get:5 http://mirror.us.leaseweb.net/raspbian/raspbian stretch/main armhf libboost-atomic1.62-dev armhf 1.62.0+dfsg-4 [29.5 kB] Get:7 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf libboost-chrono1.62-dev armhf 1.62.0+dfsg-4 [37.4 kB] Get:10 http://raspbian.mirror.constant.com/raspbian stretch/main armhf libboost-date-time1.62-dev armhf 1.62.0+dfsg-4 [51.1 kB] Get:6 http://mirror.us.leaseweb.net/raspbian/raspbian stretch/main armhf libboost-chrono1.62.0 armhf 1.62.0+dfsg-4 [35.7 kB] Get:12 http://raspbian.mirror.constant.com/raspbian stretch/main armhf libboost-python1.62-dev armhf 1.62.0+dfsg-4 [156 kB] Get:11 http://mirrors.ocf.berkeley.edu/raspbian/raspbian stretch/main armhf libboost-python1.62.0 armhf 1.62.0+dfsg-4 [120 kB] Get:13 http://raspbian.mirror.constant.com/raspbian stretch/main armhf libboost-python-dev armhf 1.62.0.1+b4 [4,086 B] Get:14 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libboost-system1.62-dev armhf 1.62.0+dfsg-4 [33.1 kB] Get:15 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf libboost-thread1.62-dev armhf 1.62.0+dfsg-4 [71.3 kB] Get:16 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf libboost-thread-dev armhf 1.62.0.1+b4 [3,724 B] Get:17 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libpcre32-3 armhf 2:8.39-3 [227 kB] Get:18 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libpcre3-dev armhf 2:8.39-3 [565 kB] Get:19 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libglib2.0-dev armhf 2.50.3-2 [2,775 kB] Fetched 11.8 MB in 13s (883 kB/s) Selecting previously unselected package libpcrecpp0v5:armhf. (Reading database ... 123411 files and directories currently installed.) Preparing to unpack .../00-libpcrecpp0v5_2%3a8.39-3_armhf.deb ... Unpacking libpcrecpp0v5:armhf (2:8.39-3) ... Selecting previously unselected package libboost1.62-dev:armhf. Preparing to unpack .../01-libboost1.62-dev_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost1.62-dev:armhf (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-atomic1.62.0:armhf. Preparing to unpack .../02-libboost-atomic1.62.0_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-atomic1.62.0:armhf (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-atomic1.62-dev:armhf. Preparing to unpack .../03-libboost-atomic1.62-dev_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-atomic1.62-dev:armhf (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-chrono1.62.0:armhf. Preparing to unpack .../04-libboost-chrono1.62.0_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-chrono1.62.0:armhf (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-chrono1.62-dev:armhf. Preparing to unpack .../05-libboost-chrono1.62-dev_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-chrono1.62-dev:armhf (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-serialization1.62.0:armhf. Preparing to unpack .../06-libboost-serialization1.62.0_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-serialization1.62.0:armhf (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-serialization1.62-dev:armhf. Preparing to unpack .../07-libboost-serialization1.62-dev_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-serialization1.62-dev:armhf (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-date-time1.62-dev:armhf. Preparing to unpack .../08-libboost-date-time1.62-dev_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-date-time1.62-dev:armhf (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-python1.62.0. Preparing to unpack .../09-libboost-python1.62.0_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-python1.62.0 (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-python1.62-dev. Preparing to unpack .../10-libboost-python1.62-dev_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-python1.62-dev (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-python-dev. Preparing to unpack .../11-libboost-python-dev_1.62.0.1+b4_armhf.deb ... Unpacking libboost-python-dev (1.62.0.1+b4) ... Selecting previously unselected package libboost-system1.62-dev:armhf. Preparing to unpack .../12-libboost-system1.62-dev_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-system1.62-dev:armhf (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-thread1.62-dev:armhf. Preparing to unpack .../13-libboost-thread1.62-dev_1.62.0+dfsg-4_armhf.deb ... Unpacking libboost-thread1.62-dev:armhf (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-thread-dev:armhf. Preparing to unpack .../14-libboost-thread-dev_1.62.0.1+b4_armhf.deb ... Unpacking libboost-thread-dev:armhf (1.62.0.1+b4) ... Selecting previously unselected package libpcre32-3:armhf. Preparing to unpack .../15-libpcre32-3_2%3a8.39-3_armhf.deb ... Unpacking libpcre32-3:armhf (2:8.39-3) ... Selecting previously unselected package libpcre3-dev:armhf. Preparing to unpack .../16-libpcre3-dev_2%3a8.39-3_armhf.deb ... Unpacking libpcre3-dev:armhf (2:8.39-3) ... Selecting previously unselected package libglib2.0-dev. Preparing to unpack .../17-libglib2.0-dev_2.50.3-2_armhf.deb ... Unpacking libglib2.0-dev (2.50.3-2) ... Selecting previously unselected package libbluetooth-dev. Preparing to unpack .../18-libbluetooth-dev_5.43-2+rpt2+deb9u2_armhf.deb ... Unpacking libbluetooth-dev (5.43-2+rpt2+deb9u2) ... Setting up libboost-serialization1.62.0:armhf (1.62.0+dfsg-4) ... Setting up libbluetooth-dev (5.43-2+rpt2+deb9u2) ... Setting up libboost1.62-dev:armhf (1.62.0+dfsg-4) ... Processing triggers for libglib2.0-0:armhf (2.50.3-2) ... Setting up libboost-serialization1.62-dev:armhf (1.62.0+dfsg-4) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Setting up libboost-system1.62-dev:armhf (1.62.0+dfsg-4) ... Setting up libboost-atomic1.62.0:armhf (1.62.0+dfsg-4) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up libpcrecpp0v5:armhf (2:8.39-3) ... Setting up libpcre32-3:armhf (2:8.39-3) ... Setting up libboost-python1.62.0 (1.62.0+dfsg-4) ... Setting up libboost-chrono1.62.0:armhf (1.62.0+dfsg-4) ... Setting up libboost-atomic1.62-dev:armhf (1.62.0+dfsg-4) ... Setting up libboost-date-time1.62-dev:armhf (1.62.0+dfsg-4) ... Setting up libpcre3-dev:armhf (2:8.39-3) ... Setting up libboost-python1.62-dev (1.62.0+dfsg-4) ... Setting up libboost-chrono1.62-dev:armhf (1.62.0+dfsg-4) ... Setting up libglib2.0-dev (2.50.3-2) ... Setting up libboost-thread1.62-dev:armhf (1.62.0+dfsg-4) ... Setting up libboost-python-dev (1.62.0.1+b4) ... Setting up libboost-thread-dev:armhf (1.62.0.1+b4) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... pi@raspberrypi:~ $ pip install pygatt Collecting pygatt Downloading https://files.pythonhosted.org/packages/34/b0/70618804ab57ef1ed11122c3119378732c7aab1a400d02458a3ec0a9b62b/pygatt-3.2.0.tar.gz Collecting enum-compat (from pygatt) Downloading https://files.pythonhosted.org/packages/95/6e/26bdcba28b66126f66cf3e4cd03bcd63f7ae330d29ee68b1f6b623550bfa/enum-compat-0.0.2.tar.gz Collecting pyserial (from pygatt) Downloading https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl (193kB) 100% |████████████████████████████████| 194kB 1.0MB/s Collecting enum34 (from enum-compat->pygatt) Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl Building wheels for collected packages: pygatt, enum-compat Running setup.py bdist_wheel for pygatt ... done Stored in directory: /home/pi/.cache/pip/wheels/f2/00/10/c2f1e2c218faa930592c0ba5f9b66999a2736fd56b2efd0dc8 Running setup.py bdist_wheel for enum-compat ... done Stored in directory: /home/pi/.cache/pip/wheels/b1/69/f4/229af6a49beece0f688c9c73d9188769b89e698361d21ce96a Successfully built pygatt enum-compat Installing collected packages: enum34, enum-compat, pyserial, pygatt Successfully installed enum-compat-0.0.2 enum34-1.1.6 pygatt-3.2.0 pyserial-3.4 pi@raspberrypi:~ $ pip install pybluez[ble] Collecting pybluez[ble] Downloading https://files.pythonhosted.org/packages/c1/98/3149481d508bee174335be6725880f00d297afebe75c15e917af8f6fe169/PyBluez-0.22.zip (109kB) 100% |████████████████████████████████| 112kB 1.0MB/s Collecting gattlib==0.20150805 (from pybluez[ble]) Downloading https://files.pythonhosted.org/packages/be/2f/5b1aecec551b42b59d8b399ad444b5672972efb590ca83d784dbe616a3e1/gattlib-0.20150805.tar.gz (1.7MB) 100% |████████████████████████████████| 1.7MB 138kB/s Building wheels for collected packages: pybluez, gattlib Running setup.py bdist_wheel for pybluez ... done Stored in directory: /home/pi/.cache/pip/wheels/e1/0c/0e/2d49f6281421e48d31af681559baef6b3ffa82d54f12115ce3 Running setup.py bdist_wheel for gattlib ... done Stored in directory: /home/pi/.cache/pip/wheels/a9/c7/5a/799e5065ceb9e39ed2be02f9899cdc84fbb32d5f54e0055838 Successfully built pybluez gattlib Installing collected packages: gattlib, pybluez Successfully installed gattlib-0.20150805 pybluez-0.22 pi@raspberrypi:~ $ sudo apt-get install -y build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.3). The following packages were automatically installed and are no longer required: lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - ## Installing the NodeSource Node.js 6.x LTS Boron repo... ## Populating apt-get cache... + apt-get update Hit:1 http://archive.raspberrypi.org/debian stretch InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease Reading package lists... Done ## Confirming "stretch" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_6.x/dists/stretch/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - OK ## Creating apt sources list file for the NodeSource Node.js 6.x LTS Boron repo... + echo 'deb https://deb.nodesource.com/node_6.x stretch main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src https://deb.nodesource.com/node_6.x stretch main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Hit:1 http://archive.raspberrypi.org/debian stretch InRelease Get:2 https://deb.nodesource.com/node_6.x stretch InRelease [4,635 B] Get:3 https://deb.nodesource.com/node_6.x stretch/main armhf Packages [1,008 B] Hit:4 http://raspbian.raspberrypi.org/raspbian stretch InRelease Fetched 5,643 B in 7s (714 B/s) Reading package lists... Done ## Run `sudo apt-get install -y nodejs` to install Node.js 6.x LTS Boron and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn pi@raspberrypi:~ $ sudo apt-get install -y nodejs Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libuv1 lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: nodejs-legacy nodered The following packages will be upgraded: nodejs 1 upgraded, 0 newly installed, 2 to remove and 2 not upgraded. Need to get 8,926 kB of archives. After this operation, 23.7 MB disk space will be freed. Get:1 https://deb.nodesource.com/node_6.x stretch/main armhf nodejs armhf 6.14.3-1nodesource1 [8,926 kB] Fetched 8,926 kB in 4s (2,058 kB/s) apt-listchanges: Reading changelogs... (Reading database ... 137344 files and directories currently installed.) Removing nodered (0.18.7-1) ... Removing nodejs-legacy (4.8.2~dfsg-1) ... (Reading database ... 131595 files and directories currently installed.) Preparing to unpack .../nodejs_6.14.3-1nodesource1_armhf.deb ... Unpacking nodejs (6.14.3-1nodesource1) over (4.8.2~dfsg-1) ... Processing triggers for mime-support (3.60) ... Processing triggers for desktop-file-utils (0.23-1) ... Setting up nodejs (6.14.3-1nodesource1) ... Processing triggers for man-db (2.7.6.1-2) ... Processing triggers for gnome-menus (3.13.3-9) ... Processing triggers for hicolor-icon-theme (0.15-1) ... pi@raspberrypi:~ $ git clone https://github.com/mbientlab/MetaWear-SDK-JavaScript.git Cloning into 'MetaWear-SDK-JavaScript'... remote: Counting objects: 143, done. remote: Total 143 (delta 0), reused 0 (delta 0), pack-reused 143 Receiving objects: 100% (143/143), 26.62 KiB | 0 bytes/s, done. Resolving deltas: 100% (67/67), done. pi@raspberrypi:~ $ ls Desktop Documents Downloads MetaWear-SDK-JavaScript Music oldconffiles Pictures Public python_games Templates Videos pi@raspberrypi:~ $ cd MetaWear-SDK-JavaScript/ pi@raspberrypi:~/MetaWear-SDK-JavaScript $ ls examples index.js Jenkinsfile lib LICENSE MetaWear-SDK-Cpp package.json README.md test pi@raspberrypi:~/MetaWear-SDK-JavaScript $ cd examples/ pi@raspberrypi:~/MetaWear-SDK-JavaScript/examples $ ls anonymous_datasignals.js connect.js led.js logging.js multi_device.js pi@raspberrypi:~/MetaWear-SDK-JavaScript/examples $ node led.js module.js:478 throw err; ^ Error: Cannot find module 'debug' at Function.Module._resolveFilename (module.js:476:15) at Function.Module._load (module.js:424:25) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object. (/home/pi/MetaWear-SDK-JavaScript/lib/metawear.js:4:29) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) pi@raspberrypi:~/MetaWear-SDK-JavaScript/examples $ sudo node led.js module.js:478 throw err; ^ Error: Cannot find module 'debug' at Function.Module._resolveFilename (module.js:476:15) at Function.Module._load (module.js:424:25) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object. (/home/pi/MetaWear-SDK-JavaScript/lib/metawear.js:4:29) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) pi@raspberrypi:~/MetaWear-SDK-JavaScript/examples $ sudo node connect.js module.js:478 throw err; ^ Error: Cannot find module 'debug' at Function.Module._resolveFilename (module.js:476:15) at Function.Module._load (module.js:424:25) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object. (/home/pi/MetaWear-SDK-JavaScript/lib/metawear.js:4:29) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) pi@raspberrypi:~/MetaWear-SDK-JavaScript/examples $ cd .. pi@raspberrypi:~/MetaWear-SDK-JavaScript $ ls examples index.js Jenkinsfile lib LICENSE MetaWear-SDK-Cpp package.json README.md test pi@raspberrypi:~/MetaWear-SDK-JavaScript $ cd .. pi@raspberrypi:~ $ ls Desktop Documents Downloads MetaWear-SDK-JavaScript Music oldconffiles Pictures Public python_games Templates Videos pi@raspberrypi:~ $ sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev Reading package lists... Done Building dependency tree Reading state information... Done bluez is already the newest version (5.43-2+rpt2+deb9u2). bluez set to manually installed. libbluetooth-dev is already the newest version (5.43-2+rpt2+deb9u2). The following packages were automatically installed and are no longer required: libuv1 lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier Use 'sudo apt autoremove' to remove them. Suggested packages: bluez-cups bluez-obexd The following NEW packages will be installed: bluetooth libudev-dev 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. Need to get 132 kB of archives. After this operation, 252 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://archive.raspberrypi.org/debian stretch/main armhf bluetooth all 5.43-2+rpt2+deb9u2 [41.5 kB] Get:2 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libudev-dev armhf 232-25+deb9u2 [90.9 kB] Fetched 132 kB in 0s (185 kB/s) Selecting previously unselected package libudev-dev:armhf. (Reading database ... 134536 files and directories currently installed.) Preparing to unpack .../libudev-dev_232-25+deb9u2_armhf.deb ... Unpacking libudev-dev:armhf (232-25+deb9u2) ... Selecting previously unselected package bluetooth. Preparing to unpack .../bluetooth_5.43-2+rpt2+deb9u2_all.deb ... Unpacking bluetooth (5.43-2+rpt2+deb9u2) ... Setting up bluetooth (5.43-2+rpt2+deb9u2) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up libudev-dev:armhf (232-25+deb9u2) ... pi@raspberrypi:~ $ git clone https://github.com/mbientlab/noble.git Cloning into 'noble'... remote: Counting objects: 2582, done. remote: Total 2582 (delta 0), reused 0 (delta 0), pack-reused 2582 Receiving objects: 100% (2582/2582), 668.24 KiB | 0 bytes/s, done. Resolving deltas: 100% (1597/1597), done. pi@raspberrypi:~ $ ls Desktop Documents Downloads MetaWear-SDK-JavaScript Music noble oldconffiles Pictures Public python_games Templates Videos pi@raspberrypi:~ $ cd noble/ pi@raspberrypi:~/noble $ ls assets CHANGELOG.md examples index.js lib LICENSE package.json README.md test test.js with-bindings.js ws-slave.js pi@raspberrypi:~/noble $ cd examples/ pi@raspberrypi:~/noble/examples $ ls advertisement-discovery.js enter-exit.js peripheral-explorer.js pizza pi@raspberrypi:~/noble/examples $ node advertisement-discovery.js module.js:478 throw err; ^ Error: Cannot find module 'debug' at Function.Module._resolveFilename (module.js:476:15) at Function.Module._load (module.js:424:25) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object. (/home/pi/noble/lib/noble.js:1:91) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) pi@raspberrypi:~/noble/examples $ sudo node advertisement-discovery.js module.js:478 throw err; ^ Error: Cannot find module 'debug' at Function.Module._resolveFilename (module.js:476:15) at Function.Module._load (module.js:424:25) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object. (/home/pi/noble/lib/noble.js:1:91) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) pi@raspberrypi:~/noble/examples $ cd .. pi@raspberrypi:~/noble $ ls assets CHANGELOG.md examples index.js lib LICENSE package.json README.md test test.js with-bindings.js ws-slave.js pi@raspberrypi:~/noble $ npm install npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade > usb@1.3.2 install /home/pi/noble/node_modules/usb > node-pre-gyp install --fallback-to-build node-pre-gyp WARN Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.2/usb_bindings-v1.3.2-node-v48-linux-arm.tar.gz node-pre-gyp WARN Pre-built binaries not found for usb@1.3.2 and node@6.14.3 (node-v48 ABI, glibc) (falling back to source compile with node-gyp) make: Entering directory '/home/pi/noble/node_modules/usb/build' CC(target) Release/obj.target/libusb/libusb/libusb/core.o CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o CC(target) Release/obj.target/libusb/libusb/libusb/io.o CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o CC(target) Release/obj.target/libusb/libusb/libusb/sync.o CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o AR(target) Release/obj.target/usb.a COPY Release/usb.a CXX(target) Release/obj.target/usb_bindings/src/node_usb.o ../src/node_usb.cc: In function ‘void handleHotplug(std::pair)’: ../src/node_usb.cc:150:58: warning: ‘v8::Local Nan::MakeCallback(v8::Local, const char*, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/node_usb.cc:1: ../../nan/nan.h:971:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ CXX(target) Release/obj.target/usb_bindings/src/device.o ../src/device.cc: In static member function ‘static void Req::default_after(uv_work_t*)’: ../src/device.cc:237:64: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/device.cc:1: ../../nan/nan.h:929:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ CXX(target) Release/obj.target/usb_bindings/src/transfer.o ../src/transfer.cc: In function ‘void handleCompletion(Transfer*)’: ../src/transfer.cc:126:72: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/transfer.cc:1: ../../nan/nan.h:929:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ SOLINK_MODULE(target) Release/obj.target/usb_bindings.node COPY Release/usb_bindings.node COPY /home/pi/noble/node_modules/usb/src/binding/usb_bindings.node TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory '/home/pi/noble/node_modules/usb/build' > bluetooth-hci-socket@0.5.1 install /home/pi/noble/node_modules/bluetooth-hci-socket > node-gyp rebuild make: Entering directory '/home/pi/noble/node_modules/bluetooth-hci-socket/build' CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’: ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8:0: ../../nan/nan.h:950:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’: ../src/BluetoothHciSocket.cpp:275:72: warning: ‘v8::Local v8::Function::NewInstance(int, v8::Local*) const’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local error = errorConstructor->NewInstance(1, constructorArgs); ^ In file included from /home/pi/.node-gyp/6.14.3/include/node/v8.h:25:0, from /home/pi/.node-gyp/6.14.3/include/node/node.h:42, from /home/pi/.node-gyp/6.14.3/include/node/node_buffer.h:4, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.node-gyp/6.14.3/include/node/v8.h:3272:31: note: declared here Local NewInstance(int argc, Local argv[]) const); ^ /home/pi/.node-gyp/6.14.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); ^ In file included from ../src/BluetoothHciSocket.cpp:8:0: ../../nan/nan.h:950:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ SOLINK_MODULE(target) Release/obj.target/binding.node COPY Release/binding.node make: Leaving directory '/home/pi/noble/node_modules/bluetooth-hci-socket/build' > ws@0.4.32 install /home/pi/noble/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) make: Entering directory '/home/pi/noble/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o bufferutil.target.mk:94: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed make: Leaving directory '/home/pi/noble/node_modules/ws/build' noble@1.8.1 /home/pi/noble ├── async@0.2.10 ├─┬ bluetooth-hci-socket@0.5.1 │ ├── nan@2.10.0 │ └─┬ usb@1.3.2 │ └─┬ node-pre-gyp@0.10.0 │ ├── detect-libc@1.0.3 │ ├─┬ mkdirp@0.5.1 │ │ └── minimist@0.0.8 │ ├─┬ needle@2.2.1 │ │ ├─┬ iconv-lite@0.4.23 │ │ │ └── safer-buffer@2.1.2 │ │ └── sax@1.2.4 │ ├─┬ nopt@4.0.1 │ │ ├── abbrev@1.1.1 │ │ └─┬ osenv@0.1.5 │ │ ├── os-homedir@1.0.2 │ │ └── os-tmpdir@1.0.2 │ ├─┬ npm-packlist@1.1.10 │ │ ├── ignore-walk@3.0.1 │ │ └── npm-bundled@1.0.3 │ ├─┬ npmlog@4.1.2 │ │ ├─┬ are-we-there-yet@1.1.5 │ │ │ ├── delegates@1.0.0 │ │ │ └─┬ readable-stream@2.3.6 │ │ │ ├── isarray@1.0.0 │ │ │ ├── process-nextick-args@2.0.0 │ │ │ ├── string_decoder@1.1.1 │ │ │ └── util-deprecate@1.0.2 │ │ ├── console-control-strings@1.1.0 │ │ ├─┬ gauge@2.7.4 │ │ │ ├── aproba@1.2.0 │ │ │ ├── has-unicode@2.0.1 │ │ │ ├── object-assign@4.1.1 │ │ │ ├── signal-exit@3.0.2 │ │ │ ├─┬ string-width@1.0.2 │ │ │ │ ├── code-point-at@1.1.0 │ │ │ │ └─┬ is-fullwidth-code-point@1.0.0 │ │ │ │ └── number-is-nan@1.0.1 │ │ │ ├─┬ strip-ansi@3.0.1 │ │ │ │ └── ansi-regex@2.1.1 │ │ │ └── wide-align@1.1.3 │ │ └── set-blocking@2.0.0 │ ├─┬ rc@1.2.8 │ │ ├── deep-extend@0.6.0 │ │ ├── ini@1.3.5 │ │ ├── minimist@1.2.0 │ │ └── strip-json-comments@2.0.1 │ ├── rimraf@2.6.2 │ ├── semver@5.5.0 │ └─┬ tar@4.4.4 │ ├── chownr@1.0.1 │ ├── fs-minipass@1.2.5 │ ├── minipass@2.3.3 │ ├── minizlib@1.1.0 │ ├── safe-buffer@5.1.2 │ └── yallist@3.0.2 ├── bplist-parser@0.0.6 ├─┬ debug@2.2.0 │ └── ms@0.7.1 ├─┬ jshint@2.9.5 │ ├─┬ cli@1.0.1 │ │ └─┬ glob@7.1.2 │ │ ├── fs.realpath@1.0.0 │ │ ├─┬ inflight@1.0.6 │ │ │ └── wrappy@1.0.2 │ │ ├── inherits@2.0.3 │ │ ├── once@1.4.0 │ │ └── path-is-absolute@1.0.1 │ ├─┬ console-browserify@1.1.0 │ │ └── date-now@0.1.4 │ ├── exit@0.1.2 │ ├─┬ htmlparser2@3.8.3 │ │ ├── domelementtype@1.3.0 │ │ ├── domhandler@2.3.0 │ │ ├─┬ domutils@1.5.1 │ │ │ └─┬ dom-serializer@0.1.0 │ │ │ ├── domelementtype@1.1.3 │ │ │ └── entities@1.1.1 │ │ ├── entities@1.0.0 │ │ └─┬ readable-stream@1.1.14 │ │ ├── core-util-is@1.0.2 │ │ ├── isarray@0.0.1 │ │ └── string_decoder@0.10.31 │ ├── lodash@3.7.0 │ ├─┬ minimatch@3.0.4 │ │ └─┬ brace-expansion@1.1.11 │ │ ├── balanced-match@1.0.0 │ │ └── concat-map@0.0.1 │ ├── shelljs@0.3.0 │ └── strip-json-comments@1.0.4 ├─┬ mocha@1.8.2 │ ├── commander@0.6.1 │ ├── diff@1.0.2 │ ├── growl@1.7.0 │ ├─┬ jade@0.26.3 │ │ └── mkdirp@0.3.0 │ ├── mkdirp@0.3.3 │ └── ms@0.3.0 ├── should@1.2.2 ├─┬ sinon@1.6.0 │ └─┬ buster-format@0.5.6 │ └── buster-core@0.6.4 └─┬ ws@0.4.32 ├── commander@2.1.0 ├── nan@1.0.0 ├── options@0.0.6 └── tinycolor@0.0.1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) pi@raspberrypi:~/noble $ cd examples pi@raspberrypi:~/noble/examples $ ls advertisement-discovery.js enter-exit.js peripheral-explorer.js pizza pi@raspberrypi:~/noble/examples $ sudo node advertisement-discovery.js peripheral discovered (3f0bdc0d5d46 with address <3f:0b:dc:0d:5d:46, random>, connectable false, RSSI -44: hello my local name is: undefined can I interest you in any of the following advertised services: [] here is my manufacturer data: "060001092002d2f4bffb2988263d150e556ffcee9ca94c20d134cd73ac" peripheral discovered (fa503109ee21 with address , connectable true, RSSI -65: hello my local name is: MetaWear can I interest you in any of the following advertised services: ["326a900085cb9195d9dd464cfbbae75a"] peripheral discovered (40163b50e347 with address <40:16:3b:50:e3:47, public>, connectable false, RSSI -86: hello my local name is: undefined can I interest you in any of the following advertised services: [] here is my manufacturer data: "7500420401806040163b50e34742163b50e34601000000000000" peripheral discovered (48d6d54242c5 with address <48:d6:d5:42:42:c5, public>, connectable true, RSSI -84: hello my local name is: undefined can I interest you in any of the following advertised services: ["fe9f"] here is my service data: "fe9f": "0000000000000000000000000000000000000000" here is my manufacturer data: "e0000166ca8a656c" ^Z [1]+ Stopped sudo node advertisement-discovery.js