On Mon, Jan 13, 2025 at 01:10:11PM -0800, Andy Tai wrote: > Hi, I run into a situation where every time I do > > guix pull > > the guix command seg faults. I think this was due to a change last year > that was causing the guix command to crash and then a quick note was issued > from the guix team on how to fix or to restore the guix command to a > working state... anyway, right now off hand I don't have reference to that.
Hm, that sounds bad. But hard to help without more detail. > (I am running guix on a foreign distribution, Ubuntu) > My guix daemon is working fine as I just upgraded it with > > sudo -u guix pull Hm, I doubt this is related to the segfault, but why '-u'? $ sudo --help [...] -u, --user=user run command (or edit file) as specified user name or ID It errors out unless you have a user named 'guix', and then it would run the command `pull`. I use either '-i , --login' to log in as root, or I'd use '-E , --preserve-env' to elevate privilege while running it as your regular user. > My question is, how to "reset" my guix default user profile to a working > state? I am not doing anything special in this profile but just update it > regularly to run latest guix packages. I'd find a working copy of Guix in '/var/guix/profiles/per-user' and use that. For example, all the old 'current-guix' profiles of root are found in '/var/guix/profiles/per-user/root' You can even find old profiles that have been removed from your profile history but not yet garbage collected like this: `echo /gnu/store/*-profile/bin/guix` ... and try using those. `echo` is usually faster than `find` for searching in the store.