I tried installing the package “default-mysql-server” via apt. Like this sudo apt install default-mysql-server
.
While the install was running i got this error:
Preparing to unpack .../mariadb-server_1%3a10.11.11-0+deb12u1_arm64.deb ...
dpkg: error processing archive /var/cache/apt/archives/mariadb-server_1%3a10.11.11-0+deb12u1_arm64.deb (--unpack):
new mariadb-server package pre-installation script subprocess returned error exit status 1
Selecting previously unselected package default-mysql-server.
Preparing to unpack .../default-mysql-server_1.1.0_all.deb ...
Unpacking default-mysql-server (1.1.0) ...
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-server_1%3a10.11.11-0+deb12u1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
For me this error said nothing that would help me, so i tried to finde some solutions online and came across, that maybe the created mysql user password
had an error, so i checked it:
sudo chage -l mysql
Last password change : May 12, 2025
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1
I could not find any documentation what -1 represents, but for me it looks off, i now that most of the time its 0 99999 7
.
Im running Debian 12 Version: 6.1.0-34-arm64. On older machines i did not get this error, but now i got three machines with the same version, having the same problem.
I checked also my root and sudo user but they looked fine like always no -1 or something else, so my guess is that something is off with apt but not sure.
I also tried to install it as the root user without sudo but still got the same error. Also i rebooted and reinstalled debian on that system, but nothing seems to effect this. If someone knows this issued and can help, that would be awesome.
If more informations are need feel free to ask, i really would like to now whats the matter with this.