Bug 5746 - (int-144371) symlink /var/cache/apt/archives to /home/apt-archives
: symlink /var/cache/apt/archives to /home/apt-archives
Product: Settings and Maintenance
Application manager
: 5.0/(3.2010.02-8)
: All Linux
: Low normal with 8 votes (vote)
: 5.0/(10.2010.19-1)
Assigned To: unassigned
: application-manager-bugs
  Show dependency tree
Reported: 2009-10-23 16:19 UTC by Marius Gedminas
Modified: 2010-03-15 20:55 UTC (History)
10 users (show)

See Also:



You need to log in before you can comment on or make changes to this bug.

Description Marius Gedminas (reporter) 2009-10-23 16:19:38 UTC

1. Add the extras-devel repository to your N900
2. Try to sudo apt-get install openarena

openarena is installed

apt aborts saying that there's not enough free space in /var/cache/apt/archives
to download 300 megs' worth of debs.


I did the following:

  sudo gainroot
  apt-get clean
  mv /var/cache/apt/archives /var/cache/apt/archives.old
  mkdir /home/apt-archives
  ln -s /home/apt-archives /var/cache/apt/archives
  mkdir /var/cache/apt/archives/partial
  apt-get install openarena

and openarena was successfully installed.
Comment 1 Andrew Flegg maemo.org 2009-10-23 16:26:54 UTC
Sounds sensible. Should there be a common directory under /home for .../opt,
.../apt-archives and additional stuff in future?

/home/space (based on Marius' original suggestion)? Then we'd have /opt ->
/home/space/opt and /var/cache/apt -> /home/space/apt (note not just

In fact, isn't there an argument for the whole of /var/cache and /var/lib/dpkg
to go into /home/space/var?
Comment 2 Lucas Maneos 2009-10-23 17:43:33 UTC
I would vote for /opt since it's always available (we still want dpkg & friends
working when /home/user/MyDocs is mounted on a PC via USB for example) and less
prone to corruption.
Comment 3 Andrew Flegg maemo.org 2009-10-23 17:45:56 UTC
(In reply to comment #2)
> I would vote for /opt since it's always available (we still want dpkg & friends
> working when /home/user/MyDocs is mounted on a PC via USB for example) and less
> prone to corruption.

/opt is a symlink to /home/opt. No-one is suggesting putting anything under
/home/user/MyDocs AFAICT (VFAT => permission loss, and unmounted when used as
USB Mass Storage).
Comment 4 Lucas Maneos 2009-10-23 18:05:50 UTC
Sorry, ignore the previous comment, somehow I managed to confuse myself
completely  :-\

But yes, moving those trees into /home (== the 2G ext3 partition) would be a
good idea.  Maybe even go all the way and move the entire /var tree there?
Comment 5 Quim Gil nokia 2009-10-27 11:30:57 UTC
Isn't the problem that apt cache going to the rootfs partition risks to hit the
limit and this risk could be avoided redirecting these files somewhere in the

Not hitting the rootfs limit was the reason why we came up with the
optification, since end user won't care where are the files as long as things
work and the performance is right. The current location for apt cache seems
contradicting this principle. We got already some users hitting that limit just
because of vanishing cache fikles (count me in).

So I think this can be considered as a bug. Andre, do you mind cloning it in
the internal bugzilla? Thank you.
Comment 6 Victor Manuel Jaquez leal 2009-11-04 12:03:37 UTC
The hildon application manager uses (most of the time) /home/user/MyDocs
because in the partition with more available space.
Comment 7 Andre Klapper maemo.org 2010-02-17 21:24:54 UTC
*** Bug 8805 has been marked as a duplicate of this bug. ***
Comment 8 Urho Konttori 2010-02-18 21:43:04 UTC
Will be integrated to pr1.2 branch tomorrow.
Comment 9 Andre Klapper maemo.org 2010-03-05 13:48:42 UTC
Fixed (for the next version, if I got the internal ticket correctly).
Comment 10 Andre Klapper maemo.org 2010-03-15 20:55:58 UTC
Setting explicit PR1.2 milestone (so it's clearer in which public release the
fix will be available to users).

Sorry for the bugmail noise (you can filter on this message).