Update pre_d7_install.sh

add apt-kex for Ubuntu and Debian linux.