Source: mshr Followup-For: Bug #1000950 It's probably happening because petsc is not configured yet. I guess you're installing mshr and petsc in the same installation step? (i.e. petsc will be pulled in automatically as a dependency).
/usr/lib/petsc is an alternatives symlink, so it won't be available until libpetsc-real3.15-dev has been processed and configured. Can you confirm you *don't* get the mshr.pth warning if libpetsc-real3.15-dev has been installed prior to installing mshr? Can probably fix it with Pre-Depends instead of Depends. Drew