-
-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi Update error occurred during first run update #7385
Comments
can you check following
|
After running the command that you specified above: |
@MichaIng I remember some rare cases where we had similar on |
The Pi is connected to a corporate Wi-Fi. Do you think there might be an issue with ISP restrictions, firewall rules, or network blocks? |
Is there a way to disable the process to get the latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version |
usually not, I mean this will prevent future updates of our scripts |
I understand that, but the cURL request sent to GitHub is blocked by a firewall because I am on a corporate Wi-Fi, which blocks all outbound cURL requests. Do you have any possible workarounds? |
Oh, that explains it. Well, a lot of DietPi scripts, and Linux systems in general, also a lot of software etc strictly depend on cURL or the cURL library. Not sure whether you have any chance to get this nonsense rule removed from this firewall? There is literally zero reason to ever do that, every browser access to anything is naturally more insecure than cURL, as it does not execute JavaScript, CSS or any other web technology, but just prints the raw body content to STDOUT. If not, there is nothing we can do, blocking cURL means breaking basically all network-capable Linux and UNIX systems at their core. EDIT: Do you know how cURL is blocked in particular? It does not fix library requests, but you could override the HTTP user agent cat << '_EOF_' > /usr/local/bin/curl
#!/bin/dash
exec curl -A 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36' "$@"
_EOF_
chmod +x /usr/local/bin/curl This is the user agent latest Chrome on Linux currently uses. If this works, it only shows how ridiculous this firewall is. Actually, another problem might be TLS inspection, as this should all be encrypted, and now visible to a firewall, unless it breaks end-to-end security. |
Creating a bug report/issue
Required Information
G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=9 G_DIETPI_VERSION_RC=0 G_GITBRANCH='master' G_GITOWNER='MichaIng'
bookworm 0
Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
RPi 4 Model B (aarch64)
Additional Information (if applicable)
Steps to reproduce
d. Open dietpi.txt and change the following settings:
AUTO_SETUP_KEYBOARD_LAYOUT=us
AUTO_SETUP_TIMEZONE=America/Toronto
AUTO_SETUP_NET_ETHERNET_ENABLED=0
AUTO_SETUP_NET_WIFI_ENABLED=1
AUTO_SETUP_NET_WIFI_COUNTRY_CODE=CA
CONFIG_NTP_MIRROR=gateway
e. Open dietpi-wifi.txt and change the following settings:
aWIFI_SSID[0]=''
aWIFI_KEY[0]=''
f. Eject the SD card.
Expected behaviour
Actual behaviour
Additional Information
The text was updated successfully, but these errors were encountered: