使用实时构建生成 Ubuntu 12.04 时出错

使用实时构建生成 Ubuntu 12.04 时出错

我正在尝试使用实时构建来构建 Ubuntu 映像:

lb config --mode ubuntu --distribution precise --debian-installer true --debian-installer true --debian-installer-gui true

我收到以下错误:

Reading state information...
Package busybox is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  busybox-static:i386 busybox-static

E: Package 'busybox' has no installation candidate
P: Begin unmounting filesystems...

答案1

live-builder 默认在构建 chroot 时仅使用“main”组件。这对于 Debian 来说没问题,因为安装基本系统所需的所有软件包都存在于 main 中。不幸的是,Ubuntu 已将 busybox 放在“universe”中,因此您需要添加--archive-areas "main universe"并可能也--parent-archive-areas "main universe"添加到 lb 配置调用中才能找到它。

答案2

然后安装这两个,以便构建,如上文所述。只需打开终端并输入

sudo apt-get install busybox-static:i386 busybox-static

相关内容