From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id NG7wBdngV2ARXAAA0tVLHw (envelope-from ) for ; Mon, 22 Mar 2021 00:12:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iAF6AdngV2DTEQAA1q6Kng (envelope-from ) for ; Mon, 22 Mar 2021 00:12: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 617B62A9CA for ; Mon, 22 Mar 2021 01:12:08 +0100 (CET) Received: from localhost ([::1]:33820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO8Aw-0001SC-5D for larch@yhetil.org; Sun, 21 Mar 2021 20:12:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO8AT-0001Rs-QO for help-guix@gnu.org; Sun, 21 Mar 2021 20:11:37 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:49807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO8AR-0000ue-QL for help-guix@gnu.org; Sun, 21 Mar 2021 20:11:37 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id AFDDBFDF; Sun, 21 Mar 2021 20:11:30 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 21 Mar 2021 20:11:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=Hq/Duw/ZZ1FGl/rRyaVo6bYD k2B1h0zVhKOIZ+6yi98=; b=L5yFjtA4rC81cjs06VRCG+GC3NSBeHkbblg8IwED bwJ7kUrJz395EYOZ1rfOgtXteCx1izKSb00j8L8cEanit4UMx6m95sYGLwOyT126 0nyrHxC2TYtlHvg72sSMllp5PSS/V5GEkvCLwKk/TjRboP8CnRn9KcsveS61Zqvs awM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Hq/Duw /ZZ1FGl/rRyaVo6bYDk2B1h0zVhKOIZ+6yi98=; b=t1eBwy8rlIYe1zu9bdt2Z8 fnrKHBhOB4311z+wJoIif9yHUzPa83I1p5jvO7kP+v84HMLlBZyOTJMe93nAJ/Fy 3Z5aUv01Qj1CtXv0rSYuW/0Gqf6a11cC9YSLDz0GywHZpIbkycNmrpi4JuGlDwjv GmlAR26HW/hUMX/WH0ktHoTXb9SlQr3LHzPVv5ZuKOljbziQvfM47iOOIZo2k7qL UJgtG8i9BjeS1bzRAq4JR71RF2f2Ky3t/nemDb5ms598DlhuMOaMjZ/xjU233714 uJ15/0S8dFewSej6uJ5UcN+WbNKeGUukfUh76HDVooOh74G9bbESIn9Zp/9AzScg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegfedgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefnvghoucfh rghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrghtth gvrhhnpedvvddugefffeeitddthfefvdeuhffgkeeikeegkeevteeghfeftefggeeuudff ieenucffohhmrghinhepghhnuhdrohhrghenucfkphepuddttddruddurdduieelrdduud eknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgv ohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: from localhost (pool-100-11-169-118.phlapa.fios.verizon.net [100.11.169.118]) by mail.messagingengine.com (Postfix) with ESMTPA id 53F2624035C; Sun, 21 Mar 2021 20:11:29 -0400 (EDT) Date: Sun, 21 Mar 2021 20:11:27 -0400 From: Leo Famulari To: Sergiu Ivanov Subject: Re: cannot "guix pull" Message-ID: References: <871rc98xc9.fsf@disroot.org> <87mtuxef3x.fsf@colimite.fr> <87k0q0ewtb.fsf@colimite.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k0q0ewtb.fsf@colimite.fr> Received-SPF: pass client-ip=64.147.123.24; envelope-from=leo@famulari.name; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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@gnu.org, Adam Kandur Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616371928; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Hq/Duw/ZZ1FGl/rRyaVo6bYDk2B1h0zVhKOIZ+6yi98=; b=EuixmMrTgkv+M3XgiCA/cciulPQEiB+Diy4yalAkoIBCaszlkhkVG9zQPIU5fFPuFFmNFy nhWZsi6DvyfRb0pocty+YQ2wTDfEGDlKxujFdWDcCWRrUjPBZS49z9ze8J94HDK1/mBT1T v2xAaDjBAP25ajYt1sySjMy37+RoauhdpHRhY1Ifb4PGtvibNBLyvjoBFm4eGBp2wvI1Ts YSjsUwPSAR6ymaL1tLRxpdCfGkfJcqO9O2WNFgnRban3H5VA6DQ3xrIaThBNkIV5wewhFK LX4wSuaSLNuIsoUvWS5830okN6xcsrgAg2RPxF6J2weqBInDiLO47k5HaKC5jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616371928; a=rsa-sha256; cv=none; b=tr/WZjv17bn0r+dlNhVNc4ov+835Ajn9IYTY3jNISK+bh7FMb8IGplR7NqCWw9+vDvcVaS HV9hqa0RNF1DO+884+KR77cofNFMpANE5+NTUZJalULOBhSDoM4FsyaBy5EYFQyBmqnDW5 J/Pym+uMMTj4kszjdbJObr2vfT3jC8IWhRxKVD7ZkevX3z1cUBeXRNBwJQjLSFz0K+qsBQ FSg4M6DPkri3f+vx9SEQD0NC0b8/77pp9YKkyQkMqkqKtY0nXY71dp4PrkKUYSMsRK6hli aEY4YatKv2TGj2oN3BtYQLFHa1oe8KjHVZcENd/F9u84Ee0HMjHexS2RvbYQwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=L5yFjtA4; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=t1eBwy8r; 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-Migadu-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=L5yFjtA4; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=t1eBwy8r; 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-Migadu-Queue-Id: 617B62A9CA X-Spam-Score: -1.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: eUO0c5nYrXYg I'm happy to help, but unfortunately, the paste that included the error messages is no longer online: https://lists.gnu.org/archive/html/help-guix/2021-03/msg00184.html This illustrates why it is important to include all relevant details of a problem in the email, rather than linking to external sites. Can any of you share the error messages, to refresh my memory? I was hoping to use the following info to see if you were using a version of Guix that preceded a bug fix, but now I can't tell. I do think your bug has been fixed recently, and that `guix pull && sudo guix system reconfigure ...` will fix your problem, but I wanted to be sure. Here are some general observations and advice: On Sun, Mar 21, 2021 at 09:27:12AM +0100, Sergiu Ivanov wrote: > Thus quoth Leo Famulari on Sat Mar 20 2021 at 23:10 (+0100): > > $ guix describe > > Generation 5 Mar 16 2021 10:31:09 (current) > [blurred] > guix db87d6d > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: db87d6ddafd26c5ad657178cf7fdab524d05c522 Okay. This is a recent version of Guix. > > $ sudo --login guix describe > > Generation 1 Feb 02 2021 10:36:19 (current) > [blurred] > guix 625708b > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: 625708b03a37fc2a33c437b8e27856ca76965f43 This is probably the Guix at '/root/.config/guix/current/bin/guix'. That is the root user's Guix command, created and updated with `guix pull` as root. It's from early February. > $ sudo su > $ guix describe > > which gave me > > guix c8887a5 > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: c8887a5c6e8f6a19d54ffa428c6fe88a797b867a This is probably the system's Guix command, at '/run/current-system/profile/bin/guix'. It's recent. Based on this, I guess you are updating the system by `guix pull` as your regular user and then `sudo guix system reconfigure ...`. Is that correct? The different results between those two sudo commands shows an important and confusing issue with privilege elevation on Linux: There is a difference between plain `sudo` and `sudo --login`. `su` is an entirely different command, and it also does something different than `su --login`. Basically, plain `sudo` and `su` put the user into an incomplete and typically unexpected environment, as compared to using the "--login" options. One could say they turn you into "nobody", but with privileges. In general, I recommend to learn the difference between them and use them accordingly. On old-school distros, there is not usually a big problem, but on Guix it really matters, because we use the login shell initialization to export some environment variables, and the resulting environment is what provides the per-user view of installed packages. So, if you don't login when elevating privileges, you get a weird environment and your view of Guix will be unexpected. As you noticed, the environment you got from `sudo su` lacked any user's packages or channels. > I think I did guix pull as root once at the beginning of the > installation of this machine 3 months ago. I ran sudo guix pull > a couple of times, before I managed to remember that guix pull should be > run as normal user (I think?). `guix pull` should be run as any user that you use. So, if you ever use the root user, we highly recommend you update root's packages sometimes, too. If you never login as root, and do not run any programs as root, then it doesn't matter very much. > The blurred parts of the output are due to the fact that Linux Libre > does not detect all my devices. > > By the way, please tell me if there is anything inappropriate in my > message: I'm still not sure how to talk about certain things, as you can > see :-) No worries :) I don't think those other channels are relevant to your problem.