Mariadb-common package prevents successful 0021 migration

Hardware: Old laptop or computer (Dell Inspiron Mini 1018)
YunoHost version: Currently on 4.4.2.14, trying to get to 11.x
I have access to my server : Through SSH & through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Hello there!

Relatively long time user, first time writing here :slight_smile: I’m really grateful that this project exists, hopefully one day I’ll be able to contribute as well.

Getting to the point: I can’t complete the 0021 migration successfully, see the current log here .

I went through some posts on the forum (this and this were the most helpful, found one more here but I’d rather not go down this path), tried updating packages from an SSH session but no luck so far.
It seems only the mariadb-common package prevents any advance, but this seems to be a blocker for any further action because everything starts with a package update and it fails.
I tried updating the packages manually, rebooting the machine several times, fixing the problem by using dpkg configure -a but the problem seems to be recursive: everything I do just points to this package.

Any help is highly appreciated and keep up the good work!

1 Like

Hmokay, let’s try to check what’s the output of:

sudo ls -l /var/cache/apt/archives/*maria*.deb
sudo dpkg -i /var/cache/apt/archives/*maria*.deb

Thanks for taking the time.
The output is:

admin@homerow:~$ sudo ls -l /var/cache/apt/archives/*maria*.deb
ls: cannot access '/var/cache/apt/archives/*maria*.deb': No such file or directory
admin@homerow:~$ sudo dpkg -i /var/cache/apt/archives/*maria*.deb
dpkg: error: cannot access archive '/var/cache/apt/archives/*maria*.deb': No such file or directory```

Mokay so let’s try :

sudo apt install mariadb-common --download-only

and let’s check what sudo ls -l /var/cache/apt/archives/*.deb shows

Here is the output:

admin@homerow:~$ sudo apt install mariadb-common --download-only
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
mariadb-common is already the newest version (1:10.5.15-0+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Download complete and in download only mode
admin@homerow:~$ sudo ls -l /var/cache/apt/archives/*.deb 
-rw-r--r-- 1 root root 242892 Oct  5 16:27 /var/cache/apt/archives/dbus_1.12.24-0+deb11u1_amd64.deb
-rw-r--r-- 1 root root  99716 Oct  5 16:27 /var/cache/apt/archives/dbus-user-session_1.12.24-0+deb11u1_amd64.deb
-rw-r--r-- 1 root root 112664 Oct  5 16:27 /var/cache/apt/archives/dbus-x11_1.12.24-0+deb11u1_amd64.deb
-rw-r--r-- 1 root root 342416 Oct  4 23:42 /var/cache/apt/archives/isc-dhcp-client_4.4.1-2.3+deb11u1_amd64.deb
-rw-r--r-- 1 root root 144760 Oct  4 23:42 /var/cache/apt/archives/isc-dhcp-common_4.4.1-2.3+deb11u1_amd64.deb
-rw-r--r-- 1 root root 222416 Oct  5 16:27 /var/cache/apt/archives/libdbus-1-3_1.12.24-0+deb11u1_amd64.deb
-rw-r--r-- 1 root root 283912 Oct  2 16:59 /var/cache/apt/archives/tzdata_2021a-1+deb11u6_all.deb
admin@homerow:~$

Hmpf mouai bon je capte pas trop …

Naivement je tenterais un truc un peu plus brutal comme :

sudo dpkg --force-depends --remove mariadb-common
sudo apt install mariadb-common

Thank you again but no luck, the same error appears:

admin@homerow:~$ sudo dpkg --force-depends --remove mariadb-common | tee first.out
dpkg: mariadb-common: dependency problems, but removing anyway as you requested:
 mariadb-server-core-10.5 depends on mariadb-common (>= 1:10.5.15-0+deb11u1).
 mariadb-server-10.5 depends on mariadb-common (>= 1:10.5.15-0+deb11u1).
 mariadb-client-core-10.5 depends on mariadb-common (>= 1:10.5.15-0+deb11u1).
 libmariadb3:amd64 depends on mariadb-common.

(Reading database ... 168537 files and directories currently installed.)
Removing mariadb-common (1:10.5.15-0+deb11u1) ...
update-alternatives: warning: alternative /etc/mysql/mariadb.cnf (part of link group my.cnf) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/my.cnf is dangling; it will be updated with best choice
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
admin@homerow:~$ sudo apt install mariadb-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  mariadb-common
0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded.
Need to get 36.7 kB of archives.
After this operation, 82.9 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 mariadb-common all 1:10.5.15-0+deb11u1 [36.7 kB]
Fetched 36.7 kB in 0s (155 kB/s)    
Selecting previously unselected package mariadb-common.
(Reading database ... 168535 files and directories currently installed.)
Preparing to unpack .../mariadb-common_1%3a10.5.15-0+deb11u1_all.deb ...
Unpacking mariadb-common (1:10.5.15-0+deb11u1) ...
Setting up mariadb-common (1:10.5.15-0+deb11u1) ...
update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn't exist
dpkg: error processing package mariadb-common (--configure):
 installed mariadb-common package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 mariadb-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.