LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   uninstalled "dpkg" used --force-remove-essential how to reinstall (https://www.linuxquestions.org/questions/debian-26/uninstalled-dpkg-used-force-remove-essential-how-to-reinstall-513674/)

deepclutch 12-25-2006 10:21 PM

uninstalled "dpkg" used --force-remove-essential how to reinstall
 
Hello,
I While Playing with Debian Etch pre 4,removed package "dpkg" using --force-remove-essential string.now how can i recover dpkg.i also have Ubuntu Edgy installed on same PC.
I tried to fix /etc/alternatives/ to default-for that i removed dpkg :confused:
i deleted /etc/alterntives/gnome-www-browser .how can i get this value to defaults.

Quakeboy02 12-25-2006 10:58 PM

"I While Playing with Debian Etch pre 4,removed package "dpkg" using --force-remove-essential string."

Are you sure you want to have root priviliges? ;)

apt-get install dpkg

deepclutch 12-26-2006 10:10 PM

dpkg
 
without dpkg installed apt-get dpkg cant install dpkg afaik.any alternate ways

deepclutch 12-27-2006 12:18 AM

Solved
 
(Solved)
I also have ubuntu edgy installed.so i mounted debian etch in ubuntu.
then i extracted debian version of dpkg() into a folder.then i manually copied :cry: each files to the corresponding debian directories.

then i chrooted to debian via ubuntu.then i did
Code:

~#dpkg-reconfigure dpkg
this way dpkg is registered in debian's database.
That's all folks.Ahem...never try again this...U ppl also not.:D

jlinkels 12-27-2006 05:01 AM

just wondering... you are not exactly a newbie... why did you remove dpkg in the first place? Too late at night?

jlinkels

deepclutch 12-27-2006 08:55 AM

Perhaps A Lesson for N00bs eh... LOL
BTW Is that one the correct method to get dpkg in debian back

davcefai 12-29-2006 12:09 PM

Quote:

ust wondering... you are not exactly a newbie... why did you remove dpkg in the first place?
A long time ago one of my lecturers taught me the only correct response to a question like this.

It seemed like a good idea at the time. :D


All times are GMT -5. The time now is 03:22 PM.