处理软件包 initramfs-tools (--configure) 时出错:

处理软件包 initramfs-tools (--configure) 时出错:

我正在 Virtual Box ubuntu VDI 22.04 中安装 openstack。我尝试运行 ./stack.sh

但我收到错误消息:

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.2.0-34-generic
I: The initramfs will attempt to resume from /dev/sda4
I: (UUID=fea6d28a-87d8-4e12-90f8-127fb098d3ce)
I: Set the RESUME variable to override this.
zstd: error 25 : Write error : No space left on device (cannot write compressed block) 
E: mkinitramfs failure zstd -q -1 -T0 25
update-initramfs: failed for /boot/initrd.img-6.2.0-34-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
+functions-common:apt_get:1                exit_trap
+./stack.sh:exit_trap:545                  local r=100
++./stack.sh:exit_trap:546                  jobs -p
+./stack.sh:exit_trap:546                  jobs=
+./stack.sh:exit_trap:549                  [[ -n '' ]]
+./stack.sh:exit_trap:555                  '[' -f '' ']'
+./stack.sh:exit_trap:560                  kill_spinner
+./stack.sh:kill_spinner:455               '[' '!' -z '' ']'
+./stack.sh:exit_trap:562                  [[ 100 -ne 0 ]]
+./stack.sh:exit_trap:563                  echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:565                  type -p generate-subunit
+./stack.sh:exit_trap:568                  [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:571                  /usr/bin/python3.10 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2023-10-11-180629.txt for details
+./stack.sh:exit_trap:580                  exit 100

这是否意味着我必须为虚拟机添加存储容量?还是缺少了其他东西?

答案1

错误是,,zstd: error 25 : Write error : No space left on device (cannot write compressed block)这意味着你的 Ubuntu 安装空间不足。

如果你安装了很多程序,那么至少需要 60 GB 左右的空间作为 Ubuntu 的根分区(无论是否是虚拟机)。现在你有两个选择。


  1. 你可以放大virtualbox 磁盘。这将涉及扩大磁盘,然后使用 GParted 实时映像扩大磁盘内的根分区。

  2. 如果您不想经历所有这些麻烦,那么请在另一个虚拟机中重新安装 Ubuntu,并确保设置至少 60-70 GB 的磁盘空间。

相关内容