Code: Select all
apt install sudo
E: Sub-process /usr/bin/dpkg returned an error code (2), can someone tell me how to fix this?
Code: Select all
apt install sudo
Code: Select all
su - apt install sudo
I'm already root and if im not wrong its debian 9GarryRicketson wrote:You need to be root to install packages, maybe try:Also which version of Debian might be relevent.Code: Select all
su ~ apt install sudo
Code: Select all
su -
I just tried with the " - " and it still doesn't work, if you have any other ideas i would be glad to hear them , thanks anywayGarryRicketson wrote:Ok, well, I am not sure then, also, did you use the - after su ?
and I had made a typo, in my post, I edited it,instead of ~ but anyway that is a issue on Debian testing, (buster) and I don't think it effects Debian 9, (Stretch)Code: Select all
su -
Code: Select all
apt clean
Code: Select all
apt update
I would enter the error message you have quoted into a search engine, this is the top result and shows how to fix your problem:santiago ferreiro wrote:can someone tell me how to fix this?
is that the complete output you're getting?santiago ferreiro wrote:I was trying to install sudo on my VM and when i used the codethe output was this:Code: Select all
apt install sudo
E: Sub-process /usr/bin/dpkg returned an error code (2), can someone tell me how to fix this?