[Bug 1958811] Re: If apt installs snap package, then show size of it
Well yes, we don't keep track of per-directory levels of Installed-Size, Installed-Size means /usr (or /boot for linux-image). So we can extend this to Installed-Size-Boot Installed-Size-Var Installed-Size-Opt (and/or Extra-Size-*) which I guess would solve all the big use cases. We can't have an open set of to enumerate I believe for performance reasons the way stuff is set up with the parser and the hash functions. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958811 Title: If apt installs snap package, then show size of it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1958811/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1958811] Re: If apt installs snap package, then show size of it
> Note that APT measures the space of /usr when it checks if enough space is available, and not /, but snaps install to /snap /snap is just a bunch of mountpoints. Did you mean /var or more specifically /var/lib/snapd/snap here? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958811 Title: If apt installs snap package, then show size of it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1958811/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1958811] Re: If apt installs snap package, then show size of it
I think this ties in to similar issue with the boot size we have in Debian; maybe we should have Extra-Size as a field in the snap2deb. But certainly we don't want to query snapd from inside APT; snapd would need to query the store and at this point of the process users expect an immediate response. So the deb when building should figure out the snap size, add 10% to it for safety and store it in a field. Note that APT measures the space of /usr when it checks if enough space is available, and not /, but snaps install to /snap. We don't have a general purpose way to specify per location space requirements, only a single Installed-Size field currently. ** Changed in: apt (Ubuntu) Status: Invalid => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958811 Title: If apt installs snap package, then show size of it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1958811/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1958811] Re: If apt installs snap package, then show size of it
https://github.com/canonical/snapd?tab=readme-ov-file#get-involved says the correct place to file bugs for snapd is https://bugs.launchpad.net/snapd/+filebug -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958811 Title: If apt installs snap package, then show size of it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1958811/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1958811] Re: If apt installs snap package, then show size of it
Environment: Xubuntu 24.04 LTS x86-64 Steps to reproduce: Open a terminal and enter this command df sudo apt install chromium-browser df Actual results: The used disk space increases much more than APT's misleading diagnostic claims. After this operation, 105 kB of additional disk space will be used. Expected results: APT calls `snap info chromium` to report that the transitional package is about to install a snap that occupies well over a hundred megabytes of disk space. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958811 Title: If apt installs snap package, then show size of it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1958811/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1958811] Re: If apt installs snap package, then show size of it
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: snapd (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958811 Title: If apt installs snap package, then show size of it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1958811/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1958811] Re: If apt installs snap package, then show size of it
** No longer affects: chromium-browser (Ubuntu) ** Changed in: apt (Ubuntu) Importance: Undecided => Wishlist ** Changed in: snapd (Ubuntu) Importance: Undecided => Wishlist -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958811 Title: If apt installs snap package, then show size of it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1958811/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1958811] Re: If apt installs snap package, then show size of it
** Package changed: snap (Ubuntu) => snapd (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958811 Title: If apt installs snap package, then show size of it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1958811/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1958811] Re: If apt installs snap package, then show size of it
Arguably people could hack in an override for Installed-Size when building the deb somehow to give a rough estimate, but might not be worth the effort. ** Changed in: apt (Ubuntu) Status: New => Won't Fix ** Changed in: apt (Ubuntu) Status: Won't Fix => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958811 Title: If apt installs snap package, then show size of it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1958811/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs