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









New contributor




amstriker.dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    Can you please run file $(which dpkg) and add the output to your question?
    – Simon Sudler
    yesterday










  • thelowedown.wordpress.com/2010/04/16/…
    – GabrielaGarcia
    yesterday










  • @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
    11 hours ago












  • @GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
    – amstriker.dev
    11 hours ago










  • 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
    10 hours ago















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









New contributor




amstriker.dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    Can you please run file $(which dpkg) and add the output to your question?
    – Simon Sudler
    yesterday










  • thelowedown.wordpress.com/2010/04/16/…
    – GabrielaGarcia
    yesterday










  • @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
    11 hours ago












  • @GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
    – amstriker.dev
    11 hours ago










  • 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
    10 hours ago













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









New contributor




amstriker.dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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









New contributor




amstriker.dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




amstriker.dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 6 hours ago





















New contributor




amstriker.dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









amstriker.dev

12




12




New contributor




amstriker.dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





amstriker.dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






amstriker.dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 2




    Can you please run file $(which dpkg) and add the output to your question?
    – Simon Sudler
    yesterday










  • thelowedown.wordpress.com/2010/04/16/…
    – GabrielaGarcia
    yesterday










  • @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
    11 hours ago












  • @GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
    – amstriker.dev
    11 hours ago










  • 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
    10 hours ago














  • 2




    Can you please run file $(which dpkg) and add the output to your question?
    – Simon Sudler
    yesterday










  • thelowedown.wordpress.com/2010/04/16/…
    – GabrielaGarcia
    yesterday










  • @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
    11 hours ago












  • @GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
    – amstriker.dev
    11 hours ago










  • 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
    10 hours ago








2




2




Can you please run file $(which dpkg) and add the output to your question?
– Simon Sudler
yesterday




Can you please run file $(which dpkg) and add the output to your question?
– Simon Sudler
yesterday












thelowedown.wordpress.com/2010/04/16/…
– GabrielaGarcia
yesterday




thelowedown.wordpress.com/2010/04/16/…
– GabrielaGarcia
yesterday












@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
11 hours ago






@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
11 hours ago














@GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
– amstriker.dev
11 hours ago




@GabrielaGarcia, it doesn't work . Here the ouput is : chmod: cannot access '/usr/bin/dpkg': No such file or directory
– amstriker.dev
11 hours ago












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
10 hours ago




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
10 hours ago















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
});


}
});






amstriker.dev is a new contributor. Be nice, and check out our Code of Conduct.










 

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








amstriker.dev is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















amstriker.dev is a new contributor. Be nice, and check out our Code of Conduct.













amstriker.dev is a new contributor. Be nice, and check out our Code of Conduct.












amstriker.dev is a new contributor. Be nice, and check out our Code of Conduct.















 


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 did Captain America manage to do this?

迪纳利

南乌拉尔铁路局