By mistake it deleted the /usr/bin/dpkg.exe please help!!!
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
By mistake it deleted the /usr/bin/dpkg.exe please help!!!
By mistake i deleted the /usr/bin/dpkg.exe file.Now i am unable to install anything .when i tried to install ssh i got the following error message.
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-server is already the newest version.
openssh-client is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 386 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)
@sycamorex
Sorry it wasn't exe file but looks like that and properties showed executable .I am using ubuntu 10.04.Now what to do ?
Thanks.
Yes, the file had executable permissions. I was just pointing out that linux does not use the .exe file extension. It's a windows thing.
Please check the links I posted above. They seem to have solutions to your problem.
According to your link when i tried ,i got the following error.
sudo apt-get install dpkg --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
dpkg
1 upgraded, 0 newly installed, 0 to remove and 385 not upgraded.
2 not fully installed or removed.
Need to get 0B/2,192kB of archives.
After this operation, 0B of additional disk space will be used.
/usr/bin/dpkg: 1: ELF: not found
/usr/bin/dpkg: 2: @@@@@@00pp@p@@@4@4@: not found
/usr/bin/dpkg: 1: Syntax error: Unterminated quoted string
E: Sub-process /usr/bin/dpkg returned an error code (2)
It seems to be different from that link.Now again strange.Help?
I tried the this link too.But at the last command i got error as:
sudo apt-get install --reinstall dpkg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
dpkg
1 upgraded, 0 newly installed, 0 to remove and 385 not upgraded.
2 not fully installed or removed.
Need to get 0B/2,192kB of archives.
After this operation, 0B of additional disk space will be used.
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
/usr/bin/dpkg: 1: ELF: not found
/usr/bin/dpkg: 2: @@@@@@00pp@p@@@4@4@: not found
/usr/bin/dpkg: 1: Syntax error: Unterminated quoted string
E: Sub-process /usr/bin/dpkg returned an error code (2)
I tried the this link too.But at the last command i got error as:
sudo apt-get install --reinstall dpkg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
dpkg
1 upgraded, 0 newly installed, 0 to remove and 385 not upgraded.
2 not fully installed or removed.
Need to get 0B/2,192kB of archives.
After this operation, 0B of additional disk space will be used.
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
/usr/bin/dpkg: 1: ELF: not found
/usr/bin/dpkg: 2: @@@@@@00pp@p@@@4@4@: not found
/usr/bin/dpkg: 1: Syntax error: Unterminated quoted string
E: Sub-process /usr/bin/dpkg returned an error code (2)
Please Help me.
Thanks
Perhaps, some ubuntu users will be able to crack this one as I have no other suggestions than
installing dpkg from source. I'm sure there's a simpler solution, but if the worst comes to
the worst, you can always grab dpkg sources and compile it:
I have now /usr/bin/dpkg execable file.but still
sudo dpkg --configure -a
give the error like
dpkg: failed to open package info file `/usr/local/var/lib/dpkg/status' for reading: No such file or directory
I have now /usr/bin/dpkg execable file.but still
sudo dpkg --configure -a
give the error like
dpkg: failed to open package info file `/usr/local/var/lib/dpkg/status' for reading: No such file or directory
Thanks
Normally the status file should be in /var/lib/dpkg/status, at least it is on ubuntu 10.10. What is the output of
ls -l /var/lib/dpkg/
If 'status' is in it you could create a link to it like
ln -s /var/lib/dpkg/status /usr/local/var/lib/dpkg/status
If you keep having more problems related to missing files in /usr/local/lib/dpkg/ then you could try to relink the whole directory, i.e. if the config files are available in the default directory (/var/lib/dpkg/).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.