这个程序为啥会显示No Such File Or Directory?

man 8 switch_root

另外你应该 chroot 到 ../../.. 而不是 chdir。见 Escaping a chroot jail/1 | PyTux