E: Unable to locate package mysql-server












2














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é










share|improve this question




















  • 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
















2














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é










share|improve this question




















  • 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














2












2








2







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é










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 25 '18 at 17:28









Drakonoved

7482515




7482515










asked Feb 23 '18 at 20:35









jicman

3118




3118








  • 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














  • 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








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










1 Answer
1






active

oldest

votes


















0














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





share|improve this answer





















  • 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













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%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









0














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





share|improve this answer





















  • 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


















0














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





share|improve this answer





















  • 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
















0












0








0






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





share|improve this answer












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






share|improve this answer












share|improve this answer



share|improve this answer










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




















  • 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




















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.





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.




draft saved


draft discarded














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





















































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

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?