r/linuxquestions • u/Time_Job_8836 • Feb 27 '26
Support Since when does Linux just fucking reboot whenever it wants? Lost a month of work.
Seriously, what the hell is this? Since when did Linux turn into Windows?
I'm running Kubuntu and I came back to my PC today only to find it had rebooted without my permission. Yesterday, it was nagging me to restart because it decided to update the system on its own, and apparently, it just took the liberty of doing it for me while I was away.
I just lost a month of progress on a biochemical simulation. It was a non-savable model, and it’s all gone because the OS decided its "updates" were more important than my uptime.
I use Linux to avoid this intrusive, babysitting bullshit. If I wanted an OS that restarts whenever it feels like it, I would have stayed on Windows. Is there a way to kill this "feature" permanently, or do I need to find a new distro that actually respects the user?
Absolutely fuming right now.
The irony is that I was less than 24 hours away from completing the entire simulation.
EDIT: No worries, I am OK - wounds healed already - new lesson / know how learned, Just surprised after 13 month of Kubuntu usage. I will try to solve it by suggestions you mentioned. I love Linux either way, much better than newer Windows.
77
u/arcimbo1do Feb 27 '26
The configuration for unattended upgrades is saved in `/etc/apt/apt.conf.d/`, you can change a lot of things, including if you want a reboot or not after upgrade. As far as I know the default is to *NOT* reboot automatically (which makes sense), so is it possible that during installation it asked you and you said yes?
Regardless, I'm sorry for you, that sucks, but as I said this is not the default linux configuration, so either you approved a reboot the day before without noticing or you have some other issue on your computer (random reboot might be caused by faulty hardware).
31
u/yankdevil Feb 27 '26
I'd review your log files to see what caused the reboot. Might be a disk dying or a ram module dying.
107
u/sniff122 Feb 27 '26
That's an Ubuntu specific thing, not Linux as a whole. Different distros handle stuff differently by default.
You should be able to disable unattended-upgrades to prevent this from happening again
207
u/exportkaffe Feb 27 '26
unattended-upgrades is a Canonical "feature".
I wholeheartedly agree with you OP. It's a shit feature and more should be warned against it.
Here's a guide to remove it forever https://itsfoss.gitlab.io/post/how-to-disable-unattended-upgrades-on-ubuntu-2404/
11
u/PapaOscar90 Feb 27 '26
Sure it didn’t crash?
240
u/pv2b Feb 27 '26 edited Feb 27 '26
Unpopular opinion, but I think unattended upgrades and automated reboots are a *good* thing for most people, actually. It's a sensible default for people who don't care about their systems.
The reason Windows sucks in this case is because Microsoft insists that all people are most people, and doesn't let you disable upgrades without hacking their stuff. It's a good sensible default, but it needs to be an option. My computer - my decision to do stupid shit, thank you.
The real WTF here is that you're running a month-long simulation that isn't capable of saving its progress to checkpoints, and is only relying on the rock-solid stability of your hardware, power, kernel, etc, on a machine that appears to be your main desktop. I'm sorry, but that's not on the OS. Linux isn't a magical OS that has no bugs and never crashes. It's software, and just like all software it sucks.
Your long-running simulation absolutely does need to be able to save its progress. There's no way this isn't possible. Data is data. There's no magic in computers. If it's data it can be stored into a file.
38
u/yankdevil Feb 27 '26
I've used Ubuntu for over a decade, I have unattended upgrades turned on and I've never seen it reboot on its own.
9
u/Classic-Rate-5104 Feb 27 '26
Unattended upgrades do NOT reboot your system by default. So either you have changed this default or the reboot has another trigger (not related to upgrade, maybe hardware problem)
35
u/spryfigure Feb 27 '26
I get that you are annoyed.
A couple of remarks:
And even there, you need to meet a condition:
Upgrade::Automatic-Rebootin/etc/apt/apt.conf.d/50unattended-upgradesneeds to be set to"true";If it isn't set, the default is "false", so your system won't reboot automatically.
You could have had a brownout with a system restart, or your application encountered an issue and aborted.
Depending on your setup, both could look like a cold reboot to you.
Check if auto reboot is set first, before jumping to conclusions. I work with several (K)Ubuntu systems, none of them has ever rebooted without asking me first.
13
u/lewphone Feb 27 '26
I've been using Ubuntu for years, I've never had an automatic reboot. Maybe because it's a server install that's not running in GUI mode.
It's possible to disable automatic reboots on any OS, even Windows.
87
u/un-important-human white beard arch user Feb 27 '26 edited Feb 27 '26
I just lost a month of progress on a biochemical simulation. It was a non-savable model, and it’s all gone because the OS decided its "updates" were more important than my uptime.well you know why people (ok me:P) bash on ubuntu distro's hmmm by default unattended security updates are allowed and it has bugs. You did not know to uncheck it and ...
My suggestion is 1 either run your sims on a server you setup : fedora, debian server. or 2 change distro to something sensible (ie: nothing ubuntu based )
sorry for your loss
tl:dr ubuntu while linux does not act like linux because its ''beginner friendly", woe on those who fall for it.
pps:
example a fedora server or debian acting normally (i spun it up 51 days ago)
uptime 01:21:35 up 51 days, 9:26, 2 users, load average: 0.16, 0.18, 0.11
ppps: cannonical bad been bad still bad
6
u/dwhite21787 Feb 27 '26
I’ve never had an Ubuntu LTS do that to me in 20+ years of use
6
u/Name-Not-Applicable Feb 27 '26
I think maybe your system crashed rather than rebooting for updates. Murphy’s Law is STRICTLY enforced.
Because you’re right that an automatic reboot for updates, unless you set that up specifically (and it sounds like you didn’t), is very un-Linux-like.
15
u/Creative-Drawer2565 Feb 27 '26
If i had a month long simulation running, I would do it in the cloud, not on my laptop. I know there is added cost, but if you researched and got a solid setup that you could monitor the spending on, I think it would be a win.
My background, I've always had to manage long renders, fluid/gas simulations, and weigh running local vs having to implement a cloud solution.
How do you run a month long sim on your laptop, do you have to keep it from sleeping to keep running?
26
u/[deleted] Feb 27 '26
Fucking leave it to Ubuntu to have by default one of the main functions that people switch from windows for.
4
u/skreak Feb 27 '26
I work in HPC. What solver are you using and does it leverage MPI. If so you could probably spin up a few 64core AWC instances, knock it out in a few hours instead of a month and it may only cost you like 50 bucks for it.
4
u/CCJtheWolf Fedora 44 KDE Plasma Feb 27 '26
Hardware issues still happen on Linux. Systems do overheat lose power or memory runs out hence a crash. Really doing something like this on a laptop is dancing with the devil regardless of the OS.
30
u/JoeB- Feb 27 '26
Losing a month of work really sucks and I feel for you; however, Ubuntu is the “Windows” of Linux, so this wound was self-inflicted, unfortunately.
6
u/computer-machine Feb 27 '26
Sounds like Kubuntu has
unattended-updatesenables by default, while I've had to manually enable that on everything I've uses in eighteen years.3
u/sbszulu Feb 27 '26
Linux Mint does not have unattended-upgrades enabled by default even though it is based on Ubuntu.
3
u/RR321 Feb 27 '26
I've never had Ubuntu reboot on me by force over a decade of use, is Kubuntu the stupid edition?
Is it documented?
3
u/jihiggs123 Feb 27 '26
Maybe it crashed
7
u/sosaudio1 Feb 27 '26
Rule 1 in any thing you do in life is to retain control. So you installed an OS doesn't matter if it's winblows, macncheez, or Linux. You always run through it and figure out how the hell do I make sure I retain control over every aspect to remove gotchas. Hell I do not even allow windows to autosave office products. So in the future, find those and turn them off.
12
u/kilkil Feb 27 '26
dang, did not know Ubuntu was cringe like this.
I recommend you try KDE + Debian. It will be an extremely similar experience, since you're still using KDE and Ubuntu is a fork of Debian anyway. But Debian doesn't pull shit like this, lol.
2
u/billdietrich1 Feb 27 '26
Did the "nags" say something like "updates will be installed automatically in N days" ? The ones for Snap updates say something like that.
System Settings and search for "update".
2
u/Stoneybaloney87 Feb 27 '26
Backup backup backup backup backup.
2
u/0xd34db347 Feb 27 '26
I sympathize OP, I've learned similar hard lessons in the past, but the fact that you got bit by a working-as-intended feature instead of the million other things that can go wrong when running a server oriented task in a desktop environment is a testament to Linux. You could have been in here ranting about Linux's poor handling of low memory conditions when your sim got OOM killed after your notification daemon leaked memory for a month. You could come back to find your process just randomly zombified with no indication as to how or why, except for a random pipewire process pinned to 100% CPU on one core.
If you can't afford to lose a month's work you also can't afford not to create or provision an appropriate environment for the task, I'd hate to see you get trucked again by taking the wrong lesson from this.
2
u/cormack_gv Feb 27 '26
Weird. I don't recall doing anything special to prevent this.
$ uptime07:40:16 up 165 days, 17:12, 2 users, load average: 0.04, 0.03, 0.016
u/getbusyliving_ Feb 27 '26
This a good post to quote for the next "why do people hate on Ubuntu so much" question.
Unfortunately, what happened sucks absolute balls. This is an uneducated question; could you run the simulation across multiple nodes to speed it up or leverage some sort of external server farm to palm the work load off to?
5
u/FikaMedHasse Feb 27 '26
Never attribute to Linux that which is adequately explained by Ubuntu.
4
u/outer-pasta Feb 27 '26
Fedora would never do that.
3
u/LeckerBockwurst Feb 27 '26
OpenSuse has a very nice KDE implementation as well.
Just saying ;)
3
u/aas_me Feb 27 '26
This is the first time I'm hearing about ubuntu unattended-upgrades. This is Windows level bullshit. Glad I'm used to fedora
2
u/HecticJuggler Kubuntu Feb 27 '26
If you need technical help about this you probably should ask in r/ubuntu or r/kubuntu. I have used Kubuntu for the past 20 years and I don’t know it to behave like that. The settings to disable automatic updates are pretty straightforward & easy to locate.
2
u/ImagineEyes Feb 27 '26
Use Arch
2
u/Dunc4n1d4h0 Feb 27 '26
You did not save whatever your work is by whole month and you blame OS?
1
u/artmel2018 Feb 27 '26
Mint is a better version of Ubuntu these days.
1
u/edparadox Feb 27 '26
It's one of the non-sane defaults that I hate Ubuntu for, along with Mir, snap, etc.,
Among other things, those defaults made me switch many many years ago.
Either you change this setting, or change distribution.
1
u/ashleycawley Feb 27 '26
I’ve used Zorin OS for many years and never experienced this once, so can recommend that. Also I have Linux Mint on another system and I haven’t experienced it there either.
1
u/jessecreamy Feb 27 '26
anyone remember drama when Canonical purge leader of kubuntu flavour and it became a mess that time?
1
u/EverOrny Feb 27 '26
Ubuntu is working hard to make Windows users feel at home 🙄. Gentoo does not do such things, so not a Linux problem, just Ubuntu.
I've turned off the same crap yesterday, it kept me waiting after each update and installation, because two processes I don't care about are still using some old libs.
1
u/gsdev Linux Mint/CachyOS Feb 27 '26
I don't want to make you feel worse, but what does this mean? Surely anything that can be stored in RAM can also be stored on HDD/SSD?
1
u/mengsk8086 Feb 27 '26
I ditched Ubuntu 5 years ago and it was a good decision.
I use Debian for my server and production for its stability, Arch for my PC for its cutting edge features.
Well Ubuntu combines Arch's stability and Debian's features.
1
u/matthewpepperl Feb 27 '26
Dump the *buntu operating systems and use something else because canonical sucks i mean technically you can get rid of unattended-upgrades but you shouldn’t have to
1
u/NadJ747 Feb 27 '26 edited Feb 27 '26
Unless you're going to tell me you had a backup power source or two and that you glued and cable tied the power cable into your PC and that the room door was sealed shut with triple grade security, most of us will have little sympathy. A month's worth of unsavable work, that's not how we run life in 2026. It could've been a rogue neutrino that ruined your day, and caused a Kernal Panic for all we know...
https://www.reddit.com/r/speedrun/comments/kin8mm/are_singleevent_upsets_cosmic_ray_bit_flips_legal/
1
u/Environmental_Fly920 Feb 27 '26
I had that happen once, while I was working on something the system suddenly froze then logged out and went back to the login screen, I was told it was possibly a compatibility issue with the display manager I was using.
1
u/eggbean Feb 27 '26
If you need to do it again you could run your simulation on an AWS cloud instance with powerful CPUs and if your software is accelerated by GPUs as well you may be able to get it done in a few hours or even less.
1
u/OffDutyStormtrooper Feb 27 '26
This is more of a user problem than a Linux problem.
I call BS on the non-saveable model and if it is truly non-saveable then running it on a Desktop OS, Ubuntu based especially, is extremely dumb and user error not OS error.
Should be running it in the cloud, on a server version of Linux that IS intended for long term continuous operation, has power redundancy, has internet redundancy, etc.
1
u/dnabsuh1 Feb 27 '26
You may want to work with the people who designed the simulation to have them add checkpoints if it takes a month to process. There are any number of reasons a system could reboot, and the longer a system runs without an issue, the higher likelyhood SOMETHING will happen. (Power, OS, Software, Hardware,user,...)
1
u/chrishirst Feb 27 '26
If what you are doing must not be interrupted turn off EVERYTHING that could interrupt it is the sensible way.
1
u/ethernetbite Feb 27 '26
I do find it annoying that options like those are opt out instead of opt in, which is an issue windows has for sure. That Linux doesn't even ask at install is annoying, since Linux is supposed to be about choices. It's the main reason i use Debian Cinnamon instead of lmde, though lmde is 2nd only to kde plasma in refinement. There's also more and more services being installed and run automatically ( kde's evolution data server for one ) , which is another massive flaw in Windows design that is being implemented in Linux desktops.
I've been using Linux since before Lindows, and run my business and personal severs with it. I run it on my admin laptops as well. It's just sad that desktop envs are following in windows footsteps on these issues, without even asking users. Sure, you can still turn them off much easier than in Windows, but i really don't want to do a system analysis at every new install, but i have to anyway. And Don't get me started on kde's polkit implementation, about how network manager is a disaster when it comes to scripting with nmcli, or about how it's impossible to turn off ipv6 and have it stay off system wide. But even with these annoyances and time wastes, most Linux DEs are still far better than Windows. Btw, i use ... not arch. Lol ( iykyk)
1
u/No-Philosopher-4744 Feb 27 '26
You can try a server LTS distro which is designed for zero down time also a month is too much just check cloud GPU / TPU services (even free tier Google colab outperforms my Thinkpad) to make it faster and try to vectorize your code in general if you haven't done yet.
1
u/HappyHarrysPieClub Feb 27 '26
I’ve had an Ubuntu machine look like it just decided to reboot for no reason a few times before I discovered what it was. I was running Boinc and it downloaded some jobs that ran it out of ram. I watched it do it. It started running, then used all of the ram it had, expanded in to the swap, locked up and rebooted.
Maybe his job used up some resource like ram or a particular disk. I didn’t see him say that he checked any logs to see what caused it.
1
u/skyfishgoo Feb 27 '26
depending on how demeaning this simulation was on your system, it could have shutdown for thermal protection.
that's built into the microcode and has nothing to do with any OS.
1
u/Locksul Feb 27 '26
“Non-savable model” I highly doubt that.
1
u/Azelphur Feb 27 '26
This sounds more like a hardware issue than the OS rebooting your machine. Do you have a UPS for such important workload? there are many things that could have caused this, but like others have said automatic rebooting for updates is not a default.
This kinda screams rage bait, OP hasn't replied to a single comment.
1
u/[deleted] Feb 27 '26
1). This is why you should be running the server kernel and version, you can still slap a GUI on it. 2). If possible that software should have some type of check point mechanism, even HPC clusters break time to time. 3). If you can, does your employer or university have and HPC program? Sounds like you could benefit from their resources.
1
u/ji_ratul Feb 27 '26
Check your power supply please. Also check unattended upgrades settings. If you want uninterrupted operational stability and prolonged uptime, Debian has a great reputation for that. Most importantly, find a way to save your simulation progress if that takes that long.
1
u/rarsamx Feb 27 '26
Honestly I have no idea about your settings. No distribution has ever done that to me.
So, if your settings are: "automatic updates" plus "automatic reboot", then it's not on the OS, but your choice (or lack of choice) on the update settings.
Normally my computer is on auto sleep. If I'm runing something long, I disable it.
So, I'm sorry you had to learn the lesson this way. I hope you don't insist on blaming Linux for something that was user driven.
1
u/Dull_Cucumber_3908 Feb 27 '26
You need to disable unattended updates
1
u/EugeneNine Feb 27 '26
One of the reasons I run Slackware, nothing is done unless I do it.
1
u/atkr Feb 27 '26
skill issue
1
u/perfecthashbrowns Feb 27 '26
this is a great linux thread. the top minds of the linux world get together to hate on ubuntu based on misinformation / ragebait
1
u/vwibrasivat Feb 27 '26
Get a NAS and backup your simulation, bro. you'll be set back 80 bucks
1
u/Sinaaaa Feb 27 '26 edited Feb 27 '26
I think no classical Linux distribution is stable enough for unattended updates, even on Debian stable as long as the bootloader is the default grub I would never consider using this feature. Though do know if you used Debian this would've never happened. Even in Kubuntu's case in their defense you've been somewhat warned during installation & you did have the option to not have this there.
I'm a bit skeptical about the reboot part, as far as I recall this used to be a hidden feature, have they changed it? Are you sure it's not a cosmic ray bit flip causing a malfunction that ended up as a reboot? (or just hardware failure, instability)
1
u/worldcitizencane Feb 27 '26
It is not a "Linux thing" to update or reboot whenever it wants. My guess is either you're running some "for dummies" distro that set this up for you, with or without your permission, or you ran a dnf/apt upgrade, didn't reboot and the system crashed on it's own.
1
u/schnarfler Feb 27 '26
You need to have simulation code that saves snapshots it can recover from.
1
u/JackDostoevsky Feb 27 '26
s/linux/ubuntu
1
u/chasmodo Feb 27 '26
You are an idiot who doesn't know Google.
1
u/ptoki Feb 28 '26
it may not be a reboot for updates. Unless you have logs and see it was initiated by some update/upgrade script.
It may be memory or cpu/mb issue. Worth checking
1
u/Paleone123 Feb 28 '26
No offense, but any important work you do should be done on a server grade OS, on server grade hardware.
Ubuntu is fine, at least the server edition. I've been using it for years. Your actual problem is running your important work on a general use machine with a desktop environment. That just adds all kinds of additional possible failure points. If your software runs on a graphical environment, use RHEL or something similar that's designed to be rock solid.
1
u/SaintEyegor Feb 28 '26
We have long running models on our clusters that take months to complete. Even though the clusters are pretty stable, the users checkpoint periodically just in case bad stuff happens
1
u/Dry_Inspection_4583 Feb 28 '26
First: You're an idiot for not saving things... For a fucking month? Grow up.
Second: losing progress sucks ass, and I'm sorry you've lost the progress and further hope you can recover or reproduce it.
Third: save your shit, often and always save save save.
Fourth: don't blame anyone but you buddy, it sucks and it's a shitty lesson to learn, but you control this.
1
u/Distinct_Jury_8228 Feb 28 '26
I use Linux Mint and the only time that happened to me was after a power surge. Even a battery backup has a time limit. I’m down to one really old laptop with Windows 10 and I only use it sparingly.
1
u/arglarg Feb 28 '26
I don't have that problem on Gentoo. Not saying I don't have problems but not that one.
1
u/Critical_Ladder650 Feb 28 '26
You may be suffering from Canonical's IMNSHO bad decision to implement snap such that when a snap has an update, your system will shutdown and restart whatever is needed to apply that update 14 days after the update is made available, if you haven't done it yourself in that time.
Ubuntu distros (not coincidentally) use snaps for various important bits of software, some of which appear to change at least once a month.
I haven't let my Kubuntu 25.10 system stay un-rebooted long enough to see exactly what it will do when yet another Firefox update has been available for a whole 14 days. Maybe it will only shut down and restart firefox; maybe it will reboot.
The good news is that it's possible to turn off this misfeature.
https://snapcraft.io/blog/hold-your-horses-i-mean-snaps-new-feature-lets-you-stop-snap-updates-for-as-long-as-you-need
1
u/Curious-Intern-5434 Feb 28 '26
I have a VM that has been running for over a year now without restarting. Obviously the software running on it has been updated over a thousand times.
So I guess it depends on what you do with it and how it is configured.
My laptops and desktops that run Linux have never once automatically rebooted. I switched to Linux in the middle of 2024. If there ever was a reboot I had to confirm. Same for software updates.
That is my experience. But perhaps my scenario is the outlier and yours is the norm. 😀
1
u/BQE2473 Feb 28 '26
Stop using Unattended Updates. Set the levels (Critical, Security)to inform you when updates are available.
1
u/5pectre5 Feb 28 '26
Seriously, kubuntu? If you really want to be in control, then choose something that isn't coming from a greedy corpo. Debian or Arch or FreeBSD is your friend.
1
u/arthurno1 Feb 28 '26
Since you have configured it to do so. Mine has never rebooted randomly. Using Linux since 1999.
On a more constructive side, change to a distribution that requires you to learn more about how it works. Arch is to recommend.
1
u/Gabochuky Feb 28 '26
Op your simulation is shit if it can't save its own progress. How would you even let it run like that? What hapoens if there is a power outage?
1
u/ill_Powerbuilder Feb 28 '26
This doesn’t sound like normal behavior at all…
1
u/thefanum Feb 28 '26
Literally not a thing. Do hardware diagnostics
1
u/glow_gloves Mar 01 '26
HPC 101: support and use checkpoints for resilience against resource instability
1
u/VlijmenFileer Mar 01 '26
You must be using a clown distro.
1
u/hike_me Mar 01 '26
This is why long running simulations should periodically save their complete state to a checkpoint file that it can use to resume a simulation
1
u/signalno11 Mar 04 '26
Ubuntu's defaults are straight baffling. They've been for a while.
1
u/SuperSaint77x Feb 27 '26
One of many reasons not to use Ubuntu.
1
u/johncate73 Feb 27 '26
Canonical is the Microsoft of Linux these days. Sorry that happened to you, but I would not, at this point, ever trust a *buntu distro not to do something I didn't want it to do.
You can disable that behavior, but I simply would not trust them for something like this again. If you want something like Ubuntu that isn't Ubuntu and won't act like Windows, go to Debian, or Linux Mint Debian Edition.
1
u/AlexandruFredward Feb 27 '26
Imagine being smart enough to run these tests but not smart enough to turn off auto upgrades, and then having the audacity to blame the software instead of the user.
1
u/superdachs Feb 27 '26
Sounds Like Hardware Problem. Run memtest from USB Drive.
0
u/Itsme-RdM Feb 27 '26
This behavior isn't Linux, it's caused by your choice of "user friendly" distro who (like Windows) likes to make the decisions for you.
For your feature use, have a look at openSUSE, Debian (itself, not the forks) or Fedora. During your post installation configuration check and set everything, including updates, the way you want.
Linux itself doesn't reboot on its own.
-7
u/1neStat3 Feb 27 '26
sorry to break to you but this us user error.
As a Linux user YOU are responsible for your system
Both Windows and MacOS have unattended updates that you need to disable.
It's YOUR responsibility to learn YOUR system and not assume anything. This is why you choose to install Linux, to have control over your system.
I keep saying;
Linux is NOT Windows. Linux is NOT a product
Windows is a commercial product. As user youvare using their product.
Linux is NOT a product its a tool. It's YOUR responsibility to learn how to use it.
This is the Linux mindset. If you can't adjust from a product user to systemadmin then Linux will frustrate you to no end.
-2
u/linuxpaul Feb 27 '26
It might be that your machine is overheating.
0
u/BubblyMango Feb 27 '26
Ubuntu is no longer a good default option. It used to be king. Felt too comfortable and tried to become windows. Now all it has is its past's reputation
0
u/HeavyCaffeinate PuppygirlOS Feb 27 '26
Yeah that's a Ubuntu "feature"
0
u/djfdhigkgfIaruflg Feb 27 '26
Now you know one of the reason why so many people hate Ubuntu and it's derivates.
I'll choose a stable distro like Debian
-8
u/Effective-Job-1030 Gentoo Feb 27 '26
If you don't want automatic updates, don't enable automatic updates.