Score:0

Hard reboot corrupted/removed my Qt library. Couldn't run GUI apps

sz flag

A little over a week ago I had an issue. My monitor didn't detect my system (Ubuntu 22.04), so I did a hard restart. Unfortunately this caused a problem:

Konsole terminal closes immediately because it cannot locate system icons

I think the hard restart corrupted my Qt5 library, meaning I couldn't run Konsole, or P4Merge etc. Not knowing what else could be wrong, I ended-up manually re-installing the OS.

Is this a known issue with Ubuntu/Linux? It freaked me out to the point I'm now looking at UPS devices. I've hard-restarted Windows (7) for many years and never had a problem. Is Ubuntu/Linux that fragile?

If this did happen again, are there better ways of "repairing" Ubuntu?

guiverc avatar
cn flag
Why did you do a *hard reset*? Why not safely shutdown? via SysRq commands direct to kernel etc... as these allow you to sync file-systems, reboot/turn-off & more via direct command to the Linux kernel (ie. Linux specific and not specific to Ubuntu) bypassing any stuck UI/GUI etc... all it requires is a real keyboard (*meaning you can't use on-screen GUI keyboard like on an android phone etc*). You can also re-install Ubuntu Desktop systems without loss of data files, and having the *manually installed* packages (ie. those you added) also re-install automatically; so re-install is quick..
guiverc avatar
cn flag
If you *force* reset without ***clean*** shutdown (inc. power outage etc); I'd not reboot into the system until I've performed file-system checks anyway... If any errors are detected they'll be fixed, and after that I'd expect normal reboot to my normal system without any problems... My current system is ~new, but my prior old [2009 dell] died late last year, but it had 10+ *release-upgrades* during its life before the PSU died & I finally replaced it; no re-install was required, which is what I'd expect from a Ubuntu system (& mine was a really bloated one too!)
mezamorphic avatar
sz flag
@guiverc "Why did you do a hard reset?" I couldn't see the screen
mezamorphic avatar
sz flag
@guiverc But either way, surely a hard-restart is sometimes required, like if a machine freezes etc?
guiverc avatar
cn flag
If a *hard restart* is required you've a 50% chance of power or hardware failure occurred in my experience; ie. that's useful detail that tells you need to check your hardware (you still should use SysRq first as responses to commands gives detailed knowledge as to problem!). *hard restart* is required due to software on a kernel panic which is usually evident on the screen etc & thus kernel can't respond to SysRq commands where you'll need to hardware-restart there too but mostly this is result of a poor change made in the prior session which you should know about & be on lookout for
guiverc avatar
cn flag
You don't need a GUI/UI to use sysrq; as it's commands direct to the kernel & bypass any UI/GUI/terminal etc; the hardware (*if you can see it, but SysRq commands need to be entered directly into machine via direct terminal*) will provide clues as to response in most cases (*though location; eg. noise changes of a single box in a rack of many in a room of many racks can still make it hard, but usually recognizable*) regardless it allows you to command kernel directly & gain knowledge from the responses as kernel speaks to hardware thus machine itself can provide the clues.. GUI/UI irrelevant
mezamorphic avatar
sz flag
If I ever have this problem again, what is it I should do? Put the Ubuntu installation drive back in, run the installer but choose a different option? And what will this keep/destroy?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.