Update advice for newer Archers
I wrote this up for a user requesting advice on "how to deal with update breakages", something I believe shouldn't be necessary to ask in the first place. But I'll share it here because I believe it could be useful information to help dispel common misconceptions about Arch and how it works. Spoiler alert: it's super easy, anyone can do it.
How do you handle system issues after update? What do you do in case something breaks? Snapshots? Any tools you can recommend?
Some advice
- Arch is reknowned for its commitment to upstream. They don't curate or alter packages much at all. This makes it a very vanilla experience. If you use defaults for everything, don't tweak much, use AUR cautiously, and read the update messages, these "Arch breakages" are purely a myth/overexaggeration. Granted I don't use many exotic packages on my Arch system, so maybe its reliability is just a reflection of my use case (not to mention I'm on AMD Ryzen which is known to be OOTB on Linux.) But what I can say is that with a little experience, Arch Linux is the least problematic operating system/distro I've ever used period.
- These "breakages" are generally these 3 things; 1. User altered something from their defaults and didn't properly carry over with updates 2. Hardware issue 3. Upstream bug (rare and not typically system breaking)
- When you update, look at what is being updated. If it looks like a significant update or something unfamiliar, do a little research. Check changelogs and GitHub issues. This will build familiarity with your system naturally with experience. It does not require a specific skill set, trust me, I cannot read a single line of code and I have been sailing smooth since like 2017. But I can read, and if anything is required it's spelled out on the front page. The only real hard part of Arch comes from the fact that you need to remember to update. I would say be mindful of whatever manual intervention is necessary but honestly I haven't had to do this in years apart from pacnews (and I guess the recent git migration which was announced weeks in advance), intervention on Arch is increasingly becoming a thing of the past.
- Don't consider blindly rolling back a safety net..usually all this does is buy you time to wait until the upstream bug is fixed. You'll just be sent back to an out of date system and will complicate things. It's better to look up what was updated beforehand so you don't encounter these in the first place, and only in the astronomically rare system breakage, with awareness of the development/commits of the package, should you consider rolling a package back. For example, I saw users doing this in relation to the GNOME package set- mutter-vrr wasn't ready for the 44 update, so users tried to hold all GNOME packages back to 43 to be able to keep variable refresh rate...you can imagine how that turned out. It's better to deal with the little bugs from updates with some awareness than to Frankenstein Pacman's phenomenal update algorithm. Again, vanilla is the best flavor :)
About this post
- Posted
- Archived
- Score
- 16 · 81% up
- Kind
- Text
- ID
- 14eq0vu
18 comments
I've been using Arch for approximately seven months now. I did have one update break the system - the recent Python update, which broke the whole system because it broke Optimus Manager and nothing would start. It took a long time to figure out, too. But that was the only time.
Optimus Manager is a legacy solution which is terrible and breaks things on its own anyway. Since Nvidia implemented Prime in its Linux driver, Optimus Manager / Bumblebee are not needed and are detrimental.
Many Nvidia issues here in this subreddit and the Archlinux discord were solved just by removing these applications.
I recommend you just remove it and any of its potential leftover changes done to xorg.conf's.
I like the idea of simply using Prime, but I also want it in a GUI format if possible. Any suggestions?
That is an AUR package which most likely needed to be rebuilt against newer python - see my other comment for additional thoughts on handling these kind of problems.
Also, as I'm sure you're aware the upstream developer of that package has stated [1] he can no longer develop the package - maybe someone will take it over.
[1] https://github.com/Askannz/optimus-manager/issues/543
Yes. That's correct. That's exactly what needed to happen. The tricky part was figuring out that it was that program that was causing the problem. If Optimus had simply stopped working, it would have been easy. But because the whole system didn't start, tracking it to this program was an issue.
But as I said, I agree that the problem with arch breaking is overblown. I have found it to be surprisingly and impressively stable, generally speaking, in the 7 months i've been using it. Here's to much longer.
I saw many users having issues with Python updates a few weeks ago but I guess I'm lucky to have evaded them. The only issue I can recall having with Python was once Lutris stopped opening, but it was due to python-cairo not being marked as required dependency. I reported the issue myself actually and it was fixed in like an hour.
Optimus Manager is in a way sort of tweaking your system isn't it? Or at least requires you to tweak some things to get it working like you want. I guess it depends how one defines "tweaking", for example would using CoreCTRL to change clock speeds be considered "tweaking the system"?
With the help of btrfs, it is very easy and efficient to create snapshots before an update, allowing you to quickly and effectively revert back to the pre-update state in case of any major issues. It is fast and efficient. However, I have only used this once on a production server when we were dealing with PostgreSQL and a planned and test update failed. In the end, we still reverted back from a virtualization backup.
I have never needed it on my desktop in X decades. Regarding the update of Python, it was necessary to call both manual and rebuild AUR, which many people forgot to do, and there were many recommendations floating around on Reddit. In the end, it was simple, and the small number of incompatible libraries were fixed within 24 hours.
Gnome is a world of its own, and I would rather not even mention it. There are plenty of better options available today for creating quality software. However, version 44 was much better than the failed deployment of version 43.
In principle, Arch cannot be destroyed because there is always a solution to fix it easily. The solutions are usually simple, or there is a quick alternative, which is invaluable for using up-to-date software. Today's CI processes and development have completely changed the perspective on current releases and stability. Fixed distributions may not even realize that the world has moved on. The handful of things that the new development doesn't have yet should consider how to transition to it. And it will be even better.
Been a Arch user since 2014 and it has never ever broken on me unless I wanted it to. Of course I RTFB daily.
I have been on Arch for almost 2 years now. I was on Arch for 5 years before and have never experienced a system break. When there is manual user interaction, the Arch maintainers make sure they write that on the first page of the www.archlinux.org. Users sometimes don't know how to read those latest news or install things that cause a system break.
I'm a noob, so I didnt change any config in my system and no problem while updating, for several months, I'm still a noob, and no problem
To look it up before an update - do you check the start page of arch, or use pacnews (which I haven't used yet) or what do you do?
I'm not using arch btw, but wanted to try for a longer time ;)
You can run 'pacman -Syu' and look over list of packages to be updated before hitting 'yes' and doing the actual update.
Or perhaps 'pacman -Sy; checkupdates'
where checkupdates is provided by pacman-contrib package.
Looking over the list is in general a good idea, but I don't see warnings about specific issues (like the one with grub for example), do I? Idk about Checkupdates, may be worth a look. Thanks anyways :)
Nice advice, but I think you missed being specific about the most common cause of problems, imho. 3rd party packages (typically from AUR).
Seems to me the 2 most likely sources of problems are:
The options for nvidia are
You can 'pacman -Syu' and if there is kernel update listed, then stop and investigate whether those 3rds party blobs are up to date enough to work with newer kernel before you update the kernel. You can also use pacman's "ignore" option to skip kernel updates until your 3rd party stuff is updated.
The options for AUR more generally are:
Since typical PKGBUILDs do not enforce rebuilds or have sufficient package version constraints or dependencies, this means you either need to forcefully rebuild (e.g. by bumping the package release) or use a tool such as mkpkg [1] to help simplify that and ensure packages are rebuilt whenever necessary.
For example if some package depends on python or python>3.9 then no rebuild will happen when python is updated to 3.12 when you do a makepkg. You need to deal with such cases. e.g. if using mkpkg then adding a line to PKGBUILD with:
would trigger a rebuild whenever python version has minor or major version update. You could alternatively have it trigger whenever python is installed more recently than the last time package was built.
On occasion, some AUR packages are simply not going to work with newer packages as they are incompatible for some reason. In that case you need to seek help (from package maintainer or it's upstream for example).
[1] https://aur.archlinux.org/packages/mkpkg
One AUR package I recommend to absolutely everyone: Informant
A news reader that interrupts pacman if there is an Arch news item you haven't read yet, effectively making you aware of any package that is known to break