Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32285

Malformed package in Ubuntu 22 Repository Fails to Install

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • 10.6
    • N/A
    • Packaging
    • None
    • 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.

      Attachments

        Activity

          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.

          cvicentiu Vicențiu Ciorbaru added a comment - 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.
          DavidHillman David Hillman added a comment -

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

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

          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

          faust Faustin Lammler added a comment - 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

          People

            faust Faustin Lammler
            DavidHillman David Hillman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.