From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WJZ2HZ0S+l4eaAAA0tVLHw (envelope-from ) for ; Mon, 29 Jun 2020 16:11:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oBR4GZ0S+l4adQAAB5/wlQ (envelope-from ) for ; Mon, 29 Jun 2020 16:11:09 +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 08AE49400C1 for ; Mon, 29 Jun 2020 16:11:08 +0000 (UTC) Received: from localhost ([::1]:47886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpwN7-0004Bo-2B for larch@yhetil.org; Mon, 29 Jun 2020 12:11:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpwKf-000118-Io for help-guix@gnu.org; Mon, 29 Jun 2020 12:08:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]:42070) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpwKc-0001Ug-GJ for help-guix@gnu.org; Mon, 29 Jun 2020 12:08:33 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 7735D160064 for ; Mon, 29 Jun 2020 18:08:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1593446907; bh=RJgkbyzsFgzfcbsOwbgRr6QfKbQYh2G3raxxy8mLgug=; h=Subject:To:Cc:From:Date:From; b=jXq66DaQ3G8VW9EQ1eWhu/K5SxDzLx5ZGExwSQ1O0MiZGFCsT8+7u/ykNlvGAl0Ei hlJwj+IB31a7oiFN0kejKvXXydQRE8OsauEJmlw9boU7JRlUJTdQXk5oqOdYjg9ZGB wQNtOGKAdzlHKb7xW8RFlD4U8KsidQ7kHgg0R+E4alYtQa7mCvf/FJK0upF7n4IEiV XLciVtWfNjUEeW5M/UKs2dmk9Y43H3WYezPG8g6ZnRzUVThjjIy9ud9M0U2FegYdzP 69k9TAwxN/EYcCOLdD89BrXpex8FRGh/xMvqn9x7FkvQRcrE49O2jwIFuskIWDvOBi 4nnjB4NgJjNeg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49wXTk407Pz6tmc; Mon, 29 Jun 2020 18:08:26 +0200 (CEST) Subject: Re: Repair / reinstall Guix package manager (foreign distro) To: Marius Bakke , david.larsson@selfhosted.xyz References: <25e841cb-66c3-0aeb-f3b5-ab380784a1a1@posteo.de> <87tuyvavyl.fsf@gnu.org> From: Zelphir Kaltstahl Message-ID: <282e567b-5365-fec0-9b21-4dea5f450a5a@posteo.de> Date: Mon, 29 Jun 2020 18:08:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.8.0 MIME-Version: 1.0 In-Reply-To: <87tuyvavyl.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/29 11:09:59 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=posteo.de header.s=2017 header.b=jXq66DaQ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=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.09 X-TUID: hc9cud8JYsgZ Hi! Thank you both for your responses! In the end I had already begun removing everything that find / -iname '*guix* would give me and that was not created by me, so I went the route of reinstallation. However, I'll archive these e-mails and in case I ever forget the `-i` in the sudo command again, I have the solution ready : ) Btw.: I deleted a whole lot more files than I thought I would need to. I make a list and only after the last 2 removals, the Guix installer would not find a previous installation any longer: ~~~~ rm --recursive --force /gnu/store || true; rm --recursive --force /var/guix || true; rm --recursive --force ~/.guix-profile || true; rm --recursive --force ~/.config/guix || true; rm --recursive --force /etc/guix/profile/config.scm || true; rm --recursive --force /tmp/guix.* || true; rm --recursive --force /home/xiaolong/.cache/guix || true; rm --recursive --force /root/.cache/guix/ || true; rm --recursive --force /root/.cache/guile/ || true; rm --recursive --force /var/log/guix || true; rm --recursive --force /root/.config/guix || true; rm --recursive --force /etc/systemd/system/guix-daemon.service || true= ; rm --recursive --force /etc/guix || true; rm --recursive --force /usr/local/bin/guix || true; rm --recursive --force /etc/systemd/system/multi-user.target.wants/gui= x-daemon.service || true; rm --recursive --force /usr/local/share/info/guix.* || true; rm --recursive --force /tmp/guix.Mgm || true; # all of the above does not help # you need to do also the following rm --recursive --force /var/guix || true; rm --recursive --force /gnu || true; ~~~~ Thanks for telling me about the need to use `-i` or `su -`, I did not know about it. I would have run into this problem again and again. Regards, Zelphir On 28.06.20 20:25, Marius Bakke wrote: > 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 pr= oblem. >> >> 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/x= iaolong/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' o= r > '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.g= nu.org/git/guix.git'... >> guix pull: error: Git error: failed open - '/home/xiaolong/.cache/guix= /checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq/.git/FETC= H_HEAD' is locked: Permission denied >> ~~~~ > You can fix this by either deleting the directory, or > > sudo chown -R xiaolong:xiaolong /home/xiaolong/.cache/guix/checkouts= /pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq > > 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= ,27MB/s in 21s =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 >> [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. Re= fusing 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! --=20 repositories: https://notabug.org/ZelphirKaltstahl