PDA

View Full Version : deleted dpkg by mistake!! HELP ME!!



arpitp
June 16th, 2006, 02:28 PM
hi guys..
i have deleted my dpkg file by mistake. what should i do now?

please help as soon as possible. this is urgent becoz i m not being able to run apt-get at all.

I tried copying the dpkg file of some other computer. But the error that i am getting is as given below:

arpit@flicker:~$ sudo apt-get install ubuntu-sounds
Reading package lists... Done
Building dependency tree... Done
ubuntu-sounds is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)

what should i do now??
i have tried reinstalling dpkg as well..But then it says 407 authentication failed as given below:

arpit@flicker:~$ sudo apt-get install dpkg --reinstall
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 1866kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
dpkg
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com dapper/main dpkg 1.13.11ubuntu6
407 Proxy Authentication Required
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.13.11ubuntu6_i386.deb 407 Proxy Authentication Required
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

even though the settings in my apt.conf are perfect and i have the proxy at all places set up correctly but i m not being able to do anything.
Please please please help me!!

avender
June 16th, 2006, 07:54 PM
Your solution is simple. U just deleted dpkg right ?

Download dpkg debian package from http://packages.ubuntu.com/

Extract.

Copy dpkg to /usr/bin/

That's it.. :)

iason86
November 6th, 2008, 04:45 AM
i have about the same problem. it started when i left synaptic to install some libraries when the power went down after that when i open synaptic and after entering my passwd i have this screen appeared

http://img442.imageshack.us/img442/3104/screenshotsynapticez6.th.png (http://img442.imageshack.us/my.php?image=screenshotsynapticez6.png)

does anyone know what i have to do?

chenel
November 6th, 2008, 04:59 AM
The first thing to try is opening a terminal and typing

sudo dpkg --configure -a
like the message suggests. Hopefully that'll fix things -- probably a package just didn't get completely extracted or configured when the power went out. If not, post what the output of the command is and we'll see where to go from there.

iason86
November 6th, 2008, 08:52 AM
you where right thanks a lot _o_
i have tried the command before but with not sudo in front :\
i learn while i live!

Kevbert
November 6th, 2008, 09:25 AM
If you installed from CD, the .deb file will be there, in the /pool/main/d/dpkg directory. Just copy to your PC and then double click on it to install.

chenel
November 6th, 2008, 02:49 PM
you where right thanks a lot _o_
i have tried the command before but with not sudo in front :\
i learn while i live!

Ah, yes. dpkg is only allowed to be run by the superuser: that's why it only works with sudo. Glad it's working now :)

rajhanschinmay
April 18th, 2010, 12:58 PM
Dear all,

I am facing the same problem.
I am shown exactly error code 100.
I tried all the steps mentioned above.

- Reinstalling the software from CD.
- Configuring the dpkg package.

None seem to work.

Any more solutions?
Please reply me if you need output of any command. I am ready to give you any info required. But please solve the problem.


Thanking you,
Yours
Chinmay

Bachstelze
April 18th, 2010, 03:32 PM
Boot a live CD, download the dpkg DEB package for your architecture, mount your Ubuntu root partition and do something like


sudo dpkg -x dpkg*.deb /mnt/

It should install all the necessary files so you can chroot into your Ubuntu installation and do a bona fide reinstallation of the dpkg package.