Skip to content

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

3 points14 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 64% up
Kind
Text
ID
kt67sb

Author

13
posts
27
comments
0
media
View profile

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.

3 points

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...

2 points

So I have two ways to "fix" it

  • rollback on my last btrfs snapshot (automatically taken while upgrading)
  • boot an archiso, chroot into the system and fix it or revert my last change

if everything else won't work I also have complete image backups of my drives on an external HDD as a life insurance

2 points

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.

1 points

Thanks for the advice it is appreciated!

1 points

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.

2 points

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.

1 points

I had to manually reload iwlwifi after the linux 5.10.4 update.

1 points

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.

1 points

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:

  • I now pay extra attention to *.pacnew files after update (always run pacdiff);
  • I now know that I can edit the grub config at boot time to set init to /bin/bash to fix similar problems without needing a bootable USB drive.

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.

1 points

I screwed with the fstab to try to mount a drive on boot. Fixed it through live usb

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.