Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
A broken dpkg may make it impossible to install any .deb files. A procedure like the following will help you recover from this situation. (In the first line, you can replace "links" with your favorite browser command.)
$ links http://http.us.debian.org/debian/pool/main/d/dpkg/
... download the good dpkg_version_arch.deb
$ su
password: *****
# ar x dpkg_version_arch.deb
# mv data.tar.gz /data.tar.gz
# cd /
# tar xzfv data.tar.gz
actually you can have an ar also, probably you can download it, but would be nice to know what else have been lost. In such cases reinstalling your os may give you a faster solution
root@sieemaen:~# ls -l /usr/bin/dpkg
ls: cannot access /usr/bin/dpkg: No such file or directory
root@sieemaen:~# ls -l /usr/bin/ar
ls: cannot access /usr/bin/ar: No such file or directory
I can't reinstall my system, because i have important files which I can't upload/download
lt is in the same path as ar and dpkg ... so it looks like someone has been nuking files...?
You do not need to run either of those commands as root, try again and run as normal user with absolute paths
Code:
$ /usr/bin/ls -l /usr/bin/dpkg
Code:
$ /usr/bin/ls -l /usr/bin/ar
Also
Code:
$ /usr/bin/echo $PATH
"Important files" or not, you are facing reinstalling - hopefully next time you won't be mixing buntu packages or repos with Debian...
bash: /usr/bin/echo: No such file or directory
kamil@sieemaen:/root$ /usr/bin/ls -l /usr/bin/dpkg
bash: /usr/bin/ls: No such file or directory
kamil@sieemaen:/root$ /usr/bin/ls -l /usr/bin/ar
bash: /usr/bin/ls: No such file or directory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.