Removing mysql from Ubuntu 16.04 creates issues while reinstalling it
I needed to delete mysql from ubuntu 16.04. After deleting it, found that I got myself into trouble and cannot reinstall it normally. I also cleaned my system by sudo apt-get clean.
sudo apt-get install mysql-server does not work properly and also tried reinstalling it but could not help.
Why reinstalling a mysql is creating a problem.
mysql ubuntu-16.04
add a comment |
I needed to delete mysql from ubuntu 16.04. After deleting it, found that I got myself into trouble and cannot reinstall it normally. I also cleaned my system by sudo apt-get clean.
sudo apt-get install mysql-server does not work properly and also tried reinstalling it but could not help.
Why reinstalling a mysql is creating a problem.
mysql ubuntu-16.04
Welcome to Superuser. Your question is clear (great!), but the underlying explanation as of what goes wrong, needs some expanding: how do you know that the reinstallation did not work? What is the "problem" you are experiencing?
– agtoever
Dec 30 '18 at 18:14
@agtoever the error I get after re-installing mysql [E: Sub-process /usr/bin/dpkg returned an error code (1)
– Adnan Fayaz
Dec 31 '18 at 12:41
The package manager (dpkg) gets an error. Could you please provide a more complete log of what goes wrong and add it to your question?
– agtoever
Dec 31 '18 at 12:45
Whatever I try and try to remove mysql for fresh installing it. It has same errorIf are sure you want to downgrade to 5.7, remove the file /var/lib/mysql/debian-*.flag and try installing again. dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– Adnan Fayaz
Jan 3 at 17:39
add a comment |
I needed to delete mysql from ubuntu 16.04. After deleting it, found that I got myself into trouble and cannot reinstall it normally. I also cleaned my system by sudo apt-get clean.
sudo apt-get install mysql-server does not work properly and also tried reinstalling it but could not help.
Why reinstalling a mysql is creating a problem.
mysql ubuntu-16.04
I needed to delete mysql from ubuntu 16.04. After deleting it, found that I got myself into trouble and cannot reinstall it normally. I also cleaned my system by sudo apt-get clean.
sudo apt-get install mysql-server does not work properly and also tried reinstalling it but could not help.
Why reinstalling a mysql is creating a problem.
mysql ubuntu-16.04
mysql ubuntu-16.04
asked Dec 30 '18 at 17:51
Adnan FayazAdnan Fayaz
11
11
Welcome to Superuser. Your question is clear (great!), but the underlying explanation as of what goes wrong, needs some expanding: how do you know that the reinstallation did not work? What is the "problem" you are experiencing?
– agtoever
Dec 30 '18 at 18:14
@agtoever the error I get after re-installing mysql [E: Sub-process /usr/bin/dpkg returned an error code (1)
– Adnan Fayaz
Dec 31 '18 at 12:41
The package manager (dpkg) gets an error. Could you please provide a more complete log of what goes wrong and add it to your question?
– agtoever
Dec 31 '18 at 12:45
Whatever I try and try to remove mysql for fresh installing it. It has same errorIf are sure you want to downgrade to 5.7, remove the file /var/lib/mysql/debian-*.flag and try installing again. dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– Adnan Fayaz
Jan 3 at 17:39
add a comment |
Welcome to Superuser. Your question is clear (great!), but the underlying explanation as of what goes wrong, needs some expanding: how do you know that the reinstallation did not work? What is the "problem" you are experiencing?
– agtoever
Dec 30 '18 at 18:14
@agtoever the error I get after re-installing mysql [E: Sub-process /usr/bin/dpkg returned an error code (1)
– Adnan Fayaz
Dec 31 '18 at 12:41
The package manager (dpkg) gets an error. Could you please provide a more complete log of what goes wrong and add it to your question?
– agtoever
Dec 31 '18 at 12:45
Whatever I try and try to remove mysql for fresh installing it. It has same errorIf are sure you want to downgrade to 5.7, remove the file /var/lib/mysql/debian-*.flag and try installing again. dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
– Adnan Fayaz
Jan 3 at 17:39
Welcome to Superuser. Your question is clear (great!), but the underlying explanation as of what goes wrong, needs some expanding: how do you know that the reinstallation did not work? What is the "problem" you are experiencing?
– agtoever
Dec 30 '18 at 18:14
Welcome to Superuser. Your question is clear (great!), but the underlying explanation as of what goes wrong, needs some expanding: how do you know that the reinstallation did not work? What is the "problem" you are experiencing?
– agtoever
Dec 30 '18 at 18:14
@agtoever the error I get after re-installing mysql [
E: Sub-process /usr/bin/dpkg returned an error code (1)– Adnan Fayaz
Dec 31 '18 at 12:41
@agtoever the error I get after re-installing mysql [
E: Sub-process /usr/bin/dpkg returned an error code (1)– Adnan Fayaz
Dec 31 '18 at 12:41
The package manager (dpkg) gets an error. Could you please provide a more complete log of what goes wrong and add it to your question?
– agtoever
Dec 31 '18 at 12:45
The package manager (dpkg) gets an error. Could you please provide a more complete log of what goes wrong and add it to your question?
– agtoever
Dec 31 '18 at 12:45
Whatever I try and try to remove mysql for fresh installing it. It has same error
If are sure you want to downgrade to 5.7, remove the file /var/lib/mysql/debian-*.flag and try installing again. dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) – Adnan Fayaz
Jan 3 at 17:39
Whatever I try and try to remove mysql for fresh installing it. It has same error
If are sure you want to downgrade to 5.7, remove the file /var/lib/mysql/debian-*.flag and try installing again. dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) – Adnan Fayaz
Jan 3 at 17:39
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1389031%2fremoving-mysql-from-ubuntu-16-04-creates-issues-while-reinstalling-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1389031%2fremoving-mysql-from-ubuntu-16-04-creates-issues-while-reinstalling-it%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
Welcome to Superuser. Your question is clear (great!), but the underlying explanation as of what goes wrong, needs some expanding: how do you know that the reinstallation did not work? What is the "problem" you are experiencing?
– agtoever
Dec 30 '18 at 18:14
@agtoever the error I get after re-installing mysql [
E: Sub-process /usr/bin/dpkg returned an error code (1)– Adnan Fayaz
Dec 31 '18 at 12:41
The package manager (dpkg) gets an error. Could you please provide a more complete log of what goes wrong and add it to your question?
– agtoever
Dec 31 '18 at 12:45
Whatever I try and try to remove mysql for fresh installing it. It has same error
If are sure you want to downgrade to 5.7, remove the file /var/lib/mysql/debian-*.flag and try installing again. dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.7_5.7.24-0ubuntu0.16.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)– Adnan Fayaz
Jan 3 at 17:39