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.

Nixmix 2010-02-16 16:53

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

Originally Posted by Rob1n (Post 529920)
The command you need is the same one I gave above:
Code:

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

tried that but still getting the not enough room in target location, however at least I can now uninstall apps :)

mrmoosehead 2010-02-16 16:54

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

Originally Posted by Bratag (Post 529934)
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.

Good job you pointed that out. Does make sense, but would have been an easy mistake to make.
:s

seriouser 2010-02-16 16:54

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

Originally Posted by Bratag (Post 529934)
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.

So how would I change back to the factory settings after following the guide? The same process in reverse?

I only want to free enough root space to update the OS and now I only have about 23 MB free.

Nixmix 2010-02-16 16:58

Re: Tried to free root space, now can't uninstall programs
 
FYI I have 31mb free on rootfts,surely that is enough?

Bratag 2010-02-16 17:03

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

Originally Posted by seriouser (Post 529939)
So how would I change back to the factory settings after following the guide? The same process in reverse?

I only want to free enough root space to update the OS and now I only have about 23 MB free.

After the update you will be back to factory settings. I guess what i was saying is if after the update you want the extra space still - then you need to follow these instructions again.

seriouser 2010-02-16 17:05

Re: Tried to free root space, now can't uninstall programs
 
So I tried

mv /home/var/cache/apt/archives /var/cache/apt/archives


but it gives an error message.

"mv: cannot rename '/home/var/cache/apt/archives': Invalid argument"

I'm looking to undo whatever I did by following the link on the first post http://www.nokiausers.net/forum/noki...ix-inside.html

seriouser 2010-02-16 17:07

Re: Tried to free root space, now can't uninstall programs
 
Even after having done all the things in this thread I still have only 23.4M free ( I checked with df -h ) I thought this process was supposed to free up some space?

Nixmix 2010-02-16 17:11

Re: Tried to free root space, now can't uninstall programs
 
woohooo!
disabling extras devel in applications catalog fixed it for me

seriouser 2010-02-16 17:20

Re: Tried to free root space, now can't uninstall programs
 
I've now got 39.5M and it's still not enough. I already disabled extras-testing.

StOoZ 2010-02-16 17:23

Re: Tried to free root space, now can't uninstall programs
 
Well i tried almost anything but to no avail,the best solution is to reflash,thats what i did

seriouser 2010-02-16 17:25

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

Originally Posted by StOoZ (Post 530017)
Well i tried almost anything but to no avail,the best solution is to reflash,thats what i did

Damn. Have to do that then.


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

vBulletin® Version 3.8.8