Dietpi doesn't update

Having issues with your DietPi installation or found a bug? Post it here.
Blaiz0r
Posts: 21
Joined: Sat Jul 27, 2019 5:36 pm

Re: Dietpi doesn't update

Post by Blaiz0r »

OK done!

This seems to be the only output in the log though...

Code: Select all

[ SUB2 ] DietPi-Update > Applying pre-patches
[  OK  ] DietPi-Update | Downloading pre-patches
[  OK  ] DietPi-Update | Applying execute permission
[ INFO ] Pre-patch 25 | Running DietPi v7 pre-patches
[  OK  ] DietPi-Update | Successfully applied pre-patches
[ SUB2 ] DietPi-Update > Upgrading APT packages
[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 https://download.docker.com/linux/debian buster InRelease
Get:2 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]
Hit:3 https://archive.raspberrypi.org/debian buster InRelease
Hit:4 https://deb.debian.org/debian buster InRelease
Hit:5 https://deb.debian.org/debian buster-updates InRelease
Get:6 https://deb.debian.org/debian-security buster/updates InRelease [65.4 kB]
Hit:7 https://deb.debian.org/debian buster-backports InRelease
Get:8 https://repo.jellyfin.org/debian buster InRelease [6637 B]
Get:9 http://packages.microsoft.com/repos/code stable/main arm64 Packages [15.8 kB]
Get:10 http://packages.microsoft.com/repos/code stable/main amd64 Packages [15.2 kB]
Get:11 http://packages.microsoft.com/repos/code stable/main armhf Packages [15.6 kB]
Fetched 129 kB in 2s (58.7 kB/s)
Reading package lists...
[  OK  ] DietPi-Update | APT update
[ INFO ] DietPi-Update | APT upgrade, please wait...
[  OK  ] DietPi-Update | APT upgrade
[ SUB2 ] DietPi-Update > Installing new DietPi code
[  OK  ] DietPi-Update | Downloading update archive
[  OK  ] DietPi-Update | Unpacking update archive
[  OK  ] DietPi-Update | Installing new DietPi scripts
[  OK  ] DietPi-Update | Installing new DietPi system files
[  OK  ] DietPi-Update | Setting execute permissions for DietPi scripts
[ SUB3 ] DietPi-Set_software > verify_dietpi.txt ()
[  OK  ] DietPi-Set_software | Checking URL: https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
[  OK  ] DietPi-Set_software | Downloading current dietpi.txt
[  OK  ] DietPi-Set_software | dietpi.txt verification completed
[  OK  ] verify_dietpi.txt  | Completed
[ SUB2 ] DietPi-Update > Applying incremental patches
[ INFO ] DietPi-Update | Current version : v6.32.2
[ INFO ] DietPi-Update | Latest version  : v7.0.2
[ INFO ] DietPi-Patch | Patching 6.32 to 6.33
[ INFO ] DietPi-Patch | Patching 6.33 to 6.34
[ INFO ] DietPi-Patch | Patching 6.34 to 6.35
[  OK  ] DietPi-Patch | rm -f /etc/apt/sources.list.d/vscode.list /etc/apt/trusted.gpg.d/microsoft.gpg /etc/apt/preferences.d/3rd_parties.pref
[  OK  ] DietPi-Patch | rmdir --ignore-fail-on-non-empty /var/lib/dietpi/dietpi-software/services
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database
[ SUB4 ] DietPi-Software > Automated reinstall
[ INFO ] DietPi-Software | 108: Amiberry is not currently installed
[ INFO ] DietPi-Software | Use "dietpi-software install 108" to install Amiberry.
[  OK  ] DietPi-Software | No changes applied for: Amiberry
[ INFO ] DietPi-Software | 123: Mosquitto is not currently installed
[ INFO ] DietPi-Software | Use "dietpi-software install 123" to install Mosquitto.
[  OK  ] DietPi-Software | No changes applied for: Mosquitto
removed '/etc/udev/rules.d/10-wifi-disable-powermanagement.rules'
[ INFO ] DietPi-Update | APT autopurge, please wait...
[  OK  ] DietPi-Update | APT autopurge
[  OK  ] DietPi-Update | Incremental patching to v7.0.2 completed
[ SUB2 ] DietPi-Update > Applying pre-patches
[  OK  ] DietPi-Update | Downloading pre-patches
[  OK  ] DietPi-Update | Applying execute permission
[ INFO ] Pre-patch 25 | Running DietPi v7 pre-patches
[  OK  ] DietPi-Update | Successfully applied pre-patches
[ SUB2 ] DietPi-Update > Upgrading APT packages
[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 https://download.docker.com/linux/debian buster InRelease
Get:2 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]
Hit:3 https://archive.raspberrypi.org/debian buster InRelease
Hit:4 https://deb.debian.org/debian buster InRelease
Hit:5 https://deb.debian.org/debian buster-updates InRelease
Get:6 https://deb.debian.org/debian-security buster/updates InRelease [65.4 kB]
Hit:7 https://deb.debian.org/debian buster-backports InRelease
Get:8 https://repo.jellyfin.org/debian buster InRelease [6637 B]
Get:9 http://packages.microsoft.com/repos/code stable/main arm64 Packages [15.8 kB]
Get:10 http://packages.microsoft.com/repos/code stable/main amd64 Packages [15.2 kB]
Get:11 http://packages.microsoft.com/repos/code stable/main armhf Packages [15.6 kB]
Fetched 129 kB in 2s (58.7 kB/s)
Reading package lists...
[  OK  ] DietPi-Update | APT update
[ INFO ] DietPi-Update | APT upgrade, please wait...
[  OK  ] DietPi-Update | APT upgrade
[ SUB2 ] DietPi-Update > Installing new DietPi code
[  OK  ] DietPi-Update | Downloading update archive
[  OK  ] DietPi-Update | Unpacking update archive
[  OK  ] DietPi-Update | Installing new DietPi scripts
[  OK  ] DietPi-Update | Installing new DietPi system files
[  OK  ] DietPi-Update | Setting execute permissions for DietPi scripts
[ SUB3 ] DietPi-Set_software > verify_dietpi.txt ()
[  OK  ] DietPi-Set_software | Checking URL: https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
[  OK  ] DietPi-Set_software | Downloading current dietpi.txt
[  OK  ] DietPi-Set_software | dietpi.txt verification completed
[  OK  ] verify_dietpi.txt  | Completed
[ SUB2 ] DietPi-Update > Applying incremental patches
[ INFO ] DietPi-Update | Current version : v6.32.2
[ INFO ] DietPi-Update | Latest version  : v7.0.2
[ INFO ] DietPi-Patch | Patching 6.32 to 6.33
[ INFO ] DietPi-Patch | Patching 6.33 to 6.34
[ INFO ] DietPi-Patch | Patching 6.34 to 6.35
[  OK  ] DietPi-Patch | rm -f /etc/apt/sources.list.d/vscode.list /etc/apt/trusted.gpg.d/microsoft.gpg /etc/apt/preferences.d/3rd_parties.pref
[  OK  ] DietPi-Patch | rmdir --ignore-fail-on-non-empty /var/lib/dietpi/dietpi-software/services
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database
[ SUB4 ] DietPi-Software > Automated reinstall
[ INFO ] DietPi-Software | 108: Amiberry is not currently installed
[ INFO ] DietPi-Software | Use "dietpi-software install 108" to install Amiberry.
[  OK  ] DietPi-Software | No changes applied for: Amiberry
[ INFO ] DietPi-Software | 123: Mosquitto is not currently installed
[ INFO ] DietPi-Software | Use "dietpi-software install 123" to install Mosquitto.
[  OK  ] DietPi-Software | No changes applied for: Mosquitto
removed '/etc/udev/rules.d/10-wifi-disable-powermanagement.rules'
[ INFO ] DietPi-Update | APT autopurge, please wait...
[  OK  ] DietPi-Update | APT autopurge
[  OK  ] DietPi-Update | Incremental patching to v7.0.2 completed
[ SUB2 ] DietPi-Update > Completed
[ INFO ] DietPi-Update | Current version : v7.0.2
[ INFO ] DietPi-Update | Latest version  : v7.0.2
[  OK  ] DietPi-Survey | Purging survey data
[ SUB3 ] DietPi-Services > restart 
[  OK  ] DietPi-Services | restart : php7.3-fpm
[  OK  ] DietPi-Services | restart : nginx
[  OK  ] DietPi-Services | restart : jellyfin
[  OK  ] DietPi-Services | restart : docker
[  OK  ] DietPi-Services | restart : cron
[  OK  ] DietPi-Patch | Everything done! Terminating the obsolete DietPi-Update parent instance...
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi doesn't update

