I used an Ubuntu 16.04 desktop installation as a server for a while, but with the release of 18.04 I decided to do a clean install of the server edition. So this is a single-disk, single-boot system, where I want to replace 16.04 desktop with 18.04 server.
The Ubuntu 18.04 server installer however fails during the partitioning step, both with default partitioning of an entire disk and with manually picked partitions. The log shows a Python stacktrace: the
util.file_size function from
curtil fails on the line
with open(path, 'rb') as fp:
OSError: [Errno 6] No such device or address: '/dev/sda2'. This is the (still functioning) extended partition containing the current 16.04 desktop installation. I could not find relatable cases on google, SO or askubuntu, and I have no clue why the device reads as nonexistent. If I exit to shell from the installer and try to mount
/dev/sda2, I get the error
mount: /bla: /dev/sda2 is not a valid block device
truncated output from
fdisk -l /dev/sda:
... Device Boot ... Type /dev/sda1 * Linux /dev/sda2 Extended /dev/sda5 Linux LVM
Any idea what causes the error, and how can I circumvent the issue?