Not enough free space in /var/cache/apt/archives



  • Hi,

    I just got my M10 installed with Xenial release candidate 4 version.
    I wipe it so it is empty.

    I want to try to install some packages via apt-get install, so I make it writable following these steps.

    But when I try to install I get the following error.

    phablet@ubuntu-phablet:~$ sudo apt-get install sl
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    sl
    0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
    Need to get 23.5 kB of archives.
    After this operation, 71.7 kB of additional disk space will be used.
    E: You don't have enough free space in /var/cache/apt/archives/.

    I looked how partitions were being used (df -h)

    /dev/disk/by-partlabel/userdata 9.2G 3.0G 6.2G 33% /userdata
    /dev/loop0 2.0G 1.9G 0 100% /

    So the problem seems to be / partition is full since the very beginning.

    Other people are facing similar issues, but it seems we haven´t find the solution yet.

    Any suggestions?



  • @gb making the system rw is not really a good idea for many reasons. If you want to use apt it's better to do it inside a contained environment, like Libertine for example.

    https://docs.ubports.com/en/latest/userguide/dailyuse/libertine.html



  • Thanks for the tip @advocatux
    I followed the instructions and I have a container working and I could install packages.



  • Any solution to this? I don't want to use this workaround because I want to use the system as natively as possible. Ideally, I would prefer to not have unnecessary /dev/loop partitions in the first place.


Log in to reply
 

Looks like your connection to UBports Forum was lost, please wait while we try to reconnect.