From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gHFGJ+Dg+F6qQwAA0tVLHw (envelope-from ) for ; Sun, 28 Jun 2020 18:26:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oCw4I+Dg+F6uVgAA1q6Kng (envelope-from ) for ; Sun, 28 Jun 2020 18:26:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D3DC4940308 for ; Sun, 28 Jun 2020 18:26:39 +0000 (UTC) Received: from localhost ([::1]:41982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpc0j-0002Yc-LV for larch@yhetil.org; Sun, 28 Jun 2020 14:26:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpc06-00022j-GZ for help-guix@gnu.org; Sun, 28 Jun 2020 14:25:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45875) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpc06-00068K-7c; Sun, 28 Jun 2020 14:25:58 -0400 Received: from ti0006q161-3115.bb.online.no ([88.95.106.80]:56142 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jpc04-0007nZ-LJ; Sun, 28 Jun 2020 14:25:57 -0400 From: Marius Bakke To: Zelphir Kaltstahl , help-guix Subject: Re: Repair / reinstall Guix package manager (foreign distro) In-Reply-To: <25e841cb-66c3-0aeb-f3b5-ab380784a1a1@posteo.de> References: <25e841cb-66c3-0aeb-f3b5-ab380784a1a1@posteo.de> Date: Sun, 28 Jun 2020 20:25:54 +0200 Message-ID: <87tuyvavyl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.61 X-TUID: S0fmLXqBUbB0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Zelphir Kaltstahl writes: > Hi Guix Users! > > I would like to repair or reinstall my Guix package manager > installation, because it seems broken and nothing I tried fixes the probl= em. > > The problem: > > ~~~~ > xiaolong@xlx200:~/Downloads$ guix pull > Migrating profile generations to '/var/guix/profiles/per-user/xiaolong'... > guix pull: error: symlink: File exists: "/var/guix/profiles/per-user/xiao= long/current-guix" > ~~~~ > > It started appearing, when I once ran `guix pull` and `guix package -u` > as `root` user, to update my locales in the root profile. This can happen if you become root by any other method than 'sudo -i' or 'su -', because the root shell will otherwise inherit variables such as $HOME, leading to this problem. [...] > ~~~~ > xiaolong@xlx200:~/Downloads$ guix pull > Migrating profile generations to '/var/guix/profiles/per-user/xiaolong'... > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.= org/git/guix.git'... > guix pull: error: Git error: failed open - '/home/xiaolong/.cache/guix/ch= eckouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq/.git/FETCH_HEA= D' is locked: Permission denied > ~~~~ You can fix this by either deleting the directory, or sudo chown -R xiaolong:xiaolong /home/xiaolong/.cache/guix/checkouts/pjm= kglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq Similarly, chowning or deleting /var/guix-profiles/per-user/xiaolong is the only way to fix the permissions issue on the profile. [...] > So I a basically giving up now and want to reinstall. I downloaded the > install script `guix-install.sh` from the website and ran it: > > ~~~~ > xiaolong@xlx200:~/Downloads$ sudo bash guix-install.sh=20 > > (... big GUIX logo here ...) > > This script installs GNU Guix on your system > > https://www.gnu.org/software/guix/ > Press return to continue... > [1593338927.330]: Starting installation (So 28. Jun 12:08:47 CEST 2020) > [1593338927.333]: [ PASS ] verification of required commands completed > [1593338927.364]: [ INFO ] init system is: systemd > [1593338927.368]: [ INFO ] system is x86_64-linux > [1593338928.075]: [ PASS ] Release for your system: guix-binary-1.1.0.x86= _64-linux > [1593338928.077]: [ INFO ] Downloading Guix release archive > guix-binary-1.1.0.x86_64 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] 70,14M 4,2= 7MB/s in 21s=20=20=20=20=20 > guix-binary-1.1.0.x86_64 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] 833 --.= -KB/s in 0s=20=20=20=20=20=20 > [1593338949.457]: [ PASS ] download completed. > [1593338950.341]: [ PASS ] Signature is valid. > [1593338959.807]: [ PASS ] unpacked archive > [1593338959.808]: [ FAIL ] A previous Guix installation was found. Refus= ing to overwrite. > ~~~~ > > "OK OK! I'll uninstall the previous one!" > > But how do I do it exactly? Or is there a flag or anything I can give to > make it overwrite the previous installation? Reinstalling still won't fix the permissions on your ~/.cache/guix/checkouts. But to eradicate Guix and let the script do its thing you should 'sudo rm -rf /var/guix /gnu'. Hope this helps! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl744LIACgkQoqBt8qM6 VPqUfggAnRVF+3CZx36KFe0kcDaHWT2rQEktSyHlBBVA7uC7Nis/bQUxN0L9a9h+ ZVXHyx2bO676u8fheLaL7rJPGsKAGBn6J/MWusqaVy1z5p+rnP8StDTVX9yUFhm2 OlZaGQfiznnsHlE+t4M+ihBVOkBQTbvhGhH2NODwStuaHcMvPEKsUF66TptqBE62 ddH8qR4O7l8xjH+K1oZyWCDpcdVAqqj+fBIW6LoRnvdlgxKe8cr7m3xWtsf6xgUg Sul1xPtVGQr7ti/nlFRkWHPghiYAY1KctbZjVurPbZ1j5yXr+dmvo/bXQ7UKqP74 zPVg1y8KKsnt9Abqi96OhZKwasOvfA== =m3ix -----END PGP SIGNATURE----- --=-=-=--