一、配置Linux清华镜像源
这里我以 Ubuntu 20.04LTS 为例来配置 清华源
首先进入清华大学开源软件镜像站(https://mirrors.tuna.tsinghua.edu.cn)
在列表里选择自己的系统,这里我选择的是 Ubuntu,点击后面的问号图案
进入后选择自己的系统版本 20.04LTS
随即文本框中会生成你需要的 sources.list 文件内容,打开 Ubuntu 的终端,输入下面的命令
sudo apt update
# 将 sources.list 拷贝到桌面
cp /etc/apt/sources.list ~/Desktop
# 打开 sources.list 进行编辑
sudo gedit /etc/apt/sources.list
打开文件后,将里面的所有内容替换为之前网页内文本框里的内容,例如
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
然后保存关闭,这样清华源就配置好啦!
二.Ubuntu 20.04LTS安装ROS及rosdep初始化问题
https://blog.csdn.net/wanghq2013/article/details/122130089
打开gazebo
make px4_sitl_default gazebo
ROS环境变量设置
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
ROS安装依赖
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
标签:Ubuntu20.04,cn,mirrors,tsinghua,https,edu,tuna,ROS,rosdep From: https://www.cnblogs.com/zbw-m/p/17417597.html