GDB的安装:
1)gdb -v查看是否已安装
2)下载安装包:http://ftp.gnu.org/gnu/gdb/
注意版本兼容性
3)解压压缩包
4)①生成makefile文件,指令如下
./configure
②make(这是为了check文件,大概需要花费3,4min的时间)
make
③make install,最后一步了,安装即可
问题1:apt-get install gdb
Package has no installation candidate
解决方法:
# apt-get update
# apt-get upgrade
# apt-get install
问题2:
E: dpkg was interrupted, you must manually run ‘dpkg --configure -a’ to correct the problem.
解决方法:
dpkg --configure -a
https://blog.youkuaiyun.com/gudujianjsk/article/details/7893156
问题3:
Errors were encountered while processing: firmware-b43-installer firmware-b43legacy-installer E: Sub-process /usr/bin/dpkg returned an error code (1)
解决方法:
cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info
sudo apt-get upgrade
https://blog.youkuaiyun.com/qingfengxiaosong/article/details/87889995