现在没有可用的软件包 libgd2-dev,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
E: 软件包 libgd2-dev 还没有可供安装的候选者
原因如下:
Ubuntu的版本不同所导致下载软件名字不一样
With Ubuntu 6.10,
install the gd2 library with this command:
sudo apt-get install libgd2-dev
With Ubuntu 7.10, the gd2 library name has
changed, so you'll need to use the following:
sudo apt-get install libgd2-xpm-dev
PS:U can get more info here:
http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html