Problems installing mysql on 18.04
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
add a comment |
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
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 packageinstall-info
hasn't finished correctly. Trysudo dpkg --configure -a
first; if that doesn't work removeinstall-info
and try again.
– Jos
Jun 22 '18 at 20:17
add a comment |
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
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
dpkg 18.04 mysql
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 packageinstall-info
hasn't finished correctly. Trysudo dpkg --configure -a
first; if that doesn't work removeinstall-info
and try again.
– Jos
Jun 22 '18 at 20:17
add a comment |
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 packageinstall-info
hasn't finished correctly. Trysudo dpkg --configure -a
first; if that doesn't work removeinstall-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
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
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!
New contributor
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Jun 22 '18 at 22:51
nosklonosklo
78119
78119
add a comment |
add a comment |
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!
New contributor
add a comment |
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!
New contributor
add a comment |
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!
New contributor
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!
New contributor
New contributor
answered 13 mins ago
Gert KrugerGert Kruger
1
1
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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. Trysudo dpkg --configure -a
first; if that doesn't work removeinstall-info
and try again.– Jos
Jun 22 '18 at 20:17