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 WMImN2JW71/oGwAA0tVLHw (envelope-from ) for ; Fri, 01 Jan 2021 17:05:38 +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 qD3OMmJW719xaAAAB5/wlQ (envelope-from ) for ; Fri, 01 Jan 2021 17:05:38 +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 010A694042C for ; Fri, 1 Jan 2021 17:05:36 +0000 (UTC) Received: from localhost ([::1]:58734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvNrr-0003Vo-Ax for larch@yhetil.org; Fri, 01 Jan 2021 12:05:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvNpO-0001Lr-SS for bug-guix@gnu.org; Fri, 01 Jan 2021 12:03:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kvNpO-00037e-K3 for bug-guix@gnu.org; Fri, 01 Jan 2021 12:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kvNpO-0007ix-H3 for bug-guix@gnu.org; Fri, 01 Jan 2021 12:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45599: using guix to install packages from inside a container that runs on foreign distro breaks guix and the foreign distro Resent-From: david larsson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 01 Jan 2021 17:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45599 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 45599@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160952054529641 (code B ref -1); Fri, 01 Jan 2021 17:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jan 2021 17:02:25 +0000 Received: from localhost ([127.0.0.1]:34658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvNon-0007i1-5b for submit@debbugs.gnu.org; Fri, 01 Jan 2021 12:02:25 -0500 Received: from lists.gnu.org ([209.51.188.17]:47480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvNol-0007hu-TL for submit@debbugs.gnu.org; Fri, 01 Jan 2021 12:02:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvNok-0000zN-1M for bug-guix@gnu.org; Fri, 01 Jan 2021 12:02:23 -0500 Received: from server0.selfhosted.xyz ([217.64.149.7]:37362) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvNog-0002zV-SU for bug-guix@gnu.org; Fri, 01 Jan 2021 12:02:21 -0500 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=1609520528; bh=wylJOecER2tWxWNOTCtF8T8rsgoLbw7tFoDZWBZp/qI=; h=Date:From:To:Subject; b=qkWSHKkI7/mhyqulwgHpucQQ3/ucfZ5XuxrVN7m1IwHSoodxiX5bWi+/8gdfAxKc4 fsPBfzDltE6+A7lbmiqbwhmv9E1YjRYKzF9gKfe7b64cv1ARAEy7BqpYYIWTIp5/tC hr1868/rS23ldo/ohbkNCu1M83BRGEu9x7etfy41EJ9x4LP+AuHCqdqdIUPgWKetV/ yOP1WP0H3kciHy8bOz849ilXXajHIKLYoQ6C50PAmFDM1Ls6ftYvOH3KR9iIZTT796 6ecW3bcQ1hQadkYE77Vo9/D3DNmX4sMbz0vI3ROgSLyZbvg5pDrrjsxtRpuyL87kr+ G/hIpmzJyPlog== X-Fuglu-Suspect: a94d0684044d47969cd0daea3a554f1b 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: Fri, 01 Jan 2021 18:02:01 +0100 From: david larsson Message-ID: <3074bf88649cfd70823e7993f76460f6@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-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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=0.272, FROM_SUSPICIOUS_NTLD_FP=0.001, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.23 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=selfhosted.xyz header.s=dkim header.b=qkWSHKkI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=selfhosted.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 010A694042C X-Spam-Score: -1.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: xfWoz3jb1iZM Hi! using guix to install packages from inside a container that runs on foreign distro breaks guix and the foreign distro, see below: Steps to reproduce: The below system was instantiated witg guix system container this_file.scm --network upon starting it with sudo /gnu/store/asdfasdfasdf-run-container and connecting to it with sudo guix container exec 8625 /run/current-system/profile/bin/bash --login [sudo] password for david: root@MinimalSSH /# root@MinimalSSH /# root@MinimalSSH /# guix package -i hello guix package: warning: Consider running 'guix pull' followed by 'guix package -u' to get up-to-date packages and security updates. The following package will be installed: hello 2.10 substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% 13.0 MB will be downloaded substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% downloading from https://ci.guix.gnu.org/nar/lzip/z7a6sbvqzb5zapwpznmjkq2rsxil6i67-glibc-utf8-locales-2.31 ... glibc-utf8-locales-2.31 376KiB 1.0MiB/s 00:00 [##################] 100.0% downloading from https://ci.guix.gnu.org/nar/lzip/mmhimfwmmidf09jw1plw3aw1g1zn2nkh-bash-static-5.0.16 ... bash-static-5.0.16 625KiB 1.5MiB/s 00:00 [##################] 100.0% downloading from https://ci.guix.gnu.org/nar/lzip/q0s3bi0by383cqzl9zz1wf74p6pdl3fc-libx11-1.6.A-doc ... libx11-1.6.A-doc 1.2MiB 1.6MiB/s 00:01 [##################] 100.0% error: executing `/gnu/store/qyjhy4bkz51jyspi63llfznsnz7vibzy-guix-1.1.0-30.875c01f/bin/guix substitute': No such file or directory guix package: error: unexpected EOF reading a line root@MinimalSSH /# root@MinimalSSH /# exit logout guix container: error: exec failed with status 1 david@l560:~/VirtualHome/src$ guix package -i hello bash: /usr/local/bin/guix: /gnu/store/b7rixb64yp00znz0d5rwd5zzklwzlzmv-guile-wrapper/bin/guile: bad interpreter: No such file or directory david@l560:~/VirtualHome/src$ ----------------------- As you can see, guix is now broken on both the host and guest system. ----------------------- ;; guix system container /path/to/this/file.scm --network ;; don't forget --network (use-modules (gnu) (gnu system nss) (gnu packages)) (use-service-modules networking ssh desktop spice cuirass virtualization) (use-package-modules screen ssh gnome certs bash) (define %cuirass-specs #~( ;; spec two list '((#:name . "my-pkgs") (#:load-path-inputs . ("guix")) (#:package-path-inputs . ("my-guix-packages")) (#:proc-input . "guix") (#:proc-file . "build-aux/cuirass/gnu-system.scm") (#:proc . cuirass-jobs) (#:proc-args . ((subset . "manifests") (systems . ("x86_64-linux")) (manifests . (("config" . "manifests/user1.scm"))) )) (#:inputs . ( ((#:name . "guix") (#:url . "git://git.savannah.gnu.org/guix.git") (#:load-path . ".") (#:branch . "master") (#:no-compile? . #t)) ((#:name . "my-guix-packages") ;;(#:url . "file:///home/cuirass/my-guix-packages") (#:url . "https://github.com/methuselah-0/my-guix-packages.git") (#:load-path . "packages") (#:branch . "master") (#:no-compile? . #t)) ((#:name . "config") ;;(#:url . "file:///home/cuirass/my-guixsd-config.sh") (#:url . "https://github.com/methuselah-0/my-guixsd-config.sh.git") (#:load-path . ".") (#:branch . "master") (#:no-compile? . #t)) )) (#:build-outputs . ())))) (operating-system (host-name "MinimalCuirass") (timezone "Europe/Stockholm") (bootloader (bootloader-configuration (bootloader grub-bootloader))) (file-systems (cons (file-system (device (file-system-label "fsroot")) (mount-point "/") (type "btrfs")) %base-file-systems)) (services (append (list (service openssh-service-type (openssh-configuration (port-number 2222) (permit-root-login 'without-password) (authorized-keys `(("root" ,(local-file "/home/david/.ssh/id_rsa.pub")))))) ;; https://lists.gnu.org/archive/html/help-guix/2019-06/msg00116.html (service cuirass-service-type (cuirass-configuration (interval 60) ;; 10 hours (fallback? #f) ;; default is #f (host "0.0.0.0") (port 8082) (use-substitutes? #t) (specifications %cuirass-specs)))) %base-services))) ------------------- Best regards, David Larsson