SUBIQUITY 失败。(我无法创建新标签 - 因此我只能在这里大声喊叫,抱歉)
我正在将我的服务器从 Ubuntu 18.04.4 LTS“桌面”映像升级到 20.04 LTS 服务器。
/dev/sda1 (ext4) 上的 /boot / /dev/sda3 (ext4) ZFS 池上的用户数据。
在完成选择现有分区并提交的过程后,subiquity 安装程序在创建 /dev/sda1 时始终失败。
重新使用(并重新格式化)现有分区,这不是一个不常见的情况吗?
我尝试保存此日志(并将三次尝试的所有日志提交给 Canonical),但在 USB 上找不到它们,也没有 casper-rw 文件(尽管设置了 4GB 的持久存储)。因此,提供数据来解决问题确实很困难。
幸运的是,我有根分区和启动分区的备份,所以我会将它们放回原位以使系统再次运行。
更新:重新添加root和boot,系统再次运行18.04.4。
崩溃日志记录:
get_blockdev_sector_size: (log=512, phys=512)
sda logical_block_size_bytes: 512
Verifying /dev/sda1 exists
Verifying /dev/sda1 size, expecting 1023000064 bytes, found 1023000064 bytes
Running command ['sfdisk', '--dump', '/dev/sda'] with allowed return codes [0] (capture=True)
An error occured handling 'partition-sda1': ValueError - dictionary update sequence element #3 has length 1; 2 is required
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring partition: partition-sda1
TIMED BLOCK_META: 4.140
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
Traceback (most recent call last):
File "/snap/subiquity/1772/lib/python3.6/site-packages/curtin/commands/main.py", line 202, in main
ret = args.func(args)
File "/snap/subiquity/1772/lib/python3.6/site-packages/curtin/log.py", line 97, in wrapper
return log_time("TIMED %s: " % msg, func, *args, **kwargs)
File "/snap/subiquity/1772/lib/python3.6/site-packages/curtin/log.py", line 79, in log_time
return func(*args, **kwargs)
File "/snap/subiquity/1772/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 105, in block_meta
return meta_custom(args)
File "/snap/subiquity/1772/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 1878, in meta_custom
handler(command, storage_config_dict)
File "/snap/subiquity/1772/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 850, in partition_handler
partition_verify(part_path, info)
File "/snap/subiquity/1772/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 754, in partition_verify
verify_ptable_flag(devpath, info['flag'])
File "/snap/subiquity/1772/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 733, in verify_ptable_flag
info = block.sfdisk_info(devpath)
File "/snap/subiquity/1772/lib/python3.6/site-packages/curtin/block/__init__.py", line 290, in sfdisk_info
return _sfdisk_parse(out.splitlines())
File "/snap/subiquity/1772/lib/python3.6/site-packages/curtin/block/__init__.py", line 261, in _sfdisk_parse
for item in rhs.replace(' ', '').split(',')))
ValueError: dictionary update sequence element #3 has length 1; 2 is required
dictionary update sequence element #3 has length 1; 2 is required
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'simple']
Exit code: 3
Reason: -
Stdout: start: cmd-install/stage-partitioning/builtin/cmd-block-meta: curtin command block-meta
get_path_to_storage_volume for volume partition-sda1({'device': 'disk-sda', 'size': 1023000064, 'wipe': 'superblock', 'flag': 'linux', 'number': 1, 'preserve': True, 'grub_device': False, 'type': 'partition', 'id': 'partition-sda1'})
get_path_to_storage_volume for volume disk-sda({'ptable': 'msdos', 'serial': 'Samsung_SSD_850_EVO_250GB_S2R4NX0H523042A', 'wwn': '0x5002538d40e8f355', 'path': '/dev/sda', 'preserve': True, 'name': '', 'grub_device': True, 'type': 'disk', 'id': 'disk-sda'})
Processing serial 0x5002538d40e8f355 via udev to 0x5002538d40e8f355
lookup_disks found: ['wwn-0x5002538d40e8f355', 'wwn-0x5002538d40e8f355-part3', 'wwn-0x5002538d40e8f355-part1', 'wwn-0x5002538d40e8f355-part2']
Running command ['udevadm', 'info', '--query=property', '--export', '/dev/sda'] with allowed return codes [0] (capture=True)
/dev/sda is multipath device? False
Running command ['multipath', '-c', '/dev/sda'] with allowed return codes [0] (capture=True)
/dev/sda is multipath device member? False
block.lookup_disk() returning path /dev/sda
Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False)
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED udevadm_settle(): 0.139
devsync happy - path /dev/sda now exists
return volume path /dev/sda
Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False)
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED udevadm_settle(): 0.127
devsync happy - path /dev/sda now exists
return volume path /dev/sda1
get_path_to_storage_volume for volume partition-sda3({'device': 'disk-sda', 'size': 32768000000, 'wipe': 'superblock', 'flag': 'linux', 'number': 3, 'preserve': True, 'grub_device': False, 'type': 'partition', 'id': 'partition-sda3'})
get_path_to_storage_volume for volume disk-sda({'ptable': 'msdos', 'serial': 'Samsung_SSD_850_EVO_250GB_S2R4NX0H523042A', 'wwn': '0x5002538d40e8f355', 'path': '/dev/sda', 'preserve': True, 'name': '', 'grub_device': True, 'type': 'disk', 'id': 'disk-sda'})
Processing serial 0x5002538d40e8f355 via udev to 0x5002538d40e8f355
lookup_disks found: ['wwn-0x5002538d40e8f355', 'wwn-0x5002538d40e8f355-part2', 'wwn-0x5002538d40e8f355-part1', 'wwn-0x5002538d40e8f355-part3']
Running command ['udevadm', 'info', '--query=property', '--export', '/dev/sda'] with allowed return codes [0] (capture=True)
答案1
从虚拟机配置中禁用网络,安装程序不会崩溃。安装 ubuntu 后,重新启用网络并照常配置
答案2
这看起来像https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1875560该问题已在 20.05.1 版本中修复,现在应将其作为安装的一部分提供给您。