If you read the error message carefully, you will find that the issue is with python-argcomplete3
/var/lib/dpkg/info/ubuntu-make.postinst: register-python-argcomplete3
You don't have correct version of python-argcomplete3. You need to reinstall it. That's how I fixed this issue. The steps are as follows:
- Remove the ubuntu-make: sudo apt-get remove --purge --auto-remove ubuntu-make
- Show the available python3-argcomplete versions: sudo apt-cache showpkg python3-argcomplete
- Install the correct python3-argcomplete version: sudo apt-get install python3-argcomplete=0.8.1-1ubuntu2
- Reinstall ubuntu-make: sudo apt-get install ubuntu-make