Hopefully solves problem reported in https://github.com/termux/termux-packages/issues/6865#issuecomment-855226281.