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

            kanlukasz-dev Łukasz created issue -
            kanlukasz-dev Łukasz made changes -
            Field Original Value New Value
            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?
            After using `sudo apt update && sudo apt upgrade` the system returned the following:

            {code}
            ```
            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).
            ```
            {code}

            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?
            kanlukasz-dev Łukasz made changes -
            Description After using `sudo apt update && sudo apt upgrade` the system returned the following:

            {code}
            ```
            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).
            ```
            {code}

            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?
            After using `sudo apt update && sudo apt upgrade` the system returned the following:

            {code}
            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).
            {code}

            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:

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

            Is there any way I can fix this, or should I wait for the next apt mariadb update?
            kanlukasz-dev Łukasz made changes -
            Description After using `sudo apt update && sudo apt upgrade` the system returned the following:

            {code}
            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).
            {code}

            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:

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

            Is there any way I can fix this, or should I wait for the next apt mariadb update?
            * After using *sudo apt update && sudo apt upgrade* the system returned the following:

            {code}
            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).
            {code}

            * 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:

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

            * Is there any way I can fix this, or should I wait for the next apt mariadb update?
            kanlukasz-dev Łukasz made changes -
            Description * After using *sudo apt update && sudo apt upgrade* the system returned the following:

            {code}
            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).
            {code}

            * 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:

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

            * Is there any way I can fix this, or should I wait for the next apt mariadb update?
            * After using *sudo apt update && sudo apt upgrade* the system returned the following:

            {code}
            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).
            {code}

            * 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:

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

            * Is there any way I can fix this, or should I wait for the next apt mariadb update?
            kanlukasz-dev Łukasz made changes -
            Description * After using *sudo apt update && sudo apt upgrade* the system returned the following:

            {code}
            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).
            {code}

            * 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:

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

            * Is there any way I can fix this, or should I wait for the next apt mariadb update?
            * After using *sudo apt update && sudo apt upgrade* the system returned the following:

            {code}
            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).
            {code}

            * 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:

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

            * Is there any way I can fix this, or should I wait for the next apt mariadb update?
            danblack Daniel Black made changes -
            danblack Daniel Black added a comment - apologies - hopefully fixed with https://github.com/MariaDB/server/commit/30fb72ca6e27742f20003c208985eb711e12c70a
            danblack Daniel Black made changes -
            Assignee Tuukka Pasanen [ JIRAUSER49166 ]
            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?
            danblack Daniel Black made changes -
            danblack Daniel Black made changes -

            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 made changes -
            Fix Version/s 10.6 [ 24028 ]
            Fix Version/s 10.8 [ 26121 ]
            Fix Version/s 10.9 [ 26905 ]
            Fix Version/s 10.10 [ 27530 ]
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 11.0 [ 28320 ]
            Fix Version/s 11.1 [ 28549 ]
            Fix Version/s 11.2 [ 28603 ]
            illuusio Tuukka Pasanen made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            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?
            illuusio Tuukka Pasanen made changes -
            Status In Progress [ 3 ] In Testing [ 10301 ]
            illuusio Tuukka Pasanen made changes -
            Component/s Platform Debian [ 10136 ]
            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.
            danblack Daniel Black made changes -
            issue.field.resolutiondate 2023-06-09 00:23:37.0 2023-06-09 00:23:37.897
            danblack Daniel Black made changes -
            Fix Version/s 10.6.15 [ 29013 ]
            Fix Version/s 10.9.8 [ 29015 ]
            Fix Version/s 10.10.6 [ 29017 ]
            Fix Version/s 10.11.5 [ 29019 ]
            Fix Version/s 11.0.3 [ 28920 ]
            Fix Version/s 11.1.2 [ 28921 ]
            Fix Version/s 10.6 [ 24028 ]
            Fix Version/s 10.8 [ 26121 ]
            Fix Version/s 10.9 [ 26905 ]
            Fix Version/s 10.10 [ 27530 ]
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 11.0 [ 28320 ]
            Fix Version/s 11.1 [ 28549 ]
            Fix Version/s 11.2 [ 28603 ]
            Resolution Fixed [ 1 ]
            Status In Testing [ 10301 ] Closed [ 6 ]

            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.