/usr/share/terminfo/d/ds40-2 is in ncurses-term 6.1-1ubuntu1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/terminfo/d/../t/tty40
/usr/share/terminfo/d/../t/tty40