我正在尝试安装 NXT-ROS,为了做到这一点,我需要libboost1.40-all-dev
当我输入命令时,sudo apt-get install libboost1.40-dev-all
我得到以下信息:
root@joel:~# sudo apt-get install libboost1.40-all-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libboost1.40-all-dev 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
N: Ignoring file 'ros-latest.listwget' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'ros-latest.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Package 'libboost1.40-all-dev' has no installation candidate
root@joel:~#
顺便说一句,我不知道最后几行是什么意思,所以如果它们不是导致问题的原因,就忽略它们吧,但如果有简单的解决方法,请告诉我。谢谢!
答案1
libboost1.40-all-dev
是一个非常老的软件包,仅适用于 Ubuntu 10.04。截至本月底,此软件包仍然可用,但仅适用于 Ubuntu 10.04 的服务器版本。
如果您想坚持使用包管理,最好安装元包:
sudo apt-get install libboost-all-dev
在 Ubuntu 14.04 上这将帮助您libboost1.54-all-dev
安装。
否则,如果你确实需要 1.40 版本,那么你必须从Sourceforge并手动安装。我无法在提升网站。