Could not exec dpkg! E: Sub-process /usr/bin/dpkg returned an error code (100) in Ubuntu











up vote
0
down vote

favorite












I accidently closed terminal when i am uninstalled mysql with sudo apt-get purge mysql*
then open new terminal and run sudo apt-get upgrade that getting errors in Ubuntu.



Here is the detail errors:



Extracting templates from packages: 100%
Preconfiguring packages ...
/tmp/grub-efi-amd64.config.lyQJMF: 1: /tmp/grub-efi-amd64.config.lyQJMF: dpkg: not found
/tmp/gdm3.config.K21eTR: 23: /tmp/gdm3.config.K21eTR: dpkg: not found
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)


I try fixed errors with chmod 755 /usr/bin/dpkg or sudo chmod 755 /usr/bin/dpkg but it does not work. It is the same.



Here the output is : chmod: cannot access '/usr/bin/dpkg': No such file or directory



Run file $(which dpkg) getting ouput is:

$ file $(which dpkg) Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ... file -C [-m magicfiles] file [--help]



1










share|improve this question




















  • 2




    Can you please run file $(which dpkg) and add the output to your question?
    – Simon Sudler
    Nov 15 at 11:32










  • thelowedown.wordpress.com/2010/04/16/…
    – GabrielaGarcia
    Nov 15 at 11:40










  • @Simon Sudler, Here is the detail result after run that file $(which dpkg) ::~$ file $(which dpkg) Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ... file -C [-m magicfiles] file [--help]
    – amstriker.dev
    Nov 16 at 2:09












  • @GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
    – amstriker.dev
    Nov 16 at 2:23










  • Please edit en update your question with both results. Apparently you have serious problem. If you remember what happened, what you did before noticing the problem post that as well.
    – GabrielaGarcia
    Nov 16 at 2:32















up vote
0
down vote

favorite












I accidently closed terminal when i am uninstalled mysql with sudo apt-get purge mysql*
then open new terminal and run sudo apt-get upgrade that getting errors in Ubuntu.



Here is the detail errors:



Extracting templates from packages: 100%
Preconfiguring packages ...
/tmp/grub-efi-amd64.config.lyQJMF: 1: /tmp/grub-efi-amd64.config.lyQJMF: dpkg: not found
/tmp/gdm3.config.K21eTR: 23: /tmp/gdm3.config.K21eTR: dpkg: not found
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)


I try fixed errors with chmod 755 /usr/bin/dpkg or sudo chmod 755 /usr/bin/dpkg but it does not work. It is the same.



Here the output is : chmod: cannot access '/usr/bin/dpkg': No such file or directory



Run file $(which dpkg) getting ouput is:

$ file $(which dpkg) Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ... file -C [-m magicfiles] file [--help]



1










share|improve this question




















  • 2




    Can you please run file $(which dpkg) and add the output to your question?
    – Simon Sudler
    Nov 15 at 11:32










  • thelowedown.wordpress.com/2010/04/16/…
    – GabrielaGarcia
    Nov 15 at 11:40










  • @Simon Sudler, Here is the detail result after run that file $(which dpkg) ::~$ file $(which dpkg) Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ... file -C [-m magicfiles] file [--help]
    – amstriker.dev
    Nov 16 at 2:09












  • @GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
    – amstriker.dev
    Nov 16 at 2:23










  • Please edit en update your question with both results. Apparently you have serious problem. If you remember what happened, what you did before noticing the problem post that as well.
    – GabrielaGarcia
    Nov 16 at 2:32













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I accidently closed terminal when i am uninstalled mysql with sudo apt-get purge mysql*
then open new terminal and run sudo apt-get upgrade that getting errors in Ubuntu.



Here is the detail errors:



Extracting templates from packages: 100%
Preconfiguring packages ...
/tmp/grub-efi-amd64.config.lyQJMF: 1: /tmp/grub-efi-amd64.config.lyQJMF: dpkg: not found
/tmp/gdm3.config.K21eTR: 23: /tmp/gdm3.config.K21eTR: dpkg: not found
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)


I try fixed errors with chmod 755 /usr/bin/dpkg or sudo chmod 755 /usr/bin/dpkg but it does not work. It is the same.



Here the output is : chmod: cannot access '/usr/bin/dpkg': No such file or directory



