Skip to content
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 on first boot is not working #7007

Open
1 task
Inderjit19 opened this issue Apr 8, 2024 · 1 comment
Open
1 task

dietpi-update on first boot is not working #7007

Inderjit19 opened this issue Apr 8, 2024 · 1 comment

Comments

@Inderjit19
Copy link

Inderjit19 commented Apr 8, 2024

Creating a bug report/issue

  • I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
  • G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=2
    G_DIETPI_VERSION_RC=1
    G_GITBRANCH='master'
    G_GITOWNER='MichaIng'
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN - bookworm 1
  • Kernel version | uname -a - Linux DietPi 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3) - RPi Zero W (armv6l)
  • Power supply used | (EG: 5V 1A RAVpower)
  • SD card used | (EG: SanDisk ultra)

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
  • Was the software title installed freshly or updated/migrated?
  • Can this issue be replicated on a fresh installation of DietPi?
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. ...
  2. ...

Expected behaviour

  • ...

Actual behaviour

  • ...

Extra details

  • ...
DietPi-Update
─────────────────────────────────────────────────────
 Phase: Checking for available DietPi update

[  OK  ] DietPi-Update | Checking IPv4 network connectivity
[  OK  ] DietPi-Update | Checking DNS resolver
[ INFO ] DietPi-Update | Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version
curl: (6) Could not resolve host: raw.githubusercontent.com
[FAILED] DietPi-Update | Unable to get latest version.
[ INFO ] DietPi-Update | Please check the target Git repository and your network connection, then rerun dietpi-update.
[ INFO ] DietPi-Update | If this error persists, please report at: https://github.com/MichaIng/DietPi/issues
[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 https://archive.raspberrypi.com/debian bookworm InRelease
Hit:2 http://raspbian.raspberrypi.com/raspbian bookworm InRelease
Reading package lists...
[  OK  ] DietPi-Update | APT update
[ INFO ] DietPi-Update | No APT upgrades were found, not creating file: /run/dietpi/.apt_updates

@MichaIng
Copy link
Owner

MichaIng commented Apr 8, 2024

[  OK  ] DietPi-Update | Checking IPv4 network connectivity
[  OK  ] DietPi-Update | Checking DNS resolver
curl: (6) Could not resolve host: raw.githubusercontent.com

While IPv4 network and general DNS resolution works, resolving raw.githubusercontent.com, the GitHub hostname to access/download plain text files from repos, fails. We know that this is e.g. blocked by the Chinese firewall, for weird reasons (since GitHub itself, hence all its files are accessible from China). Might this apply in your case? If so: We are actually planning to create a Gitee mirror, or own Gitea mirror, for the updater, as fallback to solve this issue for Chinese users, but it will take at least one more DietPi release. A foreign public DNS server or VPN can be used to bypass the issue, but of course check for legality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants