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

upgrade 10.2 -> 10.6.8, 10.7.4 fails due to file conflict in libmariadb-dev

    XMLWordPrintable

Details

    Description

      1. install 10.2.44 - all packages

      export  DEBIAN_FRONTEND=noninteractive; sudo -E apt-get -q -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-confdef -y --force-yes install mariadb-plugin-cracklib-password-check mariadb-plugin-gssapi-client mariadb-plugin-gssapi-server mariadb-plugin-rocksdb mariadb-plugin-spider mariadb-backup-10.2 mariadb-test libmariadb-dev libmariadb3 libmariadbclient18 libmysqlclient18 mariadb-client mariadb-common mariadb-server mysql-common libmariadbd-dev libmariadbd19 mariadb-test-data
      

      2. Remove server as instructed by upgrade docs https://mariadb.com/kb/en/upgrading-from-mariadb-105-to-mariadb-106/

      (please note: there is no document about 10.2 -> 10.6 upgrade)

      sudo apt-get remove mariadb-server
      
      

      3. reconfigure sources.list to use 10.6.8 CS repos and try to install new version (or even just one libmariadb-dev package):

      Preconfiguring packages ...
      (Reading database ... 83205 files and directories currently installed.)
      Preparing to unpack .../0-libssl1.1_1.1.1-1ubuntu2.1~18.04.17_arm64.deb ...
      Unpacking libssl1.1:arm64 (1.1.1-1ubuntu2.1~18.04.17) over (1.1.1-1ubuntu2.1~18.04.3) ...
      Selecting previously unselected package libpcre2-8-0:arm64.
      Preparing to unpack .../1-libpcre2-8-0_10.31-2_arm64.deb ...
      Unpacking libpcre2-8-0:arm64 (10.31-2) ...
      Preparing to unpack .../2-libmariadb-dev_1%3a10.6.8+maria~bionic_arm64.deb ...
      Unpacking libmariadb-dev (1:10.6.8+maria~bionic) over (1:10.2.44+maria~bionic) ...
      dpkg: error processing archive /tmp/apt-dpkg-install-U5L4Qp/2-libmariadb-dev_1%3a10.6.8+maria~bionic_arm64.deb (--unpack):
       trying to overwrite '/usr/bin/mariadb_config', which is also in package libmariadbd-dev 1:10.2.44+maria~bionic
      dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
      dpkg: considering deconfiguration of libmariadb-dev, which would be broken by installation of libmariadbd-dev ...
      dpkg: yes, will deconfigure libmariadb-dev (broken by libmariadbd-dev)
      Preparing to unpack .../3-libmariadbd-dev_1%3a10.6.8+maria~bionic_arm64.deb ...
      De-configuring libmariadb-dev (1:10.2.44+maria~bionic) ...
      Unpacking libmariadbd-dev (1:10.6.8+maria~bionic) over (1:10.2.44+maria~bionic) ...
      Replacing files in old package libmariadb-dev (1:10.2.44+maria~bionic) ...
      Preparing to unpack .../4-libmariadbd19_1%3a10.6.8+maria~bionic_arm64.deb ...
      Unpacking libmariadbd19:arm64 (1:10.6.8+maria~bionic) over (1:10.2.44+maria~bionic) ...
      Preparing to unpack .../5-libmysqlclient18_1%3a10.6.8+maria~bionic_arm64.deb ...
      Unpacking libmysqlclient18 (1:10.6.8+maria~bionic) over (1:10.2.44+maria~bionic) ...
      Preparing to unpack .../6-libmariadbclient18_1%3a10.6.8+maria~bionic_arm64.deb ...
      Unpacking libmariadbclient18 (1:10.6.8+maria~bionic) over (1:10.2.44+maria~bionic) ...
      Preparing to unpack .../7-libmariadb3_1%3a10.6.8+maria~bionic_arm64.deb ...
      Unpacking libmariadb3:arm64 (1:10.6.8+maria~bionic) over (1:10.2.44+maria~bionic) ...
      Selecting previously unselected package libssl-dev:arm64.
      Preparing to unpack .../8-libssl-dev_1.1.1-1ubuntu2.1~18.04.17_arm64.deb ...
      Unpacking libssl-dev:arm64 (1.1.1-1ubuntu2.1~18.04.17) ...
      Errors were encountered while processing:
       /tmp/apt-dpkg-install-U5L4Qp/2-libmariadb-dev_1%3a10.6.8+maria~bionic_arm64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      
      

      Attachments

        Activity

          People

            illuusio Tuukka Pasanen
            tturenko Timofey Turenko
            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.