Hi,

Florent Georges <[email protected]> writes:

> Thank you!
>
> I did a "guix pull", then "guix install node", and "guix package
> --list-generations" finally showed something consistent.  Hooray!
>
> But...  The version installed is very old, it has been updated in Oct. 2021
> (and many times since then):
> https://codeberg.org/guix/guix/commit/f3cd70ff8c60ce51dfe8e37365caf1c787fcf62c
>
> I tried pulling, upgrading, package -u 'ing, but it stays the same.  The
> strangest thing is that Guix itself tells me to do a "pull" and a "package
> -u", I do, but it has no effect:
>
>> *guix pull*
> Updating channel 'guix' from Git repository at '
> https://git.savannah.gnu.org/git/guix.git'...
> Authenticating channel 'guix', commits 9edb3f6 to 520ba1b (59 new
> commits)...
> guix pull: warning: pulled channel 'guix' from a mirror of
> https://git.guix.gnu.org/guix.git, which might be stale
> Building from this channel:
>   guix      https://git.savannah.gnu.org/git/guix.git 520ba1b
> [...]
>
> New in this revision:
>   15,674 new packages: 9base, 9yacc, a2jmidid, aacircuit, aardvark-dns,
> abc-yosyshq, abjad, abjad-ext-nauert, abjad-ext-rmakers,
>     ablorb, abstractdark-sddm-theme, ack, …
>   8,015 packages upgraded: [email protected], [email protected], [email protected],
> [email protected], [email protected], [email protected], [email protected],
>     [email protected], [email protected], [email protected], [email protected],
> [email protected], …
>
> News for channel 'guix'
>   Linux-libre 6.16 now available
>
> hint: Run `guix pull --news' to read all the news.
>
>> *guix install node*
> guix install: warning: Consider running 'guix pull' followed by
> 'guix package -u' to get up-to-date packages and security updates.
>
> The following package will be installed:
>    node 14.16.0
>
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> 20.6 MB will be downloaded
>  c-ares-1.16.0  123KiB
>                          1.2MiB/s 00:00 [##################] 100.0%
>  google-brotli-1.0.9  307KiB
>                          1.7MiB/s 00:00 [##################] 100.0%
>  icu4c-67.1  9.0MiB
>                         1.8MiB/s 00:05 [##################] 100.0%
>  libuv-1.40.0  97KiB
>                          2.8MiB/s 00:00 [##################] 100.0%
>  node-14.16.0  10.1MiB
>                          1.1MiB/s 00:09 [##################] 100.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> The following derivation will be built:
>    /gnu/store/6hrp4xf4bm3kbns4iik4f35vi247ca1p-profile.drv
>
> 0.1 MB will be downloaded
>  c-ares-1.17.1  126KiB
>                          957KiB/s 00:00 [##################] 100.0%
> applying 1 graft for
> /gnu/store/2q2x076r8pjdqiyh8cmfy7ndfa8qplig-node-14.16.0.drv ...
> building CA certificate bundle...
> building fonts directory...
> building directory of Info manuals...
> building database for manual pages...
> building profile with 1 package...
>
>> *guix package --list-generations*
> Generation 1 Sep 02 2025 20:54:18 (current)
>   node 14.16.0 out /gnu/store/s9dawdas9g3a4889w37v4azsar81r0lp-node-14.16.0
>
>> *guix pull*
> Updating channel 'guix' from Git repository at '
> https://git.savannah.gnu.org/git/guix.git'...
> guix pull: warning: pulled channel 'guix' from a mirror of
> https://git.guix.gnu.org/guix.git, which might be stale
> Building from this channel:

Even this is an indication of running an old guix as it doesn't expect
git.guix.gnu.org/guix.git to be the main url.

>   guix      https://git.savannah.gnu.org/git/guix.git 520ba1b
> Computing Guix derivation for 'x86_64-linux'... -
> nothing to be done
> New in this revision:
>   15,674 new packages: 9base, 9yacc, a2jmidid, aacircuit, aardvark-dns,
> abc-yosyshq, abjad, abjad-ext-nauert, abjad-ext-rmakers,
>     ablorb, abstractdark-sddm-theme, ack, …
>   8,015 packages upgraded: [email protected], [email protected], [email protected],
> [email protected], [email protected], [email protected], [email protected],
>     [email protected], [email protected], [email protected], [email protected],
> [email protected], …
>
> News for channel 'guix'
>   Linux-libre 6.16 now available
>
> hint: Run `guix pull --news' to read all the news.
>
>> *guix upgrade*
> guix upgrade: warning: Consider running 'guix pull' followed by
> 'guix package -u' to get up-to-date packages and security updates.
>
>> *guix package -u*
> guix package: warning: Consider running 'guix pull' followed by
> 'guix package -u' to get up-to-date packages and security updates.
>
> Any clue about this?  Because I am stuck in 2021, and it feels like
> different times already :/

Yes. It seems you aren't using the newly pulled guix. See output of
`guix describe`, what commit does it show?

To see what guix you're using, `type -p guix`. It should say
$HOME/.config/guix/current/bin/guix to get the proper guix. If it
doesn't, that's the problem. I presume it will show /usr/bin/guix for
you.

To fix this... depends on where the error is. If you've already used
guix in the past and you didn't touch the
/var/guix/profiles/per-user/$USER/current-guix* files, I am quite
surprised you would get this issue. First thing you can try is relogging
as you might get the env vars for the profile. If that won't help,
you're somehow missing the
`GUIX_PROFILE=$HOME/.config/guix/current; . $GUIX_PROFILE/etc/profile`
that should be ran on login. This is usually in /etc/profile.d/XX-guix.sh
(forgot the number).

At least temporarily you can just do manually
`GUIX_PROFILE=$HOME/.config/guix/current; . $GUIX_PROFILE/etc/profile`
if you won't be able to figure out what the issue currently is.

You can always use the `guix describe` to debug what version of guix
you're actually using.

On the off chance that `type -p guix` actually prints
`$HOME/.config/guix/current/bin/guix`,
that would mean you're pulling an old guix version, and you would need
to update the commit you pull in channels.scm.

Rutherther

>
> -- 
> Florent Georges
> H2O Consulting
> http://h2o.consulting/
>
>
>
>
> On Tue, 2 Sept 2025 at 15:47, Rutherther <[email protected]> wrote:
>
>> Hi,
>>
>> On September 2, 2025 11:09:35 AM GMT+02:00, Florent Georges <
>> [email protected]> wrote:
>> >Hi,
>> >
>> >> Yes, that is expected, you cannot list something that doesn't exist. But
>> >> you shouldn't have removed only guix-profile, you need to remove all
>> >> `guix-profile*` files to remove all generations. (ie
>> >> guix-profile-1-link) You need to install
>> >> something to recreate the profile and then you will have new generation.
>> >
>> >I see, thank you.
>> >
>> >Last question before I delete all "guix-profile-*-link"...  They all point
>> >to "/gnu/store/xxxx-profile" directories, which collectively take a huge
>> >amount of disk space.  Can I delete them as well, or just the soft link?
>>
>> No, never delete stuff under the store manually. After everything stops
>> pointing to it, guix gc will remove it. Remove only the links.
>>
>> >And if I do, can I delete "current-guix-*-link" as well?  I am the only
>> >user on the machine.
>>
>> Except for cases like this where something is not working right, I would
>> advise against deleting stuff in /var/guix/profiles/per-user. Just use the
>> guix commands for that, current-guix is managed by guix pull, so guix pull
>> --delete-generations.
>>
>> Rutherther
>> >
>> >Regards,
>> >
>>

Reply via email to