How to fix Cannot open your terminal '/dev/pts/#' - please check.

simply run :
script /dev/null
and try again.