场景
# sudo apt-get install gdb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gdb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gdb' has no installation candidate
The online program is to update the source apt-get update, but there is no better source address
Solution
1) mounting the termcap
wget https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
./configure
the make
the make the install
2) mounted GDB
wget http://ftp.gnu.org/ GNU / GDB / GDB-7.8.tar.xz
the tar-7.8.tar.xz -xf GDB
CD-GDB 7.8 /
./configure
the make
sudo cp gdb/gdb /usr/local/bin/gdb
Note
gdb using source installation when an error is encountered: no termcap library found, install termcap