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





回答: 在Ubuntu上安装ROS,你可以按照以下步骤进行操作。首先,配置ROS软件源,可以使用以下命令将ROS软件源添加到apt源列表:sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' \[1\] 或者你也可以使用以下命令将ROS软件源添加到国科学技术大学的镜像源:sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list' \[2\] 接下来,你需要导入ROS软件源的密钥,可以使用以下命令导入密钥:sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 \[3\] 完成以上步骤后,你就可以使用apt命令安装ROS了。 #### 引用[.reference_title] - *1* [ubuntu18.04 安装ros(TX2 x86)](https://blog.csdn.net/JanKin_BY/article/details/120154932)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [Ubuntu系统安装ROS详细步骤](https://blog.csdn.net/qq_46127597/article/details/124859584)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值