Dear imath maintainer; I believe there is something missing for a proper upgrade path of imath (*).
Would it be possible to add a Breaks: libopenexr-dev (<= 2.5.7-2) % sudo apt install libimath-dev [...] (Reading database ... 189739 files and directories currently installed.) Preparing to unpack .../libopenexr-dev_3.1.5-2_amd64.deb ... Unpacking libopenexr-dev (3.1.5-2) over (2.5.7-1) ... dpkg: error processing archive /var/cache/apt/archives/libopenexr-dev_3.1.5-2_amd64.deb (--unpack): trying to overwrite '/usr/include/OpenEXR/Iex.h', which is also in package libilmbase-dev:amd64 2.5.7-2 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/libopenexr-dev_3.1.5-2_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)