常见错误一:fatal error: zlib.h: No such file or directory
解决办法: sudo apt-get install zlib1g-dev
常见错误二:fatal error: curses.h: No such file or directory #include <curses.h>
解决办法:sudo apt-get install libncurses5-dev libncursesw5-dev
常见错误三:E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
解决办法:sudo apt-get --fix-broken install
参考:https://blog.csdn.net/red10057/article/details/7981321
https://www.cnblogs.com/sodu88/p/linux-error-cursesh-no-such-file-directory.html