dietpi-software :- Updating or reinstalling - reports No Internet #3702
Labels
Duplicate
For issues that are/were already handled within another issue
Solution available 🥂
Definite solution has been done
Details:
Steps to reproduce:
I can run
apt-get update
apt-get upgrade
happily from the command line and perform all other tasks.
But the dietpi-update fails and reports no internet
As does trying to upgrade Node-RED
Expected behaviour:
Actual behaviour:
Scripts fail and report "No Internet"
Extra details:
is supect it is failing to download a particular file, rather than not getting access to the internet
Additional logs:
[ OK ] DietPi-Software | Free space check: path=/ | available=12860 MiB | required=500 MiB
[ OK ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata
[ OK ] DietPi-Software | Checking network connectivity
[ OK ] DietPi-Software | Checking DNS resolver
[ OK ] Network time sync | Completed
[ SUB1 ] DietPi-Services > unmask
[ OK ] DietPi-Services | unmask : nmbd
[ OK ] DietPi-Services | unmask : smbd
[ OK ] DietPi-Services | unmask : cron
[ SUB1 ] DietPi-Services > stop
[ OK ] DietPi-Services | stop : cron
[ OK ] DietPi-Services | stop : smbd
[ OK ] DietPi-Services | stop : nmbd
DietPi-Software
─────────────────────────────────────────────────────
Mode: Update & upgrade APT
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 http://fuzon.co.uk/meveric all InRelease
Hit:2 http://fuzon.co.uk/meveric stretch InRelease
Ign:3 https://deb.debian.org/debian stretch InRelease
Hit:4 https://deb.debian.org/debian stretch-updates InRelease
Hit:5 https://deb.debian.org/debian-security stretch/updates InRelease
Ign:6 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Hit:7 https://deb.debian.org/debian stretch-backports InRelease
Hit:8 https://deb.debian.org/debian stretch Release
Get:9 https://dl.bintray.com/openhab/apt-repo2 stable Release [6051 B]
Hit:9 https://dl.bintray.com/openhab/apt-repo2 stable Release
[ OK ] DietPi-Software | APT upgrade
DietPi-Software
─────────────────────────────────────────────────────
Mode: Checking for prerequisite software
[ INFO ] DietPi-Software | Build-Essentials will be installed
[ INFO ] DietPi-Software | Node.js will be installed
DietPi-Software
─────────────────────────────────────────────────────
Mode: Installing Build-Essentials: common packages for compile
[ INFO ] DietPi-Software | APT install for: build-essential automake, please wait...
[ OK ] DietPi-Software | APT install for: build-essential automake
DietPi-Software
─────────────────────────────────────────────────────
Mode: Installing Node.js: javascript runtime
[ OK ] DietPi-Software | Checking URL: https://raw.githubusercontent.com/taaem/nodejs-linux-installer/master/node-install.sh
[ OK ] DietPi-Software | wget https://raw.githubusercontent.com/taaem/nodejs-linux-installer/master/node-install.sh
[ OK ] DietPi-Software | mkdir -p /usr/local
[ OK ] DietPi-Software | chmod +x node-install.sh
[ INFO ] DietPi-Software | ./node-install.sh, please wait...
Node Linux Installer by www.github.com/taaem
Running as Root User
Get Latest Version Number...
ERROR: No Internet Connection
[FAILED] DietPi-Software | ./node-install.sh
Running the ./node-install.sh returns this
Just running this line, doesn't fetch anything
curl http://nodejs.org/dist/latest/
Which seems to be pivotal to the success of the other IF statements in the script, as the version number is derived from the download.
Changing the curl command so that it addresses a HTTPS site, allows the script to get a little further.
curl https://nodejs.org/dist/latest/
But it fails with this text
If I download the file manually to /tmp and cp it to node.tar.gz and disable the curl command in the script, it states that the installation finished.
The text was updated successfully, but these errors were encountered: