E: Unable to locate package mysql-server The Next CEO of Stack OverflowMySQL 5.7 installation...

Help/tips for a first time writer?

Can I calculate next year's exemptions based on this year's refund/amount owed?

What would be the main consequences for a country leaving the WTO?

Is it OK to decorate a log book cover?

Does higher Oxidation/ reduction potential translate to higher energy storage in battery?

Is French Guiana a (hard) EU border?

Do scriptures give a method to recognize a truly self-realized person/jivanmukta?

Aggressive Under-Indexing and no data for missing index

how one can write a nice vector parser, something that does pgfvecparse{A=B-C; D=E x F;}

Why do we say 'Un seul M' and not 'Une seule M' even though M is a "consonne"

Where do students learn to solve polynomial equations these days?

Why did early computer designers eschew integers?

Can this note be analyzed as a non-chord tone?

Yu-Gi-Oh cards in Python 3

Does Germany produce more waste than the US?

If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Inductor and Capacitor in Parallel

Computationally populating tables with probability data

What are the unusually-enlarged wing sections on this P-38 Lightning?

The Ultimate Number Sequence Puzzle

Could a dragon use its wings to swim?

Man transported from Alternate World into ours by a Neutrino Detector

Purpose of level-shifter with same in and out voltages



E: Unable to locate package mysql-server



The Next CEO of Stack OverflowMySQL 5.7 installation implications after upgrade to Bionic BeaverCan not install MySQL on my Ubuntu 12.04unable to locate package cgroups-liteMysql failure packagesUnable to locate pipelight-multi packageI messed up MySQL. Stuck at ERROR 2002 (HY000) and can't reinstallUnable to locate package mysql-serverUpdating 14.04.1 MYSQL from 5.5 to 5.7Cannot Connect to Database ServerAccidentally Removed mysql-server-core-5.7installing library event package












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
















bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 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
















bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 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

7322515




7322515










asked Feb 23 '18 at 20:35









jicmanjicman

3128




3128





bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 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









N0rbertN0rbert

24.8k852117




24.8k852117













  • 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.




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

Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...