Run file $(which dpkg) getting ouput is:

$ file $(which dpkg) Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ... file -C [-m magicfiles] file [--help]



1










share|improve this question















I accidently closed terminal when i am uninstalled mysql with sudo apt-get purge mysql*
then open new terminal and run sudo apt-get upgrade that getting errors in Ubuntu.



Here is the detail errors:



Extracting templates from packages: 100%
Preconfiguring packages ...
/tmp/grub-efi-amd64.config.lyQJMF: 1: /tmp/grub-efi-amd64.config.lyQJMF: dpkg: not found
/tmp/gdm3.config.K21eTR: 23: /tmp/gdm3.config.K21eTR: dpkg: not found
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)


I try fixed errors with chmod 755 /usr/bin/dpkg or sudo chmod 755 /usr/bin/dpkg but it does not work. It is the same.



Here the output is : chmod: cannot access '/usr/bin/dpkg': No such file or directory



Run file $(which dpkg) getting ouput is:

$ file $(which dpkg) Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ... file -C [-m magicfiles] file [--help]



1







apt package-management dpkg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 at 6:40

























asked Nov 15 at 11:17









amstriker.dev

12




12








  • 2




    Can you please run file $(which dpkg) and add the output to your question?
    – Simon Sudler
    Nov 15 at 11:32










  • thelowedown.wordpress.com/2010/04/16/…
    – GabrielaGarcia
    Nov 15 at 11:40










  • @Simon Sudler, Here is the detail result after run that file $(which dpkg) ::~$ file $(which dpkg) Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ... file -C [-m magicfiles] file [--help]
    – amstriker.dev
    Nov 16 at 2:09












  • @GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
    – amstriker.dev
    Nov 16 at 2:23










  • Please edit en update your question with both results. Apparently you have serious problem. If you remember what happened, what you did before noticing the problem post that as well.
    – GabrielaGarcia
    Nov 16 at 2:32














  • 2




    Can you please run file $(which dpkg) and add the output to your question?
    – Simon Sudler
    Nov 15 at 11:32










  • thelowedown.wordpress.com/2010/04/16/…
    – GabrielaGarcia
    Nov 15 at 11:40










  • @Simon Sudler, Here is the detail result after run that file $(which dpkg) ::~$ file $(which dpkg) Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ... file -C [-m magicfiles] file [--help]
    – amstriker.dev
    Nov 16 at 2:09












  • @GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
    – amstriker.dev
    Nov 16 at 2:23










  • Please edit en update your question with both results. Apparently you have serious problem. If you remember what happened, what you did before noticing the problem post that as well.
    – GabrielaGarcia
    Nov 16 at 2:32








2




2




Can you please run file $(which dpkg) and add the output to your question?
– Simon Sudler
Nov 15 at 11:32




Can you please run file $(which dpkg) and add the output to your question?
– Simon Sudler
Nov 15 at 11:32












thelowedown.wordpress.com/2010/04/16/…
– GabrielaGarcia
Nov 15 at 11:40




thelowedown.wordpress.com/2010/04/16/…
– GabrielaGarcia
Nov 15 at 11:40












@Simon Sudler, Here is the detail result after run that file $(which dpkg) ::~$ file $(which dpkg) Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ... file -C [-m magicfiles] file [--help]
– amstriker.dev
Nov 16 at 2:09






@Simon Sudler, Here is the detail result after run that file $(which dpkg) ::~$ file $(which dpkg) Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type] [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ... file -C [-m magicfiles] file [--help]
– amstriker.dev
Nov 16 at 2:09














@GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
– amstriker.dev
Nov 16 at 2:23




@GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
– amstriker.dev
Nov 16 at 2:23












Please edit en update your question with both results. Apparently you have serious problem. If you remember what happened, what you did before noticing the problem post that as well.
– GabrielaGarcia
Nov 16 at 2:32




Please edit en update your question with both results. Apparently you have serious problem. If you remember what happened, what you did before noticing the problem post that as well.
– GabrielaGarcia
Nov 16 at 2:32















active

oldest

votes











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',
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%2f1093148%2fcould-not-exec-dpkg-e-sub-process-usr-bin-dpkg-returned-an-error-code-100-i%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093148%2fcould-not-exec-dpkg-e-sub-process-usr-bin-dpkg-returned-an-error-code-100-i%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?