---- [[ subiquity step initial ]] ---- curtin: Installation started. (22.1-125-g7c18bf6a2) curtin: Installation finished. ---- [[ subiquity step partitioning ]] ---- curtin: Installation started. (22.1-125-g7c18bf6a2) start: cmd-install/stage-partitioning/builtin/cmd-block-meta: curtin command block-meta get_path_to_storage_volume for volume partition-0({'device': 'disk-sda', 'size': 126906007552, 'wipe': 'superblock', 'number': 2, 'preserve': False, 'offset': 1128267776, 'id': 'partition-0', 'type': 'partition'}) get_path_to_storage_volume for volume disk-sda({'ptable': 'gpt', 'serial': 'FORESEE_128GB_SSD_K44700J003729', 'wwn': '0x502b2a201d1c1b1a', 'path': '/dev/sda', 'preserve': True, 'name': '', 'grub_device': False, 'id': 'disk-sda', 'type': 'disk'}) Processing serial 0x502b2a201d1c1b1a via udev to 0x502b2a201d1c1b1a lookup_disks found: ['wwn-0x502b2a201d1c1b1a', 'wwn-0x502b2a201d1c1b1a-part1', 'wwn-0x502b2a201d1c1b1a-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 ['udevadm', 'info', '--query=property', '--export', '/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.067 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.064 devsync happy - path /dev/sda now exists return volume path /dev/sda2 block-meta: extracted devices to clear: ['/dev/sda2'] Declared block devices: ['/dev/sda2'] clearing devices=['/dev/sda2'] start: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: removing previous storage devices Running command ['mdadm', '--assemble', '--scan', '-v'] with allowed return codes [0, 1, 2] (capture=True) mdadm assemble scan results: mdadm: looking for devices for further assembly mdadm: no recogniseable superblock on /dev/loop13 mdadm: no recogniseable superblock on /dev/loop12 mdadm: no recogniseable superblock on /dev/loop11 mdadm: no recogniseable superblock on /dev/loop10 mdadm: no recogniseable superblock on /dev/loop9 mdadm: no recogniseable superblock on /dev/loop8 mdadm: no recogniseable superblock on /dev/sdb4 mdadm: no recogniseable superblock on /dev/sdb3 mdadm: Cannot assemble mbr metadata on /dev/sdb2 mdadm: no recogniseable superblock on /dev/sdb1 mdadm: Cannot assemble mbr metadata on /dev/sdb mdadm: no recogniseable superblock on /dev/sda2 mdadm: Cannot assemble mbr metadata on /dev/sda1 mdadm: Cannot assemble mbr metadata on /dev/sda mdadm: no recogniseable superblock on /dev/loop7 mdadm: no recogniseable superblock on /dev/loop6 mdadm: no recogniseable superblock on /dev/loop5 mdadm: no recogniseable superblock on /dev/loop4 mdadm: no recogniseable superblock on /dev/loop3 mdadm: no recogniseable superblock on /dev/loop2 mdadm: no recogniseable superblock on /dev/loop1 mdadm: no recogniseable superblock on /dev/loop0 mdadm: No arrays found in config file or automatically Running command ['mdadm', '--detail', '--scan', '-v'] with allowed return codes [0, 1] (capture=True) mdadm detail scan after assemble: Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.005 Running command ['pvscan'] with allowed return codes [0] (capture=True) Running command ['vgscan'] with allowed return codes [0] (capture=True) Running command ['vgchange', '--activate=y'] with allowed return codes [0] (capture=True) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.018 Loading kernel module bcache via modprobe Running command ['modprobe', '--use-blacklist', 'bcache'] with allowed return codes [0] (capture=False) Generating device storage trees for path(s): ['/dev/sda2'] devname '/sys/class/block/sda2' had holders: [] Current device storage tree: sda2 Shutdown Plan: {'level': 0, 'device': '/sys/class/block/sda2', 'dev_type': 'partition'} shutdown running on holder type: 'partition' syspath: '/sys/class/block/sda2' Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/sda'] with allowed return codes [0] (capture=True) get_blockdev_sector_size: info: { "sda": { "ALIGNMENT": "0", "DISC-ALN": "0", "DISC-GRAN": "512", "DISC-MAX": "2147450880", "DISC-ZERO": "0", "FSTYPE": "", "GROUP": "disk", "KNAME": "sda", "LABEL": "", "LOG-SEC": "512", "MAJ:MIN": "8:0", "MIN-IO": "512", "MODE": "brw-rw----", "MODEL": "FORESEE 128GB SSD", "MOUNTPOINT": "", "NAME": "sda", "OPT-IO": "0", "OWNER": "root", "PHY-SEC": "512", "RM": "0", "RO": "0", "ROTA": "0", "RQ-SIZE": "64", "SIZE": "128035676160", "STATE": "running", "TYPE": "disk", "UUID": "", "device_path": "/dev/sda" }, "sda1": { "ALIGNMENT": "0", "DISC-ALN": "0", "DISC-GRAN": "512", "DISC-MAX": "2147450880", "DISC-ZERO": "0", "FSTYPE": "vfat", "GROUP": "disk", "KNAME": "sda1", "LABEL": "", "LOG-SEC": "512", "MAJ:MIN": "8:1", "MIN-IO": "512", "MODE": "brw-rw----", "MODEL": "", "MOUNTPOINT": "", "NAME": "sda1", "OPT-IO": "0", "OWNER": "root", "PHY-SEC": "512", "RM": "0", "RO": "0", "ROTA": "0", "RQ-SIZE": "64", "SIZE": "1127219200", "STATE": "", "TYPE": "part", "UUID": "1002-F50E", "device_path": "/dev/sda1" }, "sda2": { "ALIGNMENT": "0", "DISC-ALN": "0", "DISC-GRAN": "512", "DISC-MAX": "2147450880", "DISC-ZERO": "0", "FSTYPE": "ext4", "GROUP": "disk", "KNAME": "sda2", "LABEL": "", "LOG-SEC": "512", "MAJ:MIN": "8:2", "MIN-IO": "512", "MODE": "brw-rw----", "MODEL": "", "MOUNTPOINT": "/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe", "NAME": "sda2", "OPT-IO": "0", "OWNER": "root", "PHY-SEC": "512", "RM": "0", "RO": "0", "ROTA": "0", "RQ-SIZE": "64", "SIZE": "126906007552", "STATE": "", "TYPE": "part", "UUID": "4aff8685-d1be-478c-885e-9b4d10b67afe", "device_path": "/dev/sda2" } } get_blockdev_sector_size: (log=512, phys=512) Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID'] with allowed return codes [0] (capture=True) Checking if /dev/sda2 is a swap device Found swap magic: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' wiping superblock on /dev/sda2 wiping /dev/sda2 attempt 1/4 Running command ['wipefs', '--all', '--force', '/dev/sda2'] with allowed return codes [0] (capture=False) /dev/sda2: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef wiping 1M on /dev/sda2 at offsets [0, -1048576] Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} wiping device '/dev/sda2' failed on attempt 1/4. sleeping 1s before retry wiping /dev/sda2 attempt 2/4 Running command ['wipefs', '--all', '--force', '/dev/sda2'] with allowed return codes [0] (capture=False) wiping 1M on /dev/sda2 at offsets [0, -1048576] Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} wiping device '/dev/sda2' failed on attempt 2/4. sleeping 3s before retry wiping /dev/sda2 attempt 3/4 Running command ['wipefs', '--all', '--force', '/dev/sda2'] with allowed return codes [0] (capture=False) wiping 1M on /dev/sda2 at offsets [0, -1048576] Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} wiping device '/dev/sda2' failed on attempt 3/4. sleeping 5s before retry wiping /dev/sda2 attempt 4/4 Running command ['wipefs', '--all', '--force', '/dev/sda2'] with allowed return codes [0] (capture=False) wiping 1M on /dev/sda2 at offsets [0, -1048576] Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} finish: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: FAIL: removing previous storage devices TIMED BLOCK_META: 14.787 finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta Traceback (most recent call last): File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/__init__.py", line 1166, in exclusive_open fd = os.open(path, flags) OSError: [Errno 16] Device or resource busy: '/dev/sda2' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/commands/main.py", line 202, in main ret = args.func(args) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/log.py", line 97, in wrapper return log_time("TIMED %s: " % msg, func, *args, **kwargs) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/log.py", line 79, in log_time return func(*args, **kwargs) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/commands/block_meta.py", line 118, in block_meta meta_clear(devices, state.get('report_stack_prefix', '')) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/commands/block_meta.py", line 2184, in meta_clear clear_holders.clear_holders(devices) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/clear_holders.py", line 638, in clear_holders shutdown_function(dev_info['device']) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/clear_holders.py", line 311, in wipe_superblock _wipe_superblock(blockdev) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/clear_holders.py", line 344, in _wipe_superblock block.wipe_volume(blockdev, mode='superblock', exclusive=exclusive) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/__init__.py", line 1343, in wipe_volume quick_zero(path, partitions=False, exclusive=exclusive) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/__init__.py", line 1256, in quick_zero util.not_exclusive_retry( File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/util.py", line 1328, in not_exclusive_retry return fun(*args, **kwargs) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/__init__.py", line 1278, in zero_file_at_offsets with exclusive_open(path, exclusive=exclusive) as fp: File "/snap/ubuntu-desktop-installer/1267/usr/lib/python3.10/contextlib.py", line 135, in __enter__ return next(self.gen) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/__init__.py", line 1188, in exclusive_open raise NotExclusiveError from exc curtin.util.NotExclusiveError 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-0({'device': 'disk-sda', 'size': 126906007552, 'wipe': 'superblock', 'number': 2, 'preserve': False, 'offset': 1128267776, 'id': 'partition-0', 'type': 'partition'}) get_path_to_storage_volume for volume disk-sda({'ptable': 'gpt', 'serial': 'FORESEE_128GB_SSD_K44700J003729', 'wwn': '0x502b2a201d1c1b1a', 'path': '/dev/sda', 'preserve': True, 'name': '', 'grub_device': False, 'id': 'disk-sda', 'type': 'disk'}) Processing serial 0x502b2a201d1c1b1a via udev to 0x502b2a201d1c1b1a lookup_disks found: ['wwn-0x502b2a201d1c1b1a', 'wwn-0x502b2a201d1c1b1a-part1', 'wwn-0x502b2a201d1c1b1a-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 ['udevadm', 'info', '--query=property', '--export', '/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.067 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.064 devsync happy - path /dev/sda now exists return volume path /dev/sda2 block-meta: extracted devices to clear: ['/dev/sda2'] Declared block devices: ['/dev/sda2'] clearing devices=['/dev/sda2'] start: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: removing previous storage devices Running command ['mdadm', '--assemble', '--scan', '-v'] with allowed return codes [0, 1, 2] (capture=True) mdadm assemble scan results: mdadm: looking for devices for further assembly mdadm: no recogniseable superblock on /dev/loop13 mdadm: no recogniseable superblock on /dev/loop12 mdadm: no recogniseable superblock on /dev/loop11 mdadm: no recogniseable superblock on /dev/loop10 mdadm: no recogniseable superblock on /dev/loop9 mdadm: no recogniseable superblock on /dev/loop8 mdadm: no recogniseable superblock on /dev/sdb4 mdadm: no recogniseable superblock on /dev/sdb3 mdadm: Cannot assemble mbr metadata on /dev/sdb2 mdadm: no recogniseable superblock on /dev/sdb1 mdadm: Cannot assemble mbr metadata on /dev/sdb mdadm: no recogniseable superblock on /dev/sda2 mdadm: Cannot assemble mbr metadata on /dev/sda1 mdadm: Cannot assemble mbr metadata on /dev/sda mdadm: no recogniseable superblock on /dev/loop7 mdadm: no recogniseable superblock on /dev/loop6 mdadm: no recogniseable superblock on /dev/loop5 mdadm: no recogniseable superblock on /dev/loop4 mdadm: no recogniseable superblock on /dev/loop3 mdadm: no recogniseable superblock on /dev/loop2 mdadm: no recogniseable superblock on /dev/loop1 mdadm: no recogniseable superblock on /dev/loop0 mdadm: No arrays found in config file or automatically Running command ['mdadm', '--detail', '--scan', '-v'] with allowed return codes [0, 1] (capture=True) mdadm detail scan after assemble: Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.005 Running command ['pvscan'] with allowed return codes [0] (capture=True) Running command ['vgscan'] with allowed return codes [0] (capture=True) Running command ['vgchange', '--activate=y'] with allowed return codes [0] (capture=True) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.018 Loading kernel module bcache via modprobe Running command ['modprobe', '--use-blacklist', 'bcache'] with allowed return codes [0] (capture=False) Generating device storage trees for path(s): ['/dev/sda2'] devname '/sys/class/block/sda2' had holders: [] Current device storage tree: sda2 Shutdown Plan: {'level': 0, 'device': '/sys/class/block/sda2', 'dev_type': 'partition'} shutdown running on holder type: 'partition' syspath: '/sys/class/block/sda2' Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/sda'] with allowed return codes [0] (capture=True) get_blockdev_sector_size: info: { "sda": { "ALIGNMENT": "0", "DISC-ALN": "0", "DISC-GRAN": "512", "DISC-MAX": "2147450880", "DISC-ZERO": "0", "FSTYPE": "", "GROUP": "disk", "KNAME": "sda", "LABEL": "", "LOG-SEC": "512", "MAJ:MIN": "8:0", "MIN-IO": "512", "MODE": "brw-rw----", "MODEL": "FORESEE 128GB SSD", "MOUNTPOINT": "", "NAME": "sda", "OPT-IO": "0", "OWNER": "root", "PHY-SEC": "512", "RM": "0", "RO": "0", "ROTA": "0", "RQ-SIZE": "64", "SIZE": "128035676160", "STATE": "running", "TYPE": "disk", "UUID": "", "device_path": "/dev/sda" }, "sda1": { "ALIGNMENT": "0", "DISC-ALN": "0", "DISC-GRAN": "512", "DISC-MAX": "2147450880", "DISC-ZERO": "0", "FSTYPE": "vfat", "GROUP": "disk", "KNAME": "sda1", "LABEL": "", "LOG-SEC": "512", "MAJ:MIN": "8:1", "MIN-IO": "512", "MODE": "brw-rw----", "MODEL": "", "MOUNTPOINT": "", "NAME": "sda1", "OPT-IO": "0", "OWNER": "root", "PHY-SEC": "512", "RM": "0", "RO": "0", "ROTA": "0", "RQ-SIZE": "64", "SIZE": "1127219200", "STATE": "", "TYPE": "part", "UUID": "1002-F50E", "device_path": "/dev/sda1" }, "sda2": { "ALIGNMENT": "0", "DISC-ALN": "0", "DISC-GRAN": "512", "DISC-MAX": "2147450880", "DISC-ZERO": "0", "FSTYPE": "ext4", "GROUP": "disk", "KNAME": "sda2", "LABEL": "", "LOG-SEC": "512", "MAJ:MIN": "8:2", "MIN-IO": "512", "MODE": "brw-rw----", "MODEL": "", "MOUNTPOINT": "/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe", "NAME": "sda2", "OPT-IO": "0", "OWNER": "root", "PHY-SEC": "512", "RM": "0", "RO": "0", "ROTA": "0", "RQ-SIZE": "64", "SIZE": "126906007552", "STATE": "", "TYPE": "part", "UUID": "4aff8685-d1be-478c-885e-9b4d10b67afe", "device_path": "/dev/sda2" } } get_blockdev_sector_size: (log=512, phys=512) Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID'] with allowed return codes [0] (capture=True) Checking if /dev/sda2 is a swap device Found swap magic: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' wiping superblock on /dev/sda2 wiping /dev/sda2 attempt 1/4 Running command ['wipefs', '--all', '--force', '/dev/sda2'] with allowed return codes [0] (capture=False) /dev/sda2: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef wiping 1M on /dev/sda2 at offsets [0, -1048576] Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} wiping device '/dev/sda2' failed on attempt 1/4. sleeping 1s before retry wiping /dev/sda2 attempt 2/4 Running command ['wipefs', '--all', '--force', '/dev/sda2'] with allowed return codes [0] (capture=False) wiping 1M on /dev/sda2 at offsets [0, -1048576] Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} wiping device '/dev/sda2' failed on attempt 2/4. sleeping 3s before retry wiping /dev/sda2 attempt 3/4 Running command ['wipefs', '--all', '--force', '/dev/sda2'] with allowed return codes [0] (capture=False) wiping 1M on /dev/sda2 at offsets [0, -1048576] Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} wiping device '/dev/sda2' failed on attempt 3/4. sleeping 5s before retry wiping /dev/sda2 attempt 4/4 Running command ['wipefs', '--all', '--force', '/dev/sda2'] with allowed return codes [0] (capture=False) wiping 1M on /dev/sda2 at offsets [0, -1048576] Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} Failed to exclusively open path: /dev/sda2 devname '/dev/sda2' had holders: [] Device holders with exclusive access: [] Device mounts: ['/dev/sda2 /media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0'] Running command ['fuser', '--verbose', '--mount', '/dev/sda2'] with allowed return codes [0] (capture=True) Possible users of /dev/sda2: {'kernel': ['/dev/sda2:', 'root', 'mount', '/media/ubuntu/4aff8685-d1be-478c-885e-9b4d10b67afe']} finish: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: FAIL: removing previous storage devices TIMED BLOCK_META: 14.787 finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta Traceback (most recent call last): File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/__init__.py", line 1166, in exclusive_open fd = os.open(path, flags) OSError: [Errno 16] Device or resource busy: '/dev/sda2' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/commands/main.py", line 202, in main ret = args.func(args) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/log.py", line 97, in wrapper return log_time("TIMED %s: " % msg, func, *args, **kwargs) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/log.py", line 79, in log_time return func(*args, **kwargs) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/commands/block_meta.py", line 118, in block_meta meta_clear(devices, state.get('report_stack_prefix', '')) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/commands/block_meta.py", line 2184, in meta_clear clear_holders.clear_holders(devices) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/clear_holders.py", line 638, in clear_holders shutdown_function(dev_info['device']) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/clear_holders.py", line 311, in wipe_superblock _wipe_superblock(blockdev) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/clear_holders.py", line 344, in _wipe_superblock block.wipe_volume(blockdev, mode='superblock', exclusive=exclusive) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/__init__.py", line 1343, in wipe_volume quick_zero(path, partitions=False, exclusive=exclusive) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/__init__.py", line 1256, in quick_zero util.not_exclusive_retry( File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/util.py", line 1328, in not_exclusive_retry return fun(*args, **kwargs) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/__init__.py", line 1278, in zero_file_at_offsets with exclusive_open(path, exclusive=exclusive) as fp: File "/snap/ubuntu-desktop-installer/1267/usr/lib/python3.10/contextlib.py", line 135, in __enter__ return next(self.gen) File "/snap/ubuntu-desktop-installer/1267/lib/python3.10/site-packages/curtin/block/__init__.py", line 1188, in exclusive_open raise NotExclusiveError from exc curtin.util.NotExclusiveError Stderr: ''