Problems installing mysql on 18.04












0















I am new to ubuntu and trying to set up mysql. However when I run this command:



sudo apt-get install mysql-client mysql-server


I get this output that ends in an error code:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client-5.7
mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-
5.7
Suggested packages:
libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client
mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server
mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 10 newly installed, 0 to remove and 54 not upgraded.
1 not fully installed or removed.
Need to get 9,820 B/20.4 MB of archives.
After this operation, 160 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
mysql-client all 5.7.22-0ubuntu18.04.1 [9,820 B]
Fetched 9,820 B in 0s (373 kB/s)
Preconfiguring packages ...
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 2: /etc/environment: JAVA_HOME: not found
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess
returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)


Am I missing a step in the install process? What can I do to fix this error and get mysql installed?










share|improve this question

























  • Are you sure there's not more to that error? Normally it would have spat out other error data...

    – Thomas Ward
    Jun 22 '18 at 19:50











  • Your problem seems to be something like this askubuntu.com/questions/203966/…

    – Kulfy
    Jun 22 '18 at 19:50











  • I updated the post with full output

    – ganele892
    Jun 22 '18 at 20:05






  • 1





    I'm not sure this is the same problem that @Kulfy links to. In your case, a previous install of the package install-info hasn't finished correctly. Try sudo dpkg --configure -a first; if that doesn't work remove install-info and try again.

    – Jos
    Jun 22 '18 at 20:17
















0















I am new to ubuntu and trying to set up mysql. However when I run this command:



sudo apt-get install mysql-client mysql-server


I get this output that ends in an error code:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client-5.7
mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-
5.7
Suggested packages:
libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client
mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server
mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 10 newly installed, 0 to remove and 54 not upgraded.
1 not fully installed or removed.
Need to get 9,820 B/20.4 MB of archives.
After this operation, 160 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
mysql-client all 5.7.22-0ubuntu18.04.1 [9,820 B]
Fetched 9,820 B in 0s (373 kB/s)
Preconfiguring packages ...
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 2: /etc/environment: JAVA_HOME: not found
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess
returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)


Am I missing a step in the install process? What can I do to fix this error and get mysql installed?










share|improve this question

























  • Are you sure there's not more to that error? Normally it would have spat out other error data...

    – Thomas Ward
    Jun 22 '18 at 19:50











  • Your problem seems to be something like this askubuntu.com/questions/203966/…

    – Kulfy
    Jun 22 '18 at 19:50











  • I updated the post with full output

    – ganele892
    Jun 22 '18 at 20:05






  • 1





    I'm not sure this is the same problem that @Kulfy links to. In your case, a previous install of the package install-info hasn't finished correctly. Try sudo dpkg --configure -a first; if that doesn't work remove install-info and try again.

    – Jos
    Jun 22 '18 at 20:17














0












0








0








I am new to ubuntu and trying to set up mysql. However when I run this command:



sudo apt-get install mysql-client mysql-server


I get this output that ends in an error code:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client-5.7
mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-
5.7
Suggested packages:
libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client
mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server
mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 10 newly installed, 0 to remove and 54 not upgraded.
1 not fully installed or removed.
Need to get 9,820 B/20.4 MB of archives.
After this operation, 160 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
mysql-client all 5.7.22-0ubuntu18.04.1 [9,820 B]
Fetched 9,820 B in 0s (373 kB/s)
Preconfiguring packages ...
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 2: /etc/environment: JAVA_HOME: not found
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess
returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)


Am I missing a step in the install process? What can I do to fix this error and get mysql installed?










share|improve this question
















I am new to ubuntu and trying to set up mysql. However when I run this command:



sudo apt-get install mysql-client mysql-server


I get this output that ends in an error code:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client-5.7
mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-
5.7
Suggested packages:
libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client
mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server
mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 10 newly installed, 0 to remove and 54 not upgraded.
1 not fully installed or removed.
Need to get 9,820 B/20.4 MB of archives.
After this operation, 160 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
mysql-client all 5.7.22-0ubuntu18.04.1 [9,820 B]
Fetched 9,820 B in 0s (373 kB/s)
Preconfiguring packages ...
Setting up install-info (6.5.0.dfsg.1-2) ...
/usr/sbin/update-info-dir: 2: /etc/environment: JAVA_HOME: not found
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess
returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)


Am I missing a step in the install process? What can I do to fix this error and get mysql installed?







dpkg 18.04 mysql






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 22 '18 at 20:04







ganele892

















asked Jun 22 '18 at 19:43









ganele892ganele892

11




11













  • Are you sure there's not more to that error? Normally it would have spat out other error data...

    – Thomas Ward
    Jun 22 '18 at 19:50











  • Your problem seems to be something like this askubuntu.com/questions/203966/…

    – Kulfy
    Jun 22 '18 at 19:50











  • I updated the post with full output

    – ganele892
    Jun 22 '18 at 20:05






  • 1





    I'm not sure this is the same problem that @Kulfy links to. In your case, a previous install of the package install-info hasn't finished correctly. Try sudo dpkg --configure -a first; if that doesn't work remove install-info and try again.

    – Jos
    Jun 22 '18 at 20:17



















  • Are you sure there's not more to that error? Normally it would have spat out other error data...

    – Thomas Ward
    Jun 22 '18 at 19:50











  • Your problem seems to be something like this askubuntu.com/questions/203966/…

    – Kulfy
    Jun 22 '18 at 19:50











  • I updated the post with full output

    – ganele892
    Jun 22 '18 at 20:05






  • 1





    I'm not sure this is the same problem that @Kulfy links to. In your case, a previous install of the package install-info hasn't finished correctly. Try sudo dpkg --configure -a first; if that doesn't work remove install-info and try again.

    – Jos
    Jun 22 '18 at 20:17

















