E: Unable to locate package mysql-server
After an import of another database, the mysql root@localhost was not taking. I know that it worked because the data got imported and I was able to change the password of the user that was imported using root. However, after a day running, I tried to login as root and I couldn't. I tried a bunch of other web suggestions, etc., but none worked. I was running mysql-server-5.7. Anyway, since I knew that I just needed to recover the data, I said let me reinstall it and I would be on my way. WEll, I was wrong. For some reason, I was not able to uninstall it, nor install it back. Finding a few web suggestions, I am now at this state where when I type,
apt-get install mysql-server
I get.
root@GBRTEF01LX005:/home/bzadmin# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-server
Any other suggestions? Thanks.
josé
package-management mysql
|
show 7 more comments
After an import of another database, the mysql root@localhost was not taking. I know that it worked because the data got imported and I was able to change the password of the user that was imported using root. However, after a day running, I tried to login as root and I couldn't. I tried a bunch of other web suggestions, etc., but none worked. I was running mysql-server-5.7. Anyway, since I knew that I just needed to recover the data, I said let me reinstall it and I would be on my way. WEll, I was wrong. For some reason, I was not able to uninstall it, nor install it back. Finding a few web suggestions, I am now at this state where when I type,
apt-get install mysql-server
I get.
root@GBRTEF01LX005:/home/bzadmin# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-server
Any other suggestions? Thanks.
josé
package-management mysql
1
Please add output ofapt-cache policy mysql-server
to your question.
– N0rbert
Feb 23 '18 at 20:40
Oh yeah, I triedapt-get update && apt-get dist-upgrade
and no go.
– jicman
Feb 23 '18 at 20:40
apt-cache policy mysql-server
<br/>N: Unable to locate package mysql-server
– jicman
Feb 23 '18 at 20:42
Which Ubuntu version do you have? Trysudo add-apt-repository main
.
– N0rbert
Feb 23 '18 at 20:43
4.4.0-116-generic #140-Ubuntu
– jicman
Feb 23 '18 at 20:45
|
show 7 more comments
After an import of another database, the mysql root@localhost was not taking. I know that it worked because the data got imported and I was able to change the password of the user that was imported using root. However, after a day running, I tried to login as root and I couldn't. I tried a bunch of other web suggestions, etc., but none worked. I was running mysql-server-5.7. Anyway, since I knew that I just needed to recover the data, I said let me reinstall it and I would be on my way. WEll, I was wrong. For some reason, I was not able to uninstall it, nor install it back. Finding a few web suggestions, I am now at this state where when I type,
apt-get install mysql-server
I get.
root@GBRTEF01LX005:/home/bzadmin# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-server
Any other suggestions? Thanks.
josé
package-management mysql
After an import of another database, the mysql root@localhost was not taking. I know that it worked because the data got imported and I was able to change the password of the user that was imported using root. However, after a day running, I tried to login as root and I couldn't. I tried a bunch of other web suggestions, etc., but none worked. I was running mysql-server-5.7. Anyway, since I knew that I just needed to recover the data, I said let me reinstall it and I would be on my way. WEll, I was wrong. For some reason, I was not able to uninstall it, nor install it back. Finding a few web suggestions, I am now at this state where when I type,
apt-get install mysql-server
I get.
root@GBRTEF01LX005:/home/bzadmin# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-server
Any other suggestions? Thanks.
josé
package-management mysql
package-management mysql
edited Feb 25 '18 at 17:28
Drakonoved
7482515
7482515
asked Feb 23 '18 at 20:35
jicman
3118
3118
1
Please add output ofapt-cache policy mysql-server
to your question.
– N0rbert
Feb 23 '18 at 20:40
Oh yeah, I triedapt-get update && apt-get dist-upgrade
and no go.
– jicman
Feb 23 '18 at 20:40
apt-cache policy mysql-server
<br/>N: Unable to locate package mysql-server
– jicman
Feb 23 '18 at 20:42
Which Ubuntu version do you have? Trysudo add-apt-repository main
.
– N0rbert
Feb 23 '18 at 20:43
4.4.0-116-generic #140-Ubuntu
– jicman
Feb 23 '18 at 20:45
|
show 7 more comments
1
Please add output ofapt-cache policy mysql-server
to your question.
– N0rbert
Feb 23 '18 at 20:40
Oh yeah, I triedapt-get update && apt-get dist-upgrade
and no go.
– jicman
Feb 23 '18 at 20:40
apt-cache policy mysql-server
<br/>N: Unable to locate package mysql-server
– jicman
Feb 23 '18 at 20:42
Which Ubuntu version do you have? Trysudo add-apt-repository main
.
– N0rbert
Feb 23 '18 at 20:43
4.4.0-116-generic #140-Ubuntu
– jicman
Feb 23 '18 at 20:45
1
1
Please add output of
apt-cache policy mysql-server
to your question.– N0rbert
Feb 23 '18 at 20:40
Please add output of
apt-cache policy mysql-server
to your question.– N0rbert
Feb 23 '18 at 20:40
Oh yeah, I tried
apt-get update && apt-get dist-upgrade
and no go.– jicman
Feb 23 '18 at 20:40
Oh yeah, I tried
apt-get update && apt-get dist-upgrade
and no go.– jicman
Feb 23 '18 at 20:40
apt-cache policy mysql-server
<br/> N: Unable to locate package mysql-server
– jicman
Feb 23 '18 at 20:42
apt-cache policy mysql-server
<br/> N: Unable to locate package mysql-server
– jicman
Feb 23 '18 at 20:42
Which Ubuntu version do you have? Try
sudo add-apt-repository main
.– N0rbert
Feb 23 '18 at 20:43
Which Ubuntu version do you have? Try
sudo add-apt-repository main
.– N0rbert
Feb 23 '18 at 20:43
4.4.0-116-generic #140-Ubuntu
– jicman
Feb 23 '18 at 20:45
4.4.0-116-generic #140-Ubuntu
– jicman
Feb 23 '18 at 20:45
|
show 7 more comments
1 Answer
1
active
oldest
votes
It seems that your /etc/apt/sources.list
is absolutely broken.
Try to fill it with the following contents:
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.canonical.com/ubuntu xenial partner
Then run:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
Thank you so much. This did it. I am wondering why this happened. I appreciate your help. mysql-server is installed. Thanks again. By the way, how do I enter a new line here? I tried two spaces and that didn't work.
– jicman
Feb 23 '18 at 21:09
If I understand correctly new lines in comments are not supported.
– N0rbert
Feb 23 '18 at 21:14
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%2f1009153%2fe-unable-to-locate-package-mysql-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It seems that your /etc/apt/sources.list
is absolutely broken.
Try to fill it with the following contents:
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.canonical.com/ubuntu xenial partner
Then run:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
Thank you so much. This did it. I am wondering why this happened. I appreciate your help. mysql-server is installed. Thanks again. By the way, how do I enter a new line here? I tried two spaces and that didn't work.
– jicman
Feb 23 '18 at 21:09
If I understand correctly new lines in comments are not supported.
– N0rbert
Feb 23 '18 at 21:14
add a comment |
It seems that your /etc/apt/sources.list
is absolutely broken.
Try to fill it with the following contents:
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.canonical.com/ubuntu xenial partner
Then run:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
Thank you so much. This did it. I am wondering why this happened. I appreciate your help. mysql-server is installed. Thanks again. By the way, how do I enter a new line here? I tried two spaces and that didn't work.
– jicman
Feb 23 '18 at 21:09
If I understand correctly new lines in comments are not supported.
– N0rbert
Feb 23 '18 at 21:14
add a comment |
It seems that your /etc/apt/sources.list
is absolutely broken.
Try to fill it with the following contents:
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.canonical.com/ubuntu xenial partner
Then run:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
It seems that your /etc/apt/sources.list
is absolutely broken.
Try to fill it with the following contents:
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.canonical.com/ubuntu xenial partner
Then run:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install mysql-server
answered Feb 23 '18 at 21:01
N0rbert
21.1k54699
21.1k54699
Thank you so much. This did it. I am wondering why this happened. I appreciate your help. mysql-server is installed. Thanks again. By the way, how do I enter a new line here? I tried two spaces and that didn't work.
– jicman
Feb 23 '18 at 21:09
If I understand correctly new lines in comments are not supported.
– N0rbert
Feb 23 '18 at 21:14
add a comment |
Thank you so much. This did it. I am wondering why this happened. I appreciate your help. mysql-server is installed. Thanks again. By the way, how do I enter a new line here? I tried two spaces and that didn't work.
– jicman
Feb 23 '18 at 21:09
If I understand correctly new lines in comments are not supported.
– N0rbert
Feb 23 '18 at 21:14
Thank you so much. This did it. I am wondering why this happened. I appreciate your help. mysql-server is installed. Thanks again. By the way, how do I enter a new line here? I tried two spaces and that didn't work.
– jicman
Feb 23 '18 at 21:09
Thank you so much. This did it. I am wondering why this happened. I appreciate your help. mysql-server is installed. Thanks again. By the way, how do I enter a new line here? I tried two spaces and that didn't work.
– jicman
Feb 23 '18 at 21:09
If I understand correctly new lines in comments are not supported.
– N0rbert
Feb 23 '18 at 21:14
If I understand correctly new lines in comments are not supported.
– N0rbert
Feb 23 '18 at 21:14
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f1009153%2fe-unable-to-locate-package-mysql-server%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
1
Please add output of
apt-cache policy mysql-server
to your question.– N0rbert
Feb 23 '18 at 20:40
Oh yeah, I tried
apt-get update && apt-get dist-upgrade
and no go.– jicman
Feb 23 '18 at 20:40
apt-cache policy mysql-server
<br/>N: Unable to locate package mysql-server
– jicman
Feb 23 '18 at 20:42
Which Ubuntu version do you have? Try
sudo add-apt-repository main
.– N0rbert
Feb 23 '18 at 20:43
4.4.0-116-generic #140-Ubuntu
– jicman
Feb 23 '18 at 20:45