Reply
Thread Tools
Posts: 11 | Thanked: 8 times | Joined on Nov 2012 @ Koksijde Belgium
#1
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!
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#2
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
ls -al /var/cache/apt
ls -al /var/cache/apt/archives
ls -al /opt/var/cache/apt
ls -al /home/user/MyDocs/.apt-cache
 

The Following 3 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 11 | Thanked: 8 times | Joined on Nov 2012 @ Koksijde Belgium
#3
Originally Posted by michaaa62 View Post
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
ls -al /var/cache/apt
ls -al /var/cache/apt/archives
ls -al /opt/var/cache/apt
ls -al /home/user/MyDocs/.apt-cache
Thanks for the fast reply!

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!
 

The Following User Says Thank You to Haha yamaha For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#4
Please also
Code:
ls -al /home/user/.apt-cache
to look at the symlinked directory.

Nevertheless, try this commands please:
Code:
sudo gainroot
dpkg --configure -a
dpkg --clear-avail
apt-get update
apt-get install -f
 

The Following 4 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 11 | Thanked: 8 times | Joined on Nov 2012 @ Koksijde Belgium
#5
Originally Posted by michaaa62 View Post
Please also
Code:
ls -al /home/user/.apt-cache
to look at the symlinked directory.

Nevertheless, try this commands please:
Code:
sudo gainroot
dpkg --configure -a
dpkg --clear-avail
apt-get update
apt-get install -f
Hi

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!
 

The Following User Says Thank You to Haha yamaha For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#6
Please try if relinking of var/cache/apt does change the output of the commands
Code:
sudo gainroot 
rm -rf /var/cache/apt
ln -s /opt/var/cache/apt /var/cache/apt
 

The Following 3 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 11 | Thanked: 8 times | Joined on Nov 2012 @ Koksijde Belgium
#7
Originally Posted by michaaa62 View Post
Please try if relinking of var/cache/apt does change the output of the commands
Code:
sudo gainroot 
rm -rf /var/cache/apt
ln -s /opt/var/cache/apt /var/cache/apt
I've tried the commands again, but the errors are the same.
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!
 

The Following User Says Thank You to Haha yamaha For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#8
Please try to provide that directory to apt-get
Code:
sudo gainroot
mkdir /opt/var/cache/apt/archives/partial
 

The Following 2 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 11 | Thanked: 8 times | Joined on Nov 2012 @ Koksijde Belgium
#9
Originally Posted by michaaa62 View Post
Please try to provide that directory to apt-get
Code:
sudo gainroot
mkdir /opt/var/cache/apt/archives/partial
Hi!

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!
 

The Following User Says Thank You to Haha yamaha For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#10
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.
 

The Following 3 Users Say Thank You to michaaa62 For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:01.