Nix uses a "generations" system where each new system update is a generation. meaning you can roll back. but you have to learn a new coding language to configure your system
because on nixOS, updates are atomic, so either the whole thing applies or it doesn't.
you can literally ctrl+c 90% of the way through a nixos-rebuild, and you'll be entirely fine. hell, because it already created most of the store items at this point, re-running nixos-rebuild basically re-starts from where you left off because it doesn't have to rebuild what it already did.
Once my laptop's battery died while it was generating the initramfs and building kernel modules. Couldn't boot. I had to boot from a live USB, mount the partitions, and finish the update via arch-chroot. It can happen, it's annoying, but to my knowledge shouldn't be that bad
You can always just do CTRL + PRINT + REISUB. I don't see the problem?
As long as pacman only downloads and doesn't install the updates (which the text implies, because you have to confirm with "Y" for installation, but that "Y" isn't mentioned in the OP text), you can just re-run it (maybe remove the lock file).
This is why offline updates exists in Fedora. There's probably some way to enable that in Arch as well, but I never bothered since I've never had Arch freeze before while I'm updating with pacman.
I've had great success by rebooting the system, switching to one of the shells at the login screen, and updating from there. I don't know if it helps, but I take a page from the Mechanicus on this one: if the process works, don't change it, and don't forget to murmur some prayers to the Omnissiah while you're at it
•
u/AutoModerator 6d ago
IMPORTANT: Subreddit Rules & Reminders
Please REPORT posts that violate any of the following rules!
Posts You Should Report
Tier Lists: Every tier list MUST include Hannah Montana Linux in S Tier, regardless of what the tier list is ranking.
Help by reporting
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
43
u/LRaccoon 6d ago
Why is everyone suggesting Nix in the comments? Also I've never had that issue updating Arch
6
u/InitialeLangmut 6d ago
btrfs snapshots: Am I a joke to you?
19
u/Bedu009 6d ago •
NixOS fixes this
4
u/das_menschy 6d ago
You can always just do CTRL + PRINT + REISUB. I don't see the problem?
As long as pacman only downloads and doesn't install the updates (which the text implies, because you have to confirm with "Y" for installation, but that "Y" isn't mentioned in the OP text), you can just re-run it (maybe remove the lock file).
4
u/Lou_Papas 6d ago
-Sybau
12
u/somelinuxuseridk ⚠️ This incident will be reported 6d ago •
something something nix solves this btw /j
3
u/keybing 💋 catgirl Linux user :3 😽 5d ago
ah, error: you cannot perform this operation unless you are root
2
u/Unhappy_Eye_14 6d ago
Skill issue
2
u/MarceltheKnight 6d ago
I have yet to break anything substantial. I’ve needed to remove a package or refresh the mirrors but never breaking things out right.
2
u/YakubReddit 6d ago
thx for reminding gonna update now
1
u/rotacni_anuloid Dr. OpenSUSE 6d ago
At last! The real fun begins!
1
u/rmyworld 6d ago
This is why offline updates exists in Fedora. There's probably some way to enable that in Arch as well, but I never bothered since I've never had Arch freeze before while I'm updating with pacman.
1
u/[deleted] 6d ago
Tomorrow it’s my turn to post this.
1
u/imfyn 6d ago
you need more u -Syuuuuuu
1
u/Xakaidax 6d ago
I just have everything as an isolated binary or appimage 🥱
1
u/Urist_McPencil 6d ago
I've had great success by rebooting the system, switching to one of the shells at the login screen, and updating from there. I don't know if it helps, but I take a page from the Mechanicus on this one: if the process works, don't change it, and don't forget to murmur some prayers to the Omnissiah while you're at it
1
u/pirateking1993 5d ago
I use Linux Mint so i don't have this issue. 🙃
1
u/According_Orange_729 1d ago
yeah on CachyOs. on arch I guess I haven't seen something like that for 2 years
1
u/Great_Banana_Master 💋 catgirl Linux user :3 😽 11h ago
XBPS my beloved
-7
u/LeateWonceslace New York Nix⚾s 6d ago edited 6d ago •
I've seen like 20 of these. Just use NixOS.
Edit: Cry about it.
0
u/Unique_Roll_6630 6d ago
I don't have this problem. But I also use Debian based PikaOS sooo.