* `example' package cannot be installed from a `nar' archive without network access.
@ 2021-12-21 9:23 Pierre-Henry Fröhring
2021-12-21 9:39 ` Pierre-Henry Fröhring
0 siblings, 1 reply; 2+ messages in thread
From: Pierre-Henry Fröhring @ 2021-12-21 9:23 UTC (permalink / raw)
To: help-guix
Hello Guix Help List,
I according to :
https://guix.gnu.org/manual/en/html_node/Invoking-guix-archive.html
It is expected that a `nar' archive is self contained.
--recursive
When combined with --export, this instructs guix archive to include dependencies of
the given items in the archive. Thus, the resulting archive is self-contained: it
contains the closure of the exported store items.
But I cannot get it to work.
You can find below steps that I use to reproduce the unexpected behaviour.
How to make it work ?
Thank you,
phf
Table of Contents
─────────────────
1. `example' cannot be installed from a `nar' archive without network access.
2. `example' package definition
1 `example' cannot be installed from a `nar' archive without network access.
════════════════════════════════════════════════════════════════════════════
`example.scm' is a package definition.
┌────
│ https://paste.debian.net/1224285/
└────
The package `example' is installed.
┌────
│ guix package --install-from-file=packages/example.scm
└────
`example-1.0.nar' is an archive built from the `example' package.
┌────
│ guix archive --export -r /gnu/store/fvdl3p26dyzfr6a7y9sa4wzw1fj9s488-example-1.0 > example-1.0.nar
└────
`example' is purged from the `store'.
┌────
│ guix remove example
│ guix package --delete-generations
│ guix gc
└────
`example' package is imported from `example-1.0.nar'.
┌────
│ guix archive --import < ./example-1.0.nar
└────
`example' cannot be installed from a `nar' archive without network access.
┌────
│ $ nmcli device disconnect enp1s0
│ $ guix install /gnu/store/fvdl3p26dyzfr6a7y9sa4wzw1fj9s488-example-1.0
│ guix install: erreur : some substitutes for the outputs of derivation
│ `/gnu/store/i6d2vz93mfnfy2x7x2g98c55cv966k71-texinfo-6.7.drv' failed (usually happens
│ due to networking issues); try `--fallback' to build derivation from source
└────
2 `example' package definition
══════════════════════════════
┌────
│ $ tree --charset ascii example
│ example
│ |-- configure
│ `-- Makefile
└────
`configure'
┌────
│ https://paste.debian.net/1224286/
└────
`Makefile'
┌────
│ https://paste.debian.net/1224287/
└────
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: `example' package cannot be installed from a `nar' archive without network access.
2021-12-21 9:23 `example' package cannot be installed from a `nar' archive without network access Pierre-Henry Fröhring
@ 2021-12-21 9:39 ` Pierre-Henry Fröhring
0 siblings, 0 replies; 2+ messages in thread
From: Pierre-Henry Fröhring @ 2021-12-21 9:39 UTC (permalink / raw)
To: help-guix
Well, apparently it does not work with the `hello' package either.
These lines :
┌────
│ guix install hello
│ guix archive --export -r hello > hello.nar
│ guix remove hello
│ guix package --delete-generations
│ guix gc
│ guix archive --import < ./hello.nar
│ guix package -i /gnu/store/81bdcd5x4v50i28h98bfkvvkx9cky63w-hello-2.10
└────
give :
┌────
│ Le paquet suivant sera installé :
│ hello 2.10
│
│ La dérivation suivante sera compilée :
│ /gnu/store/b3zshi8adni3xy2zn3cngayh5dhfvvrs-profile.drv
│
│ 32,0 Mo seront téléchargés
│ guix substitute: error: erreur lors de la consultation du nom d'h\u00f4te : Nom ou service inconnu
│ la substitution de /gnu/store/gzh4pjhzhbfbn4kdiba3hl8b264y19q4-module-import-compiled a échoué
│ guix package: erreur : some substitutes for the outputs of derivation
│ `/gnu/store/6i7mhz4vxl4g19q7cabc0rvmpw5dijzx-module-import-compiled.drv' failed
│ (usually happens due to networking issues); try `--fallback' to build derivation from
│ source
└────
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-21 14:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-21 9:23 `example' package cannot be installed from a `nar' archive without network access Pierre-Henry Fröhring
2021-12-21 9:39 ` Pierre-Henry Fröhring
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.