Unable to access update servers

Hello

I tried to do a firmware update and/or a dietpi-update (I think, the carnage is all a bit of a blur after the fact). This bricked the installation. I managed to recover it by manually download the RPi firmware from GitHub and extracting the relevant files to the /boot partition.

Dietpi is now running but the welcome message includes:

dietpi-update    = [color=#FF0000]Run now to update DietPi (from V152 to V152).[/color]

Yet:

dietpi-update
 [Info] Checking RootFS R/W access. Please wait...
 [Ok] RootFS R/W access.
cat: /DietPi/dietpi.txt: No such file or directory
cat: /DietPi/dietpi.txt: No such file or directory

 DietPi-Update
─────────────────────────────────────────────────────
 Mode: Checking for DietPi updates
 Please wait...

 [Info] Checking Mirror : http://dietpi.com/downloads/dietpi-update_mirror//server_version
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   320  100   320    0     0    306      0  0:00:01  0:00:01 --:--:--   309
 [Info] Invalid server version and/or update file unavailable
 [Info] Checking Mirror : https://raw.githubusercontent.com/Fourdee/DietPi//dietpi/server_version
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    15  100    15    0     0     30      0 --:--:-- --:--:-- --:--:--    30
 [Info] Invalid server version and/or update file unavailable
 [[color=#FF0000]Failed[/color]] Unable to access update servers. Please check your connection, then run dietpi-update again.
[/quote]

I've done a few apt-get update && apt-get upgrade combinations as well and a bunch of firmware packages are always "kept back":

[quote]The following packages have been kept back:
  libraspberrypi-bin libraspberrypi0 raspberrypi-bootloader raspberrypi-kernel
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Can anyone suggest how I might get this install back to normal?

cat: /DietPi/dietpi.txt: No such file or directory
cat: /DietPi/dietpi.txt: No such file or directory

Hi,

It appears your installation may be corrupted. Loss of this file will render DietPi with issues, it contains global information for all the DietPi scripts to access.

Cause most likely be due to insufficient PSU/SD card causing filesystem corruption.

I’d highly recommend reinstalling DietPi using a fresh image write. If problems persist, please let us know PSU/SD/SBC device used and we’ll investigate.

Thanks for your response.

I downloaded

https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt

and moved it to /Dietpi/

dietpi-update works now.

Thanks for you support.