How have your guys arch system break and how you fixed it?
Hey guys it's as the title was I installed arch for the first time a few weeks ago and I'm probably never leaving lol. So I know general maintenance is kind of a given in arch so I'm kind of meaning like when you perform a upgrade and something breaks during the upgrade how did you find and fix the problem that kind of thing, I have read the "System Maintence" page on the wiki but I also kind of want a person who's experienced it tell me what they did so I can learn from it.
Sorry if this seems kind of stupid I just want to learn
About this post
- Posted
- Archived
- Score
- 3 · 64% up
- Kind
- Text
- ID
- kt67sb
14 comments
Bad sector on my laptop's hard drive happened to contain, atleast a part of, a very important file... libssl.so (I know, what are the chances!)
Everything failed to start if I remember correctly after the TTY login. No curl, no pacman, no ssh. The system would hang, hangcheck timers would go off, utilities depending on it would segfault.
Not checking dmesg left me spending a good hour browsing forums to see if anyone else had issues assuming that the last Pacman -Syu had gone bad. Eventually dmesg showed the media errors and it was clear which file it was talking about and then it made sense.
Fortunately I keep a 2GB partition on my disk with archlive as a recovery environment. Booted into that, mounted rootfs, deleted the file, ran fsck, badblocks, restored libssl from online pacman archives and then it was all good.
I still wonder to this day what were the chances of that ever happening again on other devices.
I don't remember the last time I broke it on accident, but usually when I do it on purpose (and probably on accident too), I just reinstall a couple packages, update and it's fixed. Other times I just fix 1 or 2 config files and it's fixed.
Now Windows on the other hand...
So I have two ways to "fix" it
if everything else won't work I also have complete image backups of my drives on an external HDD as a life insurance
Just the other day I tried starting jupyter-lab and a dependency was broken so I just went into the pacman cache and downgraded the relevant package. That worked and the next update fixed it. These things happen from time to time on a rolling release.
I've had much more severe breakages before too but (most) I can't really blame on Arch. Basically, just keep good backups and a live USB handy.
Thanks for the advice it is appreciated!
Also keep in mind that anything from the AUR could need to be rebuilt after a dependency update and there's no notification or anything indicating that this is will happen until shit starts breaking.
I accidentally ran sudo find / -delete. I fixed it by reinstalling
Sddm 0.19.02 broke my ability to login, the desktop manager just wouldn't start anymore. I had to downgrade to 0.18 and have kept it there ever since.
I might try to figure out why it broke but atm I'm not interested in trial and error. Maybe there's a fix already or it's some configuration file.
I had to manually reload iwlwifi after the linux 5.10.4 update.
Oh I would have actually wrote the post I just made as a comment here if I knew this post existed, I was on the fence if it warranted a post or not.
In any case, I corrupted my partition table and ignoring some other details used parted to get the table back, systemd-boot to reinstall itself and pacman to complete the half-finished update.
https://www.reddit.com/r/archlinux/comments/kt8nil/corrupted_my_partition_table_the_other_day/
My most important rescue techniques:
working knowledge of chroot (arch-chroot on package arch-install-scripts) most often from live media.
booting into Single user mode by changing the linux command line in grub.
Yet, I can't recall the last time my system required any of these techniques. Arch runs well. Beware of "stability" FUD.
I believe the only time I broke my system enough to need a bootable USB to fix the issue was when tally2 was removed in favor of faillock and I didn't pay attention to the fact pacman left my PAM configuration unchanged in /etc because of changes I had made to it. The result was that I could not login anymore after reboot.
The problem was quite obvious once I had a shell, but I've learned two things in the process:
Apart from that, I've only had minor breakages here and there because of upstream bugs (Linux kernel, LXC…) or packages with missing dependencies. Knowing how to downgrade a package in such cases is the key to having things work again quickly. Backward compatibility issues with upstream (LXC, AwesomeWM, Emacs…) and outdated AUR packages have caused some minor annoyances as well, but there's nothing really specific to Arch there.
I might have avoided other breakages by being subscribed to the arch-announce mailing list (low volume and 100% worth it).
Addendum: I forgot to mention that I use etckeeper since forever and that it's quite handy to understand why something broke at some point in time.
I screwed with the fstab to try to mount a drive on boot. Fixed it through live usb