Can't update to 8.12.1 form 8.11.2 (newbie)

Hi

I am a total NEWBIE with Dietpi, but sometimes this error happens…

I do not know if it is a service/s I have running or another problem… I have a 5TB HDD attached to USB 3.0 in exFAT (yes, exFAT)

Problem is I can not UPDATE the version of DIETPI
Can you help me?

Creating a bug report/issue

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=11
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
    G_LIVE_PATCH_STATUS[0]=‘not applicable’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    bullseye 0

  • Kernel version | uname -a
    Linux DietPi 5.15.76-v7l+ #1597 SMP Fri Nov 4 12:14:58 GMT 2022 armv7l GNU/Linux

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    RPi 4 Model B (armv7l)

  • Power supply used | (EG: 5V 1A RAVpower)
    Official Rpi4 Power Supply of a Pi400

  • SD card used | Sandisk Ultra 16Gb

Additional Information (if applicable)

  • Software title | Dietpi
  • Was the software title installed freshly or updated/migrated? No
  • Can this issue be replicated on a fresh installation of DietPi? ¿?
    ← If you sent a “dietpi-bugreport”, please paste the ID here → 0c4338e8-281a-4d02-b781-83f1657eb1ba

Steps to reproduce

I write

sudo dietpi-update

and… gets the error

Expected behaviour

Update my version

Actual behaviour

The updating process does not continue…

Extra details

 APT upgrade
│  - Command: apt-get -y upgrade
│  - Exit code: 100
│  - DietPi version: v8.11.2 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 2 |
│ DISTRO: 6
│  - Image creator: DietPi Core Team
│  - Pre-image: from scratch
│  - Error log:
│ Reading package lists...
│ Building dependency tree...
│ Reading state information...
│ You might want to run 'apt --fix-broken install' to correct these.
│ The following packages have unmet dependencies:
│  mariadb-server : Depends: mariadb-server-10.5 (>= 1:10.5.18-0+deb11u1) but
│ it is not installed

I also checked I can’t uninstall services , f ex PLEX:

APT purge for: plexmediaserver                                                                                       │
│  - Command: apt-get -y --allow-change-held-packages autopurge plexmediaserver                                        │
│  - Exit code: 100                                                                                                    │
│  - DietPi version: v8.11.2 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 2 | DISTRO: 6                                  │
│  - Image creator: DietPi Core Team                                                                                   │
│  - Pre-image: from scratch                                                                                           │
│  - Error log:                                                                                                        │
│ Reading package lists...                                                                                             │
│ Building dependency tree...                                                                                          │
│ Reading state information...                                                                                         │
│ You might want to run 'apt --fix-broken install' to correct these.                                                   │
│ The following packages have unmet dependencies:                                                                      │
│  mariadb-server : Depends: mariadb-server-10.5 (>= 1:10.5.18-0+deb11u1) but it is not going to be installed          │
│ E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Any help? :frowning:

