首先发现没有source命令,非常奇怪,google发现是dash命令的问题。

$ls -l `which sh` /bin/sh -> dash $sudo dpkg-reconfigure dash #Select "no" when you're asked [...] $ls -l `which sh` /bin/sh -> bash

修改之后,发现正常了
原来 bash_completion, .bashrc这些脚本因为不能使用source导致一些功能缺失。