Can't install packages after moving /var
I moved /var to another partition, and now I can't install any packages. The error I get:
Code:
# apt-get install quota |
just plain copying will often break symlinks and all sorts, not a nice thing to do. can you ls that file? the directory it's in? maybe that's a symlink to a different location which has been broken.
|
As far as I know, cp -a should handle symlinks. I did this before on another system and it worked...
About the file, I can't find it in /var/lib/dpkg (I can ls this directory), but I also can't find it on another (working) Debian system I have. When should this file be generated? |
Problem solved :).
For some reason, dpkg-deb got corrupted during the copy process, so package extracting didn't work. |
cpio is a better alternative:
# find . -xdev | cpio -pm /new/location (run from old location) Even better is doing this on a read-only filesystem to prevent the system from updating or making files. |
All times are GMT -5. The time now is 09:38 AM. |