当我在我的计算机而不是虚拟机上安装 GuixSD 时,每次下载 webkitgtk-2.20.5 包都会失败。下载进度从 71% 到 78%。有一个设备已满的信息:
guix system: error: build failed: writing to file: No space left on device
但df -h
命令显示即使 16G 也可以在 /mnt 安装上使用。如何修复并完成安装?这是终端信息:
(...)
downloading from https://ci.guix.info/nar/gzip/mmnv4y0n0mmddhfpjjr9mzfy5994542z-gnome-disk-utility-3.28.3...
gnome-disk-utility-3.28.3 2.0MiB 52KiB/s 00:39 [##################] 100.0%
downloading from https://ci.guix.info/nar/gzip/f9rjpq9m5cmp7abkqb3y7xrg4r0ip02c-gst-plugins-good-1.14.3...
gst-plugins-good-1.14.3 2.9MiB 44KiB/s 01:07 [##################] 100.0%
downloading from https://ci.guix.info/nar/gzip/shs1ps27f75mrx3chird1riwfl1k09hj-gvfs-1.32.1...
gvfs-1.32.1 2.1MiB 54KiB/s 00:40 [##################] 100.0%
downloading from https://ci.guix.info/nar/gzip/pwxpnpqg3cjbx5v88idfg49x7236b56h-totem-3.26.2...
totem-3.26.2 3.0MiB 52KiB/s 01:00 [##################] 100.0%
downloading from https://ci.guix.info/nar/gzip/jxpax5lv5affxqxidlwa7b7wk8jvsccb-nautilus-3.26.2...
nautilus-3.26.2 5.1MiB 48KiB/s 01:49 [##################] 100.0%
downloading from https://ci.guix.info/nar/gzip/fd706jbvrk8zvk6175sz42xqbgc3krsg-webkitgtk-2.20.5...
guix substitute: error: fport_write: No space left on device 50KiB/s 10:20 [############ ] 71.5% webkitgtk-2.20.5 42.3MiB 50KiB/s 10:21 [############ ] 71.5%gzip: stdout: Broken pipe
substitution of /gnu/store/fd706jbvrk8zvk6175sz42xqbgc3krsg-webkitgtk-2.20.5 failed 70KiB/s 10:21 [##################] 100.0%killing process 12511
guix system: error: build failed: writing to file: No space left on device
root@gnu ~# guix system init /mnt/etc/config.scm /mnt --skip-checks --fallback
downloading from https://ci.guix.info/nar/gzip/6g29969ca9klj136ml68qg96kdvd4if1-xdg-user-dirs-0.17...
xdg-user-dirs-0.17 47KiB 705KiB/s 00:00 [##################] 100.0%
downloading from https://ci.guix.info/nar/gzip/fd706jbvrk8zvk6175sz42xqbgc3krsg-webkitgtk-2.20.5...
guix substitute: error: fport_write: No space left on device 52KiB/s 10:35 [############# ] 76.9% webkitgtk-2.20.5 42.3MiB 52KiB/s 10:36 [############# ] 76.9%gzip: stdout: Broken pipe
substitution of /gnu/store/fd706jbvrk8zvk6175sz42xqbgc3krsg-webkitgtk-2.20.5 failed 68KiB/s 10:36 [##################] 100.0%killing process 12556
guix system: error: build failed: writing to file: No space left on device
root@gnu ~# guix system init /mnt/etc/config.scm /mnt --skip-checks --fallback
downloading from https://ci.guix.info/nar/gzip/fd706jbvrk8zvk6175sz42xqbgc3krsg-webkitgtk-2.20.5...
guix substitute: error: fport_write: No space left on device 47KiB/s 11:46 [############# ] 76.9% webkitgtk-2.20.5 42.3MiB 47KiB/s 11:47 [############# ] 77.0%gzip: stdout: Broken pipe
substitution of /gnu/store/fd706jbvrk8zvk6175sz42xqbgc3krsg-webkitgtk-2.20.5 failed 61KiB/s 11:47 [##################] 100.0%killing process 12594
guix system: error: build failed: writing to file: No space left on device
root@gnu ~# df -h
Filesystem Size Used Avail Use% Mounted on
none 2.0G 0 2.0G 0% /dev
none 2.0G 2.0G 312K 100% /
none 2.0G 0 2.0G 0% /tmp
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/sdc1 18G 986M 16G 6% /mnt
root@gnu ~#
答案1
guix 系统:错误:构建失败:写入文件:设备上没有剩余空间
您应该cow
在初始化系统之前启用:
herd start cow-store /mnt
herd start cow-store /mnt
这使得
/gnu/store
写入时复制,以便在安装阶段添加到其中的包被写入 /mnt 上的目标磁盘,而不是保留在内存中。这是必要的,因为 guix 系统 init 命令的第一阶段(见下文)需要下载或构建到 /gnu/store,它最初是一个内存文件系统。
这webkitgtk
是默认浏览器的依赖项gnome-desktop
。衍生构建可能需要很长时间,因为您已启用本地构建--fallback
选项。
当替换预构建的二进制文件失败时,请回退到本地构建包(请参阅替换失败)。
这默认配置包括 Xfce 和 Gnome ,
(services (cons* (gnome-desktop-service)
(xfce-desktop-service)
%desktop-services))
您可以通过编辑该config.scm
文件仅安装一个桌面。 e,g:仅安装 Xfce4 桌面:
(services (cons* (xfce-desktop-service)
%desktop-services))