TX2中安装ros

 1 首先修改安装源

sudo vim /etc/apt/sources.list

打开文档替换为以下源

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

# newer versions of the distribution .
 
deb http : / / ports . ubuntu . com / ubuntu - ports / xenial main restricted
deb - src http : / / ports . ubuntu . com / ubuntu - ports / xenial main restricted
 
# # Major bug fix updates produced after the final release of the
# # distribution .
deb http : / / ports . ubuntu . com / ubuntu - ports / xenial - updates main restricted
deb - src http : / / ports . ubuntu . com / ubuntu - ports / xenial - updates main restricted
 
# # Uncomment the following two lines to add software from the 'universe'
# # repository .
# # N . B . software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
# # team . Also , please note that software in universe WILL NOT receive any
# # review or updates from the Ubuntu security team .
deb http : / / ports . ubuntu . com / ubuntu - ports / xenial universe
deb - src http : / / ports . ubuntu . com / ubuntu - ports / xenial universe
deb http : / / ports . ubuntu . com / ubuntu - ports / xenial - updates universe
deb - src http : / / ports . ubuntu . com / ubuntu - ports / xenial - updates universe
 
# # N . B . software from this repository may not have been tested as
# # extensively as that contained in the main release , although it includes
# # newer versions of some applications which may provide useful features .
# # Also , please note that software in backports WILL NOT receive any review
# # or updates from the Ubuntu security team .
# deb http : / / ports . ubuntu . com / ubuntu - ports / xenial - backports main restricted
# deb - src http : / / ports . ubuntu . com / ubuntu - ports / xenial - backports main restricted
 
deb http : / / ports . ubuntu . com / ubuntu - ports / xenial - security main restricted
deb - src http : / / ports . ubuntu . com / ubuntu - ports / xenial - security main restricted
# deb http : / / ports . ubuntu . com / ubuntu - ports / xenial - security universe
# deb - src http : / / ports . ubuntu . com / ubuntu - ports / xenial - security universe
# deb http : / / ports . ubuntu . com / ubuntu - ports / xenial - security multiverse
# deb - src http : / / ports . ubuntu . com / ubuntu - ports / xenial - security multiverse
保存之

2 更新源

sudo apt-get update

3 执行以下命令

sudo apt-get upgrade -y --force-yes

sudo apt-get -y install libboost-all-dev

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

sudo apt-key adv --keyserver hpk://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116
sudo apt-get update
sudo apt-get install -y ros-kinetic-desktop-full
apt-cache search ros-kinetic
sudo rosdep init
rosdp update
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo apt-get install python-rosinstall





你可能感兴趣的:(TX2)