When extensive tweaking goes wrong, Timeshift can recover your Linux installation.