LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-25-2006, 10:21 PM   #1
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 691
Blog Entries: 1

Rep: Reputation: 31
Unhappy 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
i deleted /etc/alterntives/gnome-www-browser .how can i get this value to defaults.
 
Old 12-25-2006, 10:58 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Rep: Reputation: 106Reputation: 106
"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
 
Old 12-26-2006, 10:10 PM   #3
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 691
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Post dpkg

without dpkg installed apt-get dpkg cant install dpkg afaik.any alternate ways
 
Old 12-27-2006, 12:18 AM   #4
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 691
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Post 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 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.
 
Old 12-27-2006, 05:01 AM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 3,477

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

jlinkels
 
Old 12-27-2006, 08:55 AM   #6
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 691
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Perhaps A Lesson for N00bs eh... LOL
BTW Is that one the correct method to get dpkg in debian back

Last edited by deepclutch; 12-27-2006 at 08:57 AM.
 
Old 12-29-2006, 12:09 PM   #7
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 693

Rep: Reputation: 30
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.
 
  


Reply

Tags
dpkg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting "Short read in buffer_copy" error with "dpkg" stalefries Linux - Software 6 03-24-2010 03:19 PM
How do I get rid of those "rc" packages? (As seen in dpkg -l output) johnMG Debian 5 02-27-2006 02:08 AM
New to Ubuntu - can't figure out dpkg "kernel image" message for RT2500 install phaggood Ubuntu 1 02-09-2006 11:41 AM
"Essential System Administration" or "UNIX System Administration Handbook"? TGWDNGHN Linux - Newbie 3 07-03-2005 08:27 PM
DPKG & "files list file for package `pkg-config' contains empty filename" error :( Angelus Debian 2 04-02-2005 07:34 AM


All times are GMT -5. The time now is 12:25 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration