18.04 干净的服务器安装在 `curtin command block-meta' 上失败

Seb*_*aan 5 server partitioning system-installation

我使用 Ubuntu 16.04 桌面安装作为服务器有一段时间,但随着 18.04 的发布,我决定对服务器版本进行全新安装。所以这是一个单盘单启动系统,我想用18.04服务器替换16.04桌面。

然而,Ubuntu 18.04 服务器安装程序在分区步骤中失败,包括整个磁盘的默认分区和手动选择的分区。日志显示了一个 Python stacktrace: the util.file_sizefunction from curtilfailed 就行

with open(path, 'rb') as fp:
Run Code Online (Sandbox Code Playgroud)

有错误OSError: [Errno 6] No such device or address: '/dev/sda2'。这是包含当前 16.04 桌面安装的(仍在运行的)扩展分区。我在 google、SO 或 askubuntu 上找不到相关案例,而且我不知道为什么该设备读取为不存在。如果我从安装程序退出到 shell 并尝试挂载/dev/sda2,我会收到错误消息

mount: /bla: /dev/sda2 is not a valid block device
Run Code Online (Sandbox Code Playgroud)

截断输出fdisk -l /dev/sda

...
Device    Boot ... Type
/dev/sda1  *       Linux
/dev/sda2          Extended
/dev/sda5          Linux LVM
Run Code Online (Sandbox Code Playgroud)

知道是什么导致了错误,我该如何规避这个问题?

小智 10

我在尝试删除 LVM 分区的安装程序时遇到了同样的错误。

安装失败后,选择转到命令行。从那里:

$ sudo fdisk -l (to see the drive name and see the partitions)

$ sudo parted

p

select /dev/sda (or whatever your drive is named)

p (too show the partitions and their numbers)

rm 1

rm 2

(etc until they are all gone)

q

$ sudo fdisk -l (verify the partitions are gone)
Run Code Online (Sandbox Code Playgroud)

重新启动并再次安装。