Okay I finally fixed it. How I did it was this:
edited /var/dpkg/info/db2exc.prerm
commented out the line:
dasUser=$instDir/instance/daslist
then ran dpkg -r db2exc
I ran the daslist command myself a few times but there was no output. No idea why it was failing, but it was. The scripts for removing db2 need to be a lot less fragile I think.
Okay I finally fixed it. How I did it was this:
edited /var/dpkg/ info/db2exc. prerm
commented out the line:
dasUser= $instDir/ instance/ daslist
then ran dpkg -r db2exc
I ran the daslist command myself a few times but there was no output. No idea why it was failing, but it was. The scripts for removing db2 need to be a lot less fragile I think.