[SOLVED] too many unsuccessful flatpak updates lingered in this directory. It sorted itself out after rebooting the system.

var capacity 11.1 GiB, var usage 10.6 GiB

  • mlfh@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    15 hours ago

    apt-get clean will clear the apt cache and should give you enough temporary storage headroom on /var to do things, but if you’re bumping up on this limit often, you’ll need to reconfigure your storage.

  • Mactan@lemmy.ml
    link
    fedilink
    arrow-up
    14
    ·
    1 day ago

    why would var have such a restraint? reminds me of overly complex tutorials tricking people into elaborate partitioning schemes

    • mlfh@lemmy.sdf.org
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      8 hours ago

      /var is often where processes dump a lot of data (logs, databases, etc), and subpartitioning of /var sets a cap so that when too much data is dumped there, the application crashes instead of the whole system. /var/log is often recommended to be subpartitioned separately as well, so that logging can still go on if the application data fills up and crashes.

      These kinds of overruns can be intentional DOS attacks, also, so the subpartitioning is often a security recommendation. NIST 800-171 requires separate partitions for /var, /var/log, /var/log/audit, and /var/tmp

  • pollopolis@lemmy.ml
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    1 day ago

    Uninstall all the flatpak packages that are installed as system wide packages and install them as user packages, that way flatpak will use your /home partition. I had the same problem.

  • istdaslol@feddit.org
    link
    fedilink
    arrow-up
    4
    ·
    1 day ago

    Usually var gets full of old log files. So maybe delete some of those. Apt-cache is also a suspect

  • db2@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    19
    ·
    1 day ago

    dd if=/dev/zero of=/var

    But really, remove what you don’t use and/or stop using flatpak.

      • db2@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        9
        ·
        1 day ago

        That’s why I didn’t include any privilege escalation, even if someone ran it as is it would fail. But a warning is also appropriate, thanks.

        • bus_factor@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          1 day ago

          That doesn’t make it better.

          The first thing a novice user learns is to slap sudo in the front if they don’t have access to do something.

      • db2@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        1 day ago

        It would probably fail unless var was a block device actually. It wouldn’t turn a directory in to a file.