[MDEV-32285] Malformed package in Ubuntu 22 Repository Fails to Install Created: 2023-09-29  Updated: 2023-10-12  Resolved: 2023-10-12

Status: Closed
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 10.6
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: David Hillman Assignee: Faustin Lammler
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

Ubuntu 22.04.3 LTS



 Description   

The mariadb-server package currently at the Ubuntu 22 repository is malformed such that installation immediately fails with the following error message:

root@[hostname]:/# apt install mariadb-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  mariadb-server-10.6
Suggested packages:
  mailx mariadb-test
The following NEW packages will be installed:
  mariadb-server mariadb-server-10.6
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
5 not fully installed or removed.
Need to get 0 B/4,093 kB of archives.
After this operation, 67.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Setting up mariadb-common (1:10.6.12-0ubuntu0.22.04.1) ...
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 is a clean system, with no mariadb or mysql packages installed.

root@[hostname]:/# apt list --installed | grep mysql
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
root@[hostname]:/# apt list --installed | grep maria
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Expected behavior:
Package should install.



 Comments   
Comment by Vicențiu Ciorbaru [ 2023-09-29 ]

I was able to properly install MariaDB on an ubuntu 22.04 docker image by running the following steps:

docker run -it ubuntu:22.04 bash

Then inside the container:

apt update
apt install mariadb-server --yes

Can you provide a set of steps that you took to reproduce this problem? I've also tried the mariadb repositories from here (https://mariadb.org/download/?t=repo-config&d=22.04+%22jammy%22&v=10.6&r_m=xtom_tal) and got the same result.

Comment by David Hillman [ 2023-09-30 ]

As I described, all I did was issue "apt install mariadb-server" on a clean, physical 22.04.3 LTS system.

Comment by Faustin Lammler [ 2023-10-03 ]

Hi David!

I too am not able to reproduce the issue and from your log I see that you does not seem to be using MariaDB repositories (version 10.6.15) but Ubuntu repositories (version 10.6.12). In the later case, the correct place to report error is Ubuntu launchpad platform (https://help.ubuntu.com/community/Launchpad).

So, unless you can give us more context and confirm what your steps are, we will not be able to help you.

Regards,
Faustin

Generated at Thu Feb 08 10:30:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.