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

/etc/init.d/mariadb: line 90: [: : integer expression expected

Details

    Description

      • After using sudo apt update && sudo apt upgrade the system returned the following:

      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      You might want to run 'apt --fix-broken install' to correct these.
      The following packages have unmet dependencies:
       mariadb-client-10.6 : Breaks: mariadb-server-10.6 (< 1:10.6.13+maria~deb11) but 1:10.6.12+maria~deb11 is installed
                             Breaks: mariadb-server-core-10.6 (< 1:10.6.13+maria~deb11) but 1:10.6.12+maria~deb11 is installed
       mariadb-client-core-10.6 : Breaks: mariadb-server-core-10.6 (< 1:10.6.13+maria~deb11) but 1:10.6.12+maria~deb11 is installed
       mariadb-server : Depends: mariadb-server-10.6 (>= 1:10.6.13+maria~deb11) but 1:10.6.12+maria~deb11 is installed
      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
      

      • As suggested, I used sudo apt --fix-broken install. Then i used sudo apt update && sudo apt upgrade.
      • The above issue has been solved, but another problem has appeared - when starting the mariadb service, an error appears:

      df: '': No such file or directory
      /etc/init.d/mariadb: line 90: [: : integer expression expected
      

      • Is there any way I can fix this, or should I wait for the next apt mariadb update?

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment - apologies - hopefully fixed with https://github.com/MariaDB/server/commit/30fb72ca6e27742f20003c208985eb711e12c70a
            danblack Daniel Black added a comment -

            Ah, not in init.d script - illuusio same fix?

            danblack Daniel Black added a comment - Ah, not in init.d script - illuusio same fix?

            This should happen but happens so fixing it now.

            illuusio Tuukka Pasanen added a comment - This should happen but happens so fixing it now.
            illuusio Tuukka Pasanen added a comment - - edited

            Ok I find the problem. As init.d script uses

            /usr/sbin/mariadbd --print-defaults

            to get configs
            and greps there correct datadir but in default installation but datadir in only printed if it's configured in config file.

            illuusio Tuukka Pasanen added a comment - - edited Ok I find the problem. As init.d script uses /usr/sbin/mariadbd --print-defaults to get configs and greps there correct datadir but in default installation but datadir in only printed if it's configured in config file.

            Now there is Github pull request #2664 to be tested. Can you test if patch works kanlukasz-dev as expected and comment?

            illuusio Tuukka Pasanen added a comment - Now there is Github pull request #2664 to be tested. Can you test if patch works kanlukasz-dev as expected and comment?
            kanlukasz-dev Łukasz added a comment -

            @Tuukka Pasanen, i updated the

             /etc/init.d/mariadb 

            file with these new lines from

             #2664 PR 

            and can confirm that it now works properly.

            kanlukasz-dev Łukasz added a comment - @Tuukka Pasanen, i updated the /etc/init.d/mariadb file with these new lines from #2664 PR and can confirm that it now works properly.

            People

              illuusio Tuukka Pasanen
              kanlukasz-dev Łukasz
              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.