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?