I have tried the following steps to verify, hopefully I am doing it correctly
1. Prepare a clean Jammy varant environment
2. If I understand correctly, ubuntu-image snap contains mtools in it, and by default the mtools in ubuntu-snap will be called first, so If I want to use the mtools from debian package, I need to remove the mtools staged in ubuntu-image snap, so I cloned the latest ubuntu-image code from github(https://github.com/canonical/ubuntu-image, commit ID:28b7b85) and rebuild a ubuntu-image snap without stage the mtools debian package
3. Install the ubuntu-image snap built in previous step
4. Use `apt source mtools` command
5. Apply the patch that you have provided in comment #1
6. Rebuild the debian package
7. Install the patched mtools debian package
8. Try to build the image by using ubuntu-image again
Hi Michael,
thanks for providing the info!
I have tried the following steps to verify, hopefully I am doing it correctly
1. Prepare a clean Jammy varant environment /github. com/canonical/ ubuntu- image, commit ID:28b7b85) and rebuild a ubuntu-image snap without stage the mtools debian package
2. If I understand correctly, ubuntu-image snap contains mtools in it, and by default the mtools in ubuntu-snap will be called first, so If I want to use the mtools from debian package, I need to remove the mtools staged in ubuntu-image snap, so I cloned the latest ubuntu-image code from github(https:/
3. Install the ubuntu-image snap built in previous step
4. Use `apt source mtools` command
5. Apply the patch that you have provided in comment #1
6. Rebuild the debian package
7. Install the patched mtools debian package
8. Try to build the image by using ubuntu-image again
Unfortunately, I still get the same error message