LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Could not exec dpkg! (https://www.linuxquestions.org/questions/linux-newbie-8/could-not-exec-dpkg-4175654028/)

dinesh uprety 05-16-2019 12:47 PM

Could not exec dpkg!
 
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)
root@kali:~#
sir how i can fix it

TB0ne 05-16-2019 01:08 PM

Quote:

Originally Posted by dinesh uprety (Post 5995750)
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)
root@kali:~#
sir how i can fix it

There are not just "sirs" on this site, and you need to read the Question Guidelines. You've given us *NO DETAILS* at all, as to the version/distro of Linux, what you did to get to this point, what you typed in, etc. We can guess as to Kali just by your prompt....so have you read Kali's website, and the sticky posts here?? Kali is for experienced Linux users, and even then to be used for security/pentesting...not as a daily-use distro. Why are you using Kali??

That said, you also need to do basic research before posting, because putting your exact error into Google pulls up many possible solutions. But since we don't know what you've done/tried, we can't say which to use.
https://forums.kali.org/showthread.p...-an-error-code

hydrurga 05-16-2019 01:13 PM

Please paste the output from the following command within CODE tags (see https://www.linuxquestions.org/quest...og.php?b=36313) so that we can determine which, of any, of your packages are not properly installed:

Code:

dpkg -l | grep -v "^ii" | sed 's/=//g'
Also, please paste the output from the following command (also within CODE tags) so that we can have a look at your software sources.

Code:

inxi -r
Also, please paste the last 10 or so lines of /var/log/dpkg.log

jefro 05-16-2019 05:36 PM

"0 B of additional disk space will be used"

I'd guess either you didn't get any package data or you are on live media or you have no updates.

I don't mind you calling me sir.

TB0ne 05-17-2019 07:08 AM

Quote:

Originally Posted by jefro (Post 5995862)
"0 B of additional disk space will be used"
I'd guess either you didn't get any package data or you are on live media or you have no updates.

Or, based on the error given of "Could not exec dpkg!", that file either doesn't exist or isn't executable.
https://www.kali.org/tutorials/advan...in-kali-linux/

OP, do an "ls -l /usr/bin/dpkg" please.
Quote:

I don't mind you calling me sir.
...and I'm fairly certain others on this site are NOT 'sirs', and would mind it.

pan64 05-17-2019 12:41 PM

you need to post - at least - the command you tried to execute. From the other hand you may need to read this: https://www.linuxquestions.org/quest...ad-4175614092/ or probably even better: https://www.linuxquestions.org/quest...rs-4175633618/


All times are GMT -5. The time now is 08:30 AM.