You could try to execute the command given above (I assume you need to add a sudo in advance:
sudo apt --fix-broken install

Hopefully then you can go on with dietpi-update.

Pls share entire output of

apt update && apt upgrade 

There seems to be an issue with MariaDB server package

This is what I obtain:

dietpi@DietPi:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  mariadb-server-10.5
Suggested packages:
  mailx mariadb-test netcat-openbsd
Recommended packages:
  libhtml-template-perl
The following NEW packages will be installed:
  mariadb-server-10.5
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 3678 kB of archives.
After this operation, 58.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://deb.debian.org/debian bullseye/main armhf mariadb-server-10.5 armhf 1:10.5.18-0+deb11u1 [3678 kB]
Fetched 3678 kB in 9s (424 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 34009 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.5_1%3a10.5.18-0+deb11u1_armhf.deb ...
/var/lib/mysql: found previous version 10.5
Unpacking mariadb-server-10.5 (1:10.5.18-0+deb11u1) ...
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.5_1%3a10.5.18-0+deb11u1_armhf.deb (--unpack):
 unable to create '/usr/lib/mysql/plugin/auth_ed25519.so.dpkg-new' (while processing './usr/lib/mysql/plugin/auth_ed25519.so'): Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/mariadb-server-10.5_1%3a10.5.18-0+deb11u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
dietpi@DietPi:~$ sudo apt update && apt upgrade
Hit:1 https://deb.debian.org/debian bullseye InRelease
Hit:2 https://deb.debian.org/debian bullseye-updates InRelease
Hit:3 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://downloads.plex.tv/repo/deb public InRelease
Hit:6 https://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Pls execute the whole stuff as user root

Hi

All is preceded by “sudo”

Anyway, how do I change user?

open a SSH session and login as user root?

Done, same error messages

root@DietPi:/# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  mariadb-server-10.5
Suggested packages:
  mailx mariadb-test netcat-openbsd
Recommended packages:
  libhtml-template-perl
The following NEW packages will be installed:
  mariadb-server-10.5
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 3678 kB of archives.
After this operation, 58.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://deb.debian.org/debian bullseye/main armhf mariadb-server-10.5 armhf 1:10.5.18-0+deb11u1 [3678 kB]
Fetched 3678 kB in 13s (281 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 34009 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.5_1%3a10.5.18-0+deb11u1_armhf.deb ...
/var/lib/mysql: found previous version 10.5
Unpacking mariadb-server-10.5 (1:10.5.18-0+deb11u1) ...
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.5_1%3a10.5.18-0+deb11u1_armhf.deb (--unpack):
 unable to create '/usr/lib/mysql/plugin/auth_ed25519.so.dpkg-new' (while processing './usr/lib/mysql/plugin/auth_ed25519.so'): Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/mariadb-server-10.5_1%3a10.5.18-0+deb11u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

pls run this as root.

root@DietPi:/# apt update && apt upgrade
Hit:1 https://deb.debian.org/debian bullseye InRelease
Hit:2 https://deb.debian.org/debian bullseye-updates InRelease
Hit:3 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://downloads.plex.tv/repo/deb public InRelease
Hit:6 https://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 mariadb-server : Depends: mariadb-server-10.5 (>= 1:10.5.18-0+deb11u1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

can you try following

apt install --reinstall mariadb-server-10.5

hello,

@Joulinar
E: Sub-process /usr/bin/dpkg returned an error code (1)

perhaps try to fix this with dpkg --configure -a Probably the database got corrupted while installing a package …

root@DietPi:/# apt install --reinstall mariadb-server-10.5
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  mailx mariadb-test netcat-openbsd
Recommended packages:
  libhtml-template-perl
The following NEW packages will be installed:
  mariadb-server-10.5
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/3678 kB of archives.
After this operation, 58.6 MB of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 34009 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.5_1%3a10.5.18-0+deb11u1_armhf.deb ...
/var/lib/mysql: found previous version 10.5
Unpacking mariadb-server-10.5 (1:10.5.18-0+deb11u1) ...
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.5_1%3a10.5.18-0+deb11u1_armhf.deb (--unpack):
 unable to create '/usr/lib/mysql/plugin/auth_ed25519.so.dpkg-new' (while processing './usr/lib/mysql/plugin/auth_ed25519.so'): Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/mariadb-server-10.5_1%3a10.5.18-0+deb11u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

can you check for kernel error messages

dmesg -l err,crit,alert,emerg
root@DietPi:/sbin# dpkg --configure -a
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
root@DietPi:/sbin# dmesg -l err,crit,alert,emerg
[    0.621147] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.
[    4.555734] sd 0:0:0:0: [sda] No Caching mode page found
[    4.555749] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   11.801592] exFAT-fs (sda1): bogus allocation bitmap size(need : 4769126, cur : 4769127)

Main issue seems to be creating a file inside /usr/lib/mysql/plugin. Can you share following

ls -la /usr/lib/mysql/plugin
root@DietPi:/home/dietpi# ls -la /usr/lib/mysql/plugin
total 728
d--------- 3 root  root  4096 Jul 18 09:23 .
drwxr-xr-x 3 root  root  4096 Jul 18 09:23 ..
-rw-r--r-- 1 root  root 65884 Feb 20  2022 auth_ed25519.so
-rw-r--r-- 1 root  root  9684 Feb 20  2022 auth_pam.so
drwx------ 2 mysql root  4096 Dec 22 18:03 auth_pam_tool_dir
-rw-r--r-- 1 root  root  5584 Feb 20  2022 auth_pam_v1.so
-rw-r--r-- 1 root  root 13792 Feb 20  2022 disks.so
-rw-r--r-- 1 root  root 18060 Feb 20  2022 file_key_management.so
-rw-r--r-- 1 root  root 54868 Feb 20  2022 ha_archive.so
-rw-r--r-- 1 root  root 34340 Feb 20  2022 ha_blackhole.so
-rw-r--r-- 1 root  root 54836 Feb 20  2022 ha_federated.so
-rw-r--r-- 1 root  root 79452 Feb 20  2022 ha_federatedx.so
-rw-r--r-- 1 root  root 83572 Feb 20  2022 ha_sphinx.so
-rw-r--r-- 1 root  root 92428 Feb 20  2022 handlersocket.so
-rw-r--r-- 1 root  root 13792 Feb 20  2022 locales.so
-rw-r--r-- 1 root  root 13848 Feb 20  2022 metadata_lock_info.so
-rw-r--r-- 1 root  root 13792 Feb 20  2022 query_cache_info.so
-rw-r--r-- 1 root  root 13980 Feb 20  2022 query_response_time.so
-rw-r--r-- 1 root  root 36368 Feb 20  2022 server_audit.so
-rw-r--r-- 1 root  root  5688 Feb 20  2022 simple_password_check.so
-rw-r--r-- 1 root  root  5736 Feb 20  2022 sql_errlog.so
-rw-r--r-- 1 root  root 54824 Feb 20  2022 type_mysql_json.so
-rw-r--r-- 1 root  root 13848 Feb 20  2022 wsrep_info.so