I propose the attached patch. In short : - /etc/cron.daily/apt is moved to /usr/lib/apt/maintenance.sh and I removed the random_sleep function - /etc/cron.daily/apt request to "at" to launch /usr/lib/apt/maintenance.sh after a random delay
There is another benefit : we are checking for battery operation only once. The package will require a dependency to "at". ** Patch added: "changes in /etc/cron.daily/apt and new /usr/lib/apt/maintenance.sh" https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1178943/+attachment/3680845/+files/apt-delayed-maintenance.diff ** Changed in: apt (Ubuntu) Status: Invalid => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1178943 Title: /etc/cron.daily/apt is holding memory while "sleep" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1178943/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs