文章目录
团队博客: 汽车电子社区
一、 修改系统时间
sudo date -s "2024-09-12 09:27:45"
二、配置网络
sudo ip link set dev mgbe3_0 down
sudo ip addr add 192.168.3.100/24 dev mgbe3_0
sudo ip link set dev mgbe3_0 up
三、修改根分区为可读写
sudo mount -o remount,rw /
四、修改系统源为阿里源
将如下内容替换到/etc/apt/sources.list文件
deb https://mirrors.aliyun.com/ubuntu-ports/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-backports main restricted universe multiverse
五、更新系统软件
sudo apt-get update
sudo apt-get upgrade
六、添加Ros源到系统
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" >> /etc/apt/sources.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt-get update
![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/3709999a45b14509be9fb2500f717dfe.jpeg
七、安装aptitude
sudo apt install aptitude -y
八、安装Ros
sudo aptitude install ros-noetic-desktop-full
8.1、关键节点1
8.2、关键节点2
8.3、关键节点3
8.4、关键节点4
九、安装依赖
sudo apt-get install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential python3-pip
sudo apt-get install ros-noetic-roslaunch
十、rosdep初始化&更新
sudo rosdep init
rosdep update
十一、设置环境变量
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc