From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Sturmfels Subject: bug#25775: Can't install packages after guix pull Date: Tue, 11 Apr 2017 11:01:04 +1000 Message-ID: <58EC2AD0.3060405@stumbles.id.au> References: <20170218111144.GA26806@mail.thebird.nl> <878tp3sead.fsf@elephly.net> <20170218161836.GA27883@mail.thebird.nl> <20170218163033.GA27928@mail.thebird.nl> <20170221094403.0e8469a8@stumbles.id.au> <20170221095211.38e7d66d@stumbles.id.au> <20170221132044.1a9732ec@stumbles.id.au> <87shn7xjas.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7lVQoM1X0vDPOtxXQJS6sDS3XehH0pxMx" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxkC7-0002sA-KD for bug-guix@gnu.org; Mon, 10 Apr 2017 21:02:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxkC3-0000li-ES for bug-guix@gnu.org; Mon, 10 Apr 2017 21:02:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43578) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxkC2-0000lS-9v for bug-guix@gnu.org; Mon, 10 Apr 2017 21:02:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87shn7xjas.fsf@elephly.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 25775@debbugs.gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7lVQoM1X0vDPOtxXQJS6sDS3XehH0pxMx Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 22/02/17 09:36, Ricardo Wurmus wrote: >=20 > Ben Sturmfels writes: >=20 >> On Tue, 21 Feb 2017 09:52:11 +1100 >> Ben Sturmfels 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`. =20 >>> >>> (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? >=20 > 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=3D25775#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=3Dhttp://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 --7lVQoM1X0vDPOtxXQJS6sDS3XehH0pxMx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBCgAGBQJY7CrQAAoJEAI8BeLJwGjwoecP/1d9tuf5aQlU5pnh/3t5Gpju jypt4PNTwqQKyFQslI5N3jVeHNOBCPv8Cun3VTzqkXq/kiO6L377ymCBg+JhqDrR eB+bfsaj5j6CrX3717ufvq3XBt1OeAwWAdUnhXWeQC8OErNFzzxmTRvVXsC7gSgO caPMFKnnOczBr0X2E1oAwt65pZwwW0YPrE8/1bgvX6YEuAkhlS5UL8qEzyeyS4/Z 9AcD8ub2+1PMuywyriu3vJhaPStjqFhkaMPj2KPaKfvgil7oMSwvFTxzgm2QzWru rm796ZfvY6UwVJnIgXJCUYv8Qglf7rBK4PLlDh1/mEL4gYXdxopPcmIOWLrD6lgQ gDKMg2ebY0k80/pO2yexuz3G4f1KeqlgIVhVNzLbSRJbWVSYa6yteccKJ9P8DFeB U7OJm2r+PNmJyNws+nSrGIeK1wNuX8UYDryBDRN0O383eDRCDqUHy1vG1tHx1DBF GAa0NU9giTZf8/LNxuEKgIWjz0pNkvJr5EcwYmlx09oN4ond/ZBQ2FtqRF9gSyJG ysIeLjM/F8MobMY0Tzn/TDg8O+mxCXILH7v2CJG/YWl5f6cz4Z3o/uDMH6zOHXSZ Hi/H0yMHQIpMOtjgJscj+E8ttpTmA/u0FQL2+iPnTABL2TM4DjfI5qQTcvMDmFy4 lYBM8HNjk67WcNTBIJ0G =grE+ -----END PGP SIGNATURE----- --7lVQoM1X0vDPOtxXQJS6sDS3XehH0pxMx--