Are you sure there's not more to that error? Normally it would have spat out other error data...

– Thomas Ward
Jun 22 '18 at 19:50





Are you sure there's not more to that error? Normally it would have spat out other error data...

– Thomas Ward
Jun 22 '18 at 19:50













Your problem seems to be something like this askubuntu.com/questions/203966/…

– Kulfy
Jun 22 '18 at 19:50





Your problem seems to be something like this askubuntu.com/questions/203966/…

– Kulfy
Jun 22 '18 at 19:50













I updated the post with full output

– ganele892
Jun 22 '18 at 20:05





I updated the post with full output

– ganele892
Jun 22 '18 at 20:05




1




1





I'm not sure this is the same problem that @Kulfy links to. In your case, a previous install of the package install-info hasn't finished correctly. Try sudo dpkg --configure -a first; if that doesn't work remove install-info and try again.

– Jos
Jun 22 '18 at 20:17





I'm not sure this is the same problem that @Kulfy links to. In your case, a previous install of the package install-info hasn't finished correctly. Try sudo dpkg --configure -a first; if that doesn't work remove install-info and try again.

– Jos
Jun 22 '18 at 20:17










2 Answers
2






active

oldest

votes


















0














it seems your problem lies in the /etc/environment file? Can you show the contents of that file? The error seems to indicate you have a JAVA_HOME command instead of a setting.






share|improve this answer































    0














    I also had many problem with both mysql and mariadb (ubuntu 18.04). I could not get mariadb to work. I both using instructions at https://stackoverflow.com/questions/50573787/how-to-forcefully-remove-mysql-and-mariadb-from-ubuntu-16-04-without-apt-get



    $ dpkg --list|grep -i mysql
    and
    $ dpkg --list|grep -i mariadb



    $ dpkg -remove --force-remove-reinstreq



    Then installed mysql as described at https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/



    Works well now, even after reboot. Don't know why this solution is not more widely spreaded!






    share|improve this answer








    New contributor




    Gert Kruger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1048923%2fproblems-installing-mysql-on-18-04%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      it seems your problem lies in the /etc/environment file? Can you show the contents of that file? The error seems to indicate you have a JAVA_HOME command instead of a setting.






      share|improve this answer




























        0














        it seems your problem lies in the /etc/environment file? Can you show the contents of that file? The error seems to indicate you have a JAVA_HOME command instead of a setting.






        share|improve this answer


























          0












          0








          0







          it seems your problem lies in the /etc/environment file? Can you show the contents of that file? The error seems to indicate you have a JAVA_HOME command instead of a setting.






          share|improve this answer













          it seems your problem lies in the /etc/environment file? Can you show the contents of that file? The error seems to indicate you have a JAVA_HOME command instead of a setting.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 22 '18 at 22:51









          nosklonosklo

          78119




          78119

























              0














              I also had many problem with both mysql and mariadb (ubuntu 18.04). I could not get mariadb to work. I both using instructions at https://stackoverflow.com/questions/50573787/how-to-forcefully-remove-mysql-and-mariadb-from-ubuntu-16-04-without-apt-get



              $ dpkg --list|grep -i mysql
              and
              $ dpkg --list|grep -i mariadb



              $ dpkg -remove --force-remove-reinstreq



              Then installed mysql as described at https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/



              Works well now, even after reboot. Don't know why this solution is not more widely spreaded!






              share|improve this answer








              New contributor




              Gert Kruger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.

























                0














                I also had many problem with both mysql and mariadb (ubuntu 18.04). I could not get mariadb to work. I both using instructions at https://stackoverflow.com/questions/50573787/how-to-forcefully-remove-mysql-and-mariadb-from-ubuntu-16-04-without-apt-get



                $ dpkg --list|grep -i mysql
                and
                $ dpkg --list|grep -i mariadb



                $ dpkg -remove --force-remove-reinstreq



                Then installed mysql as described at https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/



                Works well now, even after reboot. Don't know why this solution is not more widely spreaded!






                share|improve this answer








                New contributor




                Gert Kruger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                  0












                  0








                  0







                  I also had many problem with both mysql and mariadb (ubuntu 18.04). I could not get mariadb to work. I both using instructions at https://stackoverflow.com/questions/50573787/how-to-forcefully-remove-mysql-and-mariadb-from-ubuntu-16-04-without-apt-get



                  $ dpkg --list|grep -i mysql
                  and
                  $ dpkg --list|grep -i mariadb



                  $ dpkg -remove --force-remove-reinstreq



                  Then installed mysql as described at https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/



                  Works well now, even after reboot. Don't know why this solution is not more widely spreaded!






                  share|improve this answer








                  New contributor




                  Gert Kruger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  I also had many problem with both mysql and mariadb (ubuntu 18.04). I could not get mariadb to work. I both using instructions at https://stackoverflow.com/questions/50573787/how-to-forcefully-remove-mysql-and-mariadb-from-ubuntu-16-04-without-apt-get



                  $ dpkg --list|grep -i mysql
                  and
                  $ dpkg --list|grep -i mariadb



                  $ dpkg -remove --force-remove-reinstreq



                  Then installed mysql as described at https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/



                  Works well now, even after reboot. Don't know why this solution is not more widely spreaded!







                  share|improve this answer








                  New contributor




                  Gert Kruger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Gert Kruger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 13 mins ago









                  Gert KrugerGert Kruger

                  1




                  1




                  New contributor




                  Gert Kruger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Gert Kruger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Gert Kruger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1048923%2fproblems-installing-mysql-on-18-04%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      GameSpot

                      connect to host localhost port 22: Connection refused

                      Getting a Wifi WPA2 wifi connection