Make a new dpkg directory?
Hi
After months of searching I haven't found any solution to my problem. I've accidently deleted the dpkg directory on my N900. Now I can't install,remove,... apps. When I try to install an application with Faster application manager (APPMAN doesn't work at all), it's says "Unknown error - see the log for details" So I look in the log and there I read: "E: Archive directory /var/cache/apt/archives/partial is missing." When I try "mkdir /var/cache/apt/archives/partial it says "No such file or directory". I can't reflash my phone, because the USB-port has broken. It would be great if someone could come up with a solution! :) Thanks! |
Re: Make a new dpkg directory?
Did you delete the dpkg directory, like /var/lib/dpkg, or the apt directory, like /var/cache/apt???
Please clarify to not further butcher your package management, since the first is a dirctory, while the second is a symlink to either /opt or /home/user/MyDocs. So please give the output of all of these commands Code:
ls -al /var/lib/dpkg |
Re: Make a new dpkg directory?
Quote:
Hmm, I think I've deleted the dpkg directory... But I tried allot of things in the past months... Here is the output of the commands : 1) drwxr-xr-x 2 root root 296 Nov 12 16:30 drwxr-xr-x 27 root root 2104 Nov 12 16:30 -rw- r --r-- 1 root root 0 Nov 12 16:30 available -rw-r----- 1 root root 0 Nov 12 16:30 lock 2) l rwx rwx rwx 1 root root 21 Nov 12 12:51 /var/cache/apt -> /home/user/.apt-cache 3) ls: /var/cache/apt/archives: No such file or directory 4)drwxr-xr-x 3 root root 4096 Jun 16 12:56 . drwxr-xr-x 3 root root 4096 Jul 25 2010 .. drwxr-xr-x 3 root root 4096 Jul 5 19:01 archives -rw-r--r-- 1 root root 8088113 Jun 16 12:57 pkgcache.bin - rw-r--r-- 1 root root 8045550 Jun 16 12:57 srcpkgcache.bin 5) ls: /home/user/MyDocs/.apt-cache: No such file or directory Thanks! |
Re: Make a new dpkg directory?
Please also
Code:
ls -al /home/user/.apt-cache Nevertheless, try this commands please: Code:
sudo gainroot |
Re: Make a new dpkg directory?
Quote:
The first result : ls: /home/user/.apt-cache: No such file or directory Then I've tried the code, when I typed dpkg --configure -a and pressed enter I get : dpkg: failed to open package into file '/var/lib/dpkg/status' for reading: No such file or directory When I try dpkg --clear-avail , nothing happens, I suppose that's good. When I try apt-get update : E: Archive directory /var/cache/apt/archives/partial is missing. When I try apt-get install -f : E: Unable to write to /var/cache/apt/ E: The package lists or status file could not be parsed or opened. Thanks! |
Re: Make a new dpkg directory?
Please try if relinking of var/cache/apt does change the output of the commands
Code:
sudo gainroot |
Re: Make a new dpkg directory?
Quote:
When I try apt-get update after relinking it updates allot of packages(I think) and then it gives the same errors with also another error : Reading package list...error And when I try apt-get install -f it also says "Reading package list...error" + the same errors as before. Thanks! |
Re: Make a new dpkg directory?
Please try to provide that directory to apt-get
Code:
sudo gainroot |
Re: Make a new dpkg directory?
Quote:
When I try the command mkdir /opt/var/cache/apt/archives/partial the result is : mkdir: cannot create directory 'opt/var/cache/apt/archives/partial': File exists Thanks! |
Re: Make a new dpkg directory?
That's strange, because apt-get is complaining exactly about the lack of this directory.
Please try to give the output of the above commands now, but please include the prompt and the command for easier reading instead of numbering of the commands, which might add confusion. |
All times are GMT. The time now is 13:13. |
vBulletin® Version 3.8.8