"Cannot allocate memory" when upgrading

Or add a swap file or increase the size of your swap file.