all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ben Sturmfels <ben@stumbles.id.au>
To: 25775@debbugs.gnu.org
Subject: bug#25775: Can't install packages after guix pull
Date: Tue, 11 Apr 2017 11:01:04 +1000	[thread overview]
Message-ID: <58EC2AD0.3060405@stumbles.id.au> (raw)
In-Reply-To: <87shn7xjas.fsf@elephly.net>

[-- Attachment #1: Type: text/plain, Size: 3073 bytes --]

On 22/02/17 09:36, Ricardo Wurmus wrote:
> 
> Ben Sturmfels <ben@stumbles.id.au> writes:
> 
>> On Tue, 21 Feb 2017 09:52:11 +1100
>> Ben Sturmfels <ben@stumbles.id.au> wrote:
>>
>>>> Could I trouble you to walk through the steps for manually
>>>> installing a different version of guix-daemon? I'm stuck in the
>>>> same situation where I can't `guix package --install`.  
>>>
>>> (Also can't `guix pull` without an error)
>>
>> I'm attempting to fix my GuixSD system by downloading Guix
>> 0.12.0 Binary, extracting and running guix-daemon, then running `guix
>> pull` against that. The daemon runs ok, but `guix pull` is expecting
>> its dependencies to be at /gnu, when they're actually at
>> ~/Downloads/gnu. Any suggestions?
> 
> How did you end up having dependencies outside of /gnu?  All Guix
> packages depend only on things inside the store.  If you want to use
> substitutes you cannot avoid /gnu.

Sorry for the late reply. I had dependencies outside of /gnu
because I was attempting to upgrade guix-daemon without messing with the
nice clean read-only mounted /gnu/store filesystem. Turns out I didn't
use that approach in the end and used "rollback" instead.

I realised that the recovery steps in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25775#35 were more for
Guix on a foreign distro.

For anyone else on GuixSD who can't `guix pull` or `guix package
--install` due to older guix-daemon mismatched with newer guix installed
for root, here's how I fixed my system:

1. I had a number of system generations available so I rolled back to
one before I ran the problematic "sudo guix pull", with `guix system
list-generations` and `guix system switch-generations`.

2. Ran `sudo guix pull
--url=http://git.savannah.gnu.org/cgit/guix.git/snapshot/afd532337.tar.gz`
to get the last version of guix compatible with older daemons.

3. Ran `sudo guix system reconfigure myconfig.scm`, which upgrades
guix-daemon. Note that `guix package --upgrade` as root doesn't upgrade
guix-daemon on GuixSD. Note also that I ended up reducing the services
in this config to just "%base-services" to avoid hours of unnecessary
compiling, when I really just needed guix-daemon. Ended up having to do
it in a virtual terminal.

4. Reboot and verify that I had an 0.12 version of guix-daemon running.

5. Ran `sudo guix pull` and `sudo guix system reconfigure myconfig2.scm`
to restore my full desktop services and upgrade system infrastructure to
latest version.

6. For good measure, ran `sudo guix pull` and `sudo guix package
--upgrade` to bring root's guix tools up to date (actually had zero
packages installed for root).

7. Ran `guix pull` and `guix package --upgrade` as my normal user to
update that too.

My actual path took a lot more than 7 steps, so I hope I got those
instructions right. ;)

Reinstalling probably would have been faster, but I've learnt a lot more
about how GuixSD works, and it's satisfying and reassuring to be able to
fix things by rolling back!

Regards,
Ben






[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2017-04-11  1:02 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-17 16:04 bug#25775: Can't install packages after guix pull sirgazil
2017-02-18 11:11 ` Pjotr Prins
2017-02-18 14:29   ` Pjotr Prins
2017-02-18 15:35   ` Ricardo Wurmus
2017-02-18 16:18     ` Pjotr Prins
2017-02-18 16:30       ` Pjotr Prins
2017-02-20  8:31         ` Tomas Cech
2017-02-20 22:44         ` Ben Sturmfels
2017-02-20 22:52           ` Ben Sturmfels
2017-02-21  2:20             ` Ben Sturmfels
2017-02-21 22:36               ` Ricardo Wurmus
2017-04-11  1:01                 ` Ben Sturmfels [this message]
2017-02-21  5:41           ` Pjotr Prins
2017-02-21  7:16           ` Ricardo Wurmus
2017-02-19  9:21   ` pelzflorian (Florian Pelz)
2017-02-19  9:26     ` Ricardo Wurmus
2017-02-19  9:43     ` pelzflorian (Florian Pelz)
2017-02-20 16:06 ` Ricardo Wurmus
2017-02-23 19:28   ` Leo Famulari
2017-02-23 21:36     ` Ricardo Wurmus
2017-02-21  8:52 ` bug#25775: Attempts to fix bootstrap Guile bug Andy Wingo
2017-02-21 18:03   ` Leo Famulari
2017-02-21 22:34     ` Ricardo Wurmus
2017-02-21 23:00       ` Leo Famulari
2017-03-07 23:02   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58EC2AD0.3060405@stumbles.id.au \
    --to=ben@stumbles.id.au \
    --cc=25775@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.