maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Tried to free root space, now can't uninstall programs (https://talk.maemo.org/showthread.php?t=44711)

seriouser 2010-02-16 16:16

Tried to free root space, now can't uninstall programs
 
I tried to free root space by following this guide http://www.nokiausers.net/forum/noki...ix-inside.html


Now I can't uninstall anything and I'm really not quite sure how to proceed with fixing the problem. Do I need to reflash or is there a simpler way? Thanks.

Rob1n 2010-02-16 16:20

Re: Tried to free root space, now can't uninstall programs
 
Quote:

Originally Posted by seriouser (Post 529852)
I tried to free root space by following this guide http://www.nokiausers.net/forum/noki...ix-inside.html


Now I can't uninstall anything and I'm really not quite sure how to proceed with fixing the problem. Do I need to reflash or is there a simpler way? Thanks.

Depends what's wrong. What's the output of:
Code:

ls -la /home/var/cache/apt /var/cache/apt

seriouser 2010-02-16 16:31

Re: Tried to free root space, now can't uninstall programs
 
/home/var/cache/apt:
drwxr-xr-x 3 root root 4096 *date* .
drwxr-xr-x 3 root root 4096 *date* ..
drwxr-xr-x 3 root root 4096 *date* archives


/var/cache/apt:
drwxr-xr-x 2 root root 304 *date* .
drwxr-xr-x 5 root root 352 *date* .
-rw-r--r-- 1 root root 1913063 *date* pkgcache.bin
-rw-r--r-- 1 root root 1782838 *date* srcpkgcache.bin




Sorry about not getting a screenshot. I haven't the application installed that would take them and I'm not sure if I should be installing anything new right now.

Rob1n 2010-02-16 16:34

Re: Tried to free root space, now can't uninstall programs
 
Quote:

Originally Posted by seriouser (Post 529881)
/home/var/cache/apt:
drwxr-xr-x 3 root root 4096 *date* .
drwxr-xr-x 3 root root 4096 *date* ..
drwxr-xr-x 3 root root 4096 *date* archives


/var/cache/apt:
drwxr-xr-x 2 root root 304 *date* .
drwxr-xr-x 5 root root 352 *date* .
-rw-r--r-- 1 root root 1913063 *date* pkgcache.bin
-rw-r--r-- 1 root root 1782838 *date* srcpkgcache.bin

Sorry about not getting a screenshot. I haven't the application installed that would take them and I'm not sure if I should be installing anything new right now.

That's fine. Looks like you've missed out the last step from the instructions (or it failed for some reason):
Code:

ln -s /home/var/cache/apt/archives /var/cache/apt/archives
P.S. Ctrl+Shift+P will do a screenshot (without any extra software required).

jcompagner 2010-02-16 16:36

Re: Tried to free root space, now can't uninstall programs
 
move /var/lib/apt and /var/cache/apt both to /home/user/xxx (like apt-cache and apt-lib)
then symlink them both back in.

That will make sure that all the indexes and caches are stored on the 2GB space and not on root
that saves me 30MB of of root.

seriouser 2010-02-16 16:39

Re: Tried to free root space, now can't uninstall programs
 
Quote:

Originally Posted by Rob1n (Post 529887)
That's fine. Looks like you've missed out the last step from the instructions (or it failed for some reason):
Code:

ln -s /home/var/cache/apt/archives /var/cache/apt/archives
P.S. Ctrl+Shift+P will do a screenshot (without any extra software required).

Thanks a bunch. I was dreading the whole reflashing process and now I won't have to. :)

Nixmix 2010-02-16 16:44

Re: Tried to free root space, now can't uninstall programs
 
1 Attachment(s)
exact same thing just happened to me!
screenshot attached

What are the exact commands I have to type into root??
thanks for your help

seriouser 2010-02-16 16:45

Re: Tried to free root space, now can't uninstall programs
 
Quote:

Originally Posted by jcompagner (Post 529894)
move /var/lib/apt and /var/cache/apt both to /home/user/xxx (like apt-cache and apt-lib)
then symlink them both back in.

That will make sure that all the indexes and caches are stored on the 2GB space and not on root
that saves me 30MB of of root.

Could you maybe elaborate a bit on the commands since I'm a total linux noob :/

Rob1n 2010-02-16 16:47

Re: Tried to free root space, now can't uninstall programs
 
Quote:

Originally Posted by Nixmix (Post 529912)
exact same thing just happened to me!
screenshot attached

What are the exact commands I have to type into root??
thanks for your help

The command you need is the same one I gave above:
Code:

ln -s /home/var/cache/apt/archives /var/cache/apt/archives

Bratag 2010-02-16 16:52

Re: Tried to free root space, now can't uninstall programs
 
Just be aware if you make these changes - you will need to do them again after the upgrade - it doesn't honour the symlinks when doing the install - which makes sense I guess.


All times are GMT. The time now is 00:49.

vBulletin® Version 3.8.8