Live data from Hacker News

Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

bugs.launchpad.net

151–160 of 175 posts

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#151
post #7
post #2

It's not just a bunch of people setting cm.swappieness to 0 is it? That behaviour changed and now prevents going into swap /ever/ where it used to mean go into swap as a last resort. Changing it to 1 fixes the issue and will act like the old behaviour or only swapping as a last result. Regardless, it's things like this why we never recommend people use Ubuntu - years of poorly packaged and tested software. If you wan…

Yeah, Ubuntu still keeps running out of space in /boot by filling it w old kernels in the default partition profile. A bug that I've been hitting since about 2011. In spite of their best efforts, it is not the "grandma friendly" quality software it hoped to be.

> In spite of their best efforts, it is not the "grandma friendly" quality software it hoped to be.

Grandma didn't customise her installation to put /boot in its own, small partition.

FWIW, you can run "apt-get --purge autoremove" to remove old kernels since at least 16.04 and maybe 14.04 (I don't recall). Not fully automatic, but at least it is one command. For fully automatic, you can install and configure unattended-upgrades and configure it to autoremove automatically.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#152
post #151
post #7

Earlier quoted context omitted.

Yeah, Ubuntu still keeps running out of space in /boot by filling it w old kernels in the default partition profile. A bug that I've been hitting since about 2011. In spite of their best efforts, it is not the "grandma friendly" quality software it hoped to be.

> In spite of their best efforts, it is not the "grandma friendly" quality software it hoped to be. Grandma didn't customise her installation to put /boot in its own, small partition. FWIW, you can run "apt-get --purge autoremove" to remove old kernels since at least 16.04 and maybe 14.04 (I don't recall). Not fully automatic, but at least it is one command. For fully automatic, you can install and configure unattend…

I don't remember when I first installed mine... 12.04 maybe? But this was the default/recommended partition plan.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#153
post #65
post #22

Earlier quoted context omitted.

Oh, I know it's easy to fix, I just single that bug out as "I have done nothing with this box but install updates and surf the web. I am Grandma. It breaks".

If you're Grandma you don't have /boot on a separate partition, you have all / on a big 120GB at least, so if you run out of space you simply know you've run out of space. Not perfect but not a problem for 90% of people I guess...

This was ubuntu's recommended/default partition plan. I did not customize it. Now, it's possible this is a plan they no longer recommend and have changed since I first installed Ubuntu, but the point stands:

I installed Ubuntu onto a machine, chose the recommended default options, and it set up a /boot partition that was quite small, and its normal update cycle fills it up and fails to fix the problem automatically or prompt the user with information to fix the problem.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#154
post #37
post #7

Earlier quoted context omitted.

Yeah, Ubuntu still keeps running out of space in /boot by filling it w old kernels in the default partition profile. A bug that I've been hitting since about 2011. In spite of their best efforts, it is not the "grandma friendly" quality software it hoped to be.

I downvoted you for "grandma friendly." My grandma remembers when LaTeX was "new" and was one of the first people to professionally use computer-based typesetting. What exactly does "grandma friendly" look like to her?

Fair enough.

I just use the term because I'm "family tech support" for multiple grandmas. I'll avoid that phrasing in the future.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#155

Earlier quoted context omitted.

Ubuntu installer has separate /boot partition by default. If you don't do anything special during installation you end up with it.

No you don't. Ubuntu's default partition map is one big / and one efi(if necessary).

I literally just did a BIOS install and it has a separate /boot.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#156

Earlier quoted context omitted.

Ubuntu installer has separate /boot partition by default. If you don't do anything special during installation you end up with it.

No you don't. Ubuntu's default partition map is one big / and one efi(if necessary).

I assume it changed recently, I've seen fresh 2014 installs with tiny 255MB boot partitions.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#157
post #11
post #7

Earlier quoted context omitted.

Yeah, Ubuntu still keeps running out of space in /boot by filling it w old kernels in the default partition profile. A bug that I've been hitting since about 2011. In spite of their best efforts, it is not the "grandma friendly" quality software it hoped to be.

My M.O. is: # apt-get update # aptitude full-upgrade # apt-get autoremove Because as far as I can tell, apt-get sometimes fails to actually update things, whereas aptitude can't autoremove. I'm sure there's a better way. This is my major gripe with the dpkg ecosystem. There are (AFAICT) multiple different tools to build dpgks and multiple different tools for updating your system, and none of them are adequately docum…

> apt-get autoremove

This is not going to autoremove kernels unless you modify the default preferences in /etc/apt/. For added benefit you should probably add --purge to your autoremove command.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#158
post #11

Earlier quoted context omitted.

My M.O. is: # apt-get update # aptitude full-upgrade # apt-get autoremove Because as far as I can tell, apt-get sometimes fails to actually update things, whereas aptitude can't autoremove. I'm sure there's a better way. This is my major gripe with the dpkg ecosystem. There are (AFAICT) multiple different tools to build dpgks and multiple different tools for updating your system, and none of them are adequately docum…

apt-get update won't do anything beyond download the latest view of the repository. you want: apt-get update && apt-get dist-upgrade && apt-get autoremove

Aptitudes full-upgrade is synonymous with dist-upgrade.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#159
post #149

Earlier quoted context omitted.

What does it do?

I tried it on Lubuntu 16.04; it required modification: # mystery one-liner from https://news.ycombinator.com/item?id=13513171 # dpkg -l 'linux-' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]\)./\1/;/[0-9]/!d' | xargs -p sudo apt-get -y purge # my corrected/improved version: noncurrent_kernel_pkgs() { dpkg -l 'linux-*[0-9]*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.\)-\([^0-9…

Sorry about that, the '*' got removed from a non marked up paste. You are 100% correct. Just a little script to remove all but the current unused kernels that I use on 14.04. Yep, just take the xargs off to see what it will remove (which would always be good advice when pasting a random script LOL ).

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#160
I finally switched my desktop to Xubuntu this week (from Win 10) after using it happily on the laptop for months.

Stability is, unfortunately, not great. Games exit unexpectedly, Firefox tabs frequently crash.

uname -r prints this exact kernel version so I assume I'm affected.

Post reply on HN