Post by Joulinar »

honestly I don't know how this could happen. Looks like, changes done on the system are not persistent. It's like an overlay file system that is going to be reset on reboot. :o

Can you do a test

Code: Select all

apt update
apt list --upgradable
note down the number of packages. Once done update all apt packages

Code: Select all

apt upgrade
reboot
Once system is back online, check it again

Code: Select all

apt update
apt list --upgradable
Does it display same packages as before? Usually it should state that there is nothing to update.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Blaiz0r
Posts: 21
Joined: Sat Jul 27, 2019 5:36 pm

Re: Dietpi doesn't update

Post by Blaiz0r »

I have a weird error right now, any command I type in gives me segmentation fault, I may have to pull the plug because reboot does the same thing.

this may have been why it reverted back the first time, I had to pull the plug to restart and dietpi must have used a backup?
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi doesn't update

Post by Joulinar »

well there is a feature introduced in v7 to allow automatic restore of backups during first initial boot. But this would need to be set activity in dietpi.txt. As well you are not running a first initial boot process and the setting will have no impact. Means, during normal operation, DietPi will not restore any backup.

https://github.com/MichaIng/DietPi/blob ... xt#L70-L72

Maybe you have some corruption preventing the system from writing down the data? Would be interesting to see how the apt upgrade test goes.

@MichaIng
Any ideas how this could happen?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Blaiz0r
Posts: 21
Joined: Sat Jul 27, 2019 5:36 pm

Re: Dietpi doesn't update

Post by Blaiz0r »

OK so I couldn't reboot in any way, all commands as root would return `segmentation fault` my only option was to unplug the power and wait a little before plugging in again.

Once I rebooted I am back on v6.

I checked the journalctl but didn't see any errors only a warning about efi not finding uefi, but I don't think that's the issue.

I've run `apt update` I have 70 packages, and I'm currently running upgrade, this will probably take an hour. I'll report back then.
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi doesn't update

Post by Joulinar »

hmm the segmentation fault doesn't seems healthy. Probably there is more broken or corrupted.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2780
Joined: Sat Nov 18, 2017 6:21 pm

Re: Dietpi doesn't update

Post by MichaIng »

Indeed, looks like a file system corruption or the SD card (?) itself has bad blocks.

Just to assure, it's the 64-bit image for RPi, right?

Let's check for kernel errors: dmesg -l emerg,alert,crit,err
Blaiz0r
Posts: 21
Joined: Sat Jul 27, 2019 5:36 pm

Re: Dietpi doesn't update

Post by Blaiz0r »

Oh, no I'm using the 32-bit version. What would be recommended, I'm about to download a new image from the frontpage and start all over...

running the dmesg command I get the following

Code: Select all

    0.558448] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi doesn't update

Post by Joulinar »

are you sure you are running the 32bit image? because you have apt source list configured pointing to 64bit

Code: Select all

Hit:4 https://deb.debian.org/debian buster InRelease
Hit:5 https://deb.debian.org/debian buster-updates InRelease
Get:6 https://deb.debian.org/debian-security buster/updates InRelease 
Hit:7 https://deb.debian.org/debian buster-backports InRelease
For the question 32bit vs 64bit, well it doesn't matter much. There is no real benefit of the 64bit version for most use cases, except you have some special software which require 64bit. As well still some software implementations are outstanding from Raspberry Foundation side. That's why Raspberry OS has still a Beta flag and was not official released by the Foundation.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Blaiz0r
Posts: 21
Joined: Sat Jul 27, 2019 5:36 pm

Re: Dietpi doesn't update

Post by Blaiz0r »

You're right I am using the 64-bit version, this is from my welcome screen

Code: Select all

Image           : DietPi Core Team (pre-image: Raspberry Pi OS (64-bit))
I guess I should try the 32-bit image then, and install everything from scratch, I'm really only using this for Jellyfin.
Post Reply