lock file & admin dir problems
Topic: lock file & admin dir problems
started by: dallas7
Posted by dallas7 on Jan. 13 2004,05:18I'm running DSL .5 from a hard drive install. Can anyone tell me how to around this?
sudo apt-get install whatever
E: could not open lock file /var/lib/dpkg/lock -open (2 no such file or directory)
E: unable to lock the administratior directory (/var/lib/dpkb), are you root?
These error messages, or similar, come up in some way or another whenever I try to do anything with apt-get. sudo, sudo su, no diff.
Posted by cbagger01 on Jan. 13 2004,05:54Have you typed:
before you tried to run the apt-get stuff? You need to restore the dpkg directory before apt-get will work and the dpkg-restore command will grab the file from the web site and restore it for you.