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 fDe/FDnZ+F7eXQAA0tVLHw (envelope-from ) for ; Sun, 28 Jun 2020 17:54:01 +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 6OF1EDnZ+F7FQQAA1q6Kng (envelope-from ) for ; Sun, 28 Jun 2020 17:54:01 +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 3DC66940223 for ; Sun, 28 Jun 2020 17:53:59 +0000 (UTC) Received: from localhost ([::1]:40370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpbV7-0004bT-55 for larch@yhetil.org; Sun, 28 Jun 2020 13:53:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpbUx-0004al-Cx; Sun, 28 Jun 2020 13:53:47 -0400 Received: from server0.selfhosted.xyz ([217.64.149.7]:47550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpbUu-0001hT-66; Sun, 28 Jun 2020 13:53:47 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz; s=dkim; t=1593366813; bh=qFqVOUAJyo+Y6ksfYpPer2NOMBgtc0GkDFbA0F6vWAc=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=JRjEFkktRK7RjA/QRWPrGh1aCOkp8SE+ZNCImQcZ/kCeNy/bSlr2zlAytrfchmJCw ZnhJvsWbFm1K9MkNpjBAVbqxhICPMtuM9NiXX/oB9xTg2WJQzkcJPI4lQ/kv6h5YSi LIdX6YUJR24YIIVTMs2jyQn8kQQJ8/5Efm4yRFtcFz4NYVZTqXxCX96DdUUnnAah95 iYcqjvw5gSN0oftpUuOPy/bJNs9KGX+s+X6S0uQ8WYW3sclOV51cPut2wkjFtXLWOG 7FbxAAA8JH8WX9rbkyJbWWwD9he8V4Udekhmy8RL1mlHzw6LD7lLt9Y5g11DYibGUI h7Ngmjgb0zojw== X-Fuglu-Suspect: 9491a61ef8194986933b13a9af67932c X-Fuglu-Spamstatus: NO Received: from [127.0.0.1] (localhost [127.0.0.1]) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 28 Jun 2020 17:53:27 +0000 From: david larsson To: Zelphir Kaltstahl 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> Message-ID: <1bc86ddf71033e70b589084d6d9b09b2@selfhosted.xyz> X-Sender: david.larsson@selfhosted.xyz Received-SPF: pass client-ip=217.64.149.7; envelope-from=david.larsson@selfhosted.xyz; helo=server0.selfhosted.xyz X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/28 13:53:34 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.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, FROM_SUSPICIOUS_NTLD=1, PDS_OTHER_BAD_TLD=1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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 , Help-Guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=selfhosted.xyz header.s=dkim header.b=JRjEFkkt; dmarc=pass (policy=none) header.from=selfhosted.xyz; 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: -1.71 X-TUID: g/EfnYRGcqcV There has been some issues with getting the symlinks ~/.guix-profile and ~/.config/guix/current right on a foreign distro for me and some other users, but Im not sure whether this is a Guix problem, or a misunderstanding by the users. A good explanation of guix profiles is here: https://unix.stackexchange.com/questions/561093/what-is-the-difference-between-guix-profile-and-config-guix-current and also make sure to read about the guix pull -p option. After that I think you can fix your problem by fixing the symlinks. Reg reinstall if you wont just fix the symlinks, deleting /gnu/store and /var/guix, along with any profiles such as ~/.guix-profile and ~/.config/guix/ folders I think is enough to begin a reinstall (possibly also /etc/guix/profiles/config.scm or similar if they exist - but not sure). Having a reinstall options or similar for guix-install.sh would be nice, but I dont think it exists (btw. it shouldn't be too hard to check the bash source for this and see if it exists or not). Best regards, David On 2020-06-28 10:22, Zelphir Kaltstahl wrote: > 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 > problem. > > 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/xiaolong/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. > > Now I can only do a `guix pull` as `root` user, no longer as normal > user. > > I've tried deleting the symlink, thinking: "Well if the error is, that > a > file exists in that place, it probably wants to write there and refuses > to overwrite. I'll delete it for you then." That results in another > error: > > ~~~~ > 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/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq/.git/FETCH_HEAD' > is locked: Permission denied > ~~~~ > > I can get it back to previous state by running `guix pull` as `root` > user again, but it does not fix the original problem then. > > Now I've gone 1 step further in frustration and deleted the whole > `/var/guix/profiles/per-user/xiaolong` folder. OK, now guix does not > know about any installed packages any more and the error becomes: > > ~~~~ > xiaolong@xlx200:~$ guix pull > guile: warning: failed to install locale > 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/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq/.git/FETCH_HEAD' > is locked: Permission denied > ~~~~ > > 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 > > (... 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%[==================================>] > 70,14M 4,27MB/s in 21s > guix-binary-1.1.0.x86_64 100%[==================================>] > 833 --.-KB/s in 0s > [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. > Refusing 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? > > Regards, > Zelphir