我正在尝试安装 ROS,但无法安装,因为:
E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros-latest.list (Suite)
E: The list of sources could not be read.
我该怎么办?
历史:
1 sudo apt update
2 sudo apt upgrade
3 sudo apt update
4 sudo apt install bpython
5 bpython
6 sudo apt install x11-apps
7 xeyes &
8 xcalc
9 sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
10 sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu
11 (lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
12 sudo apt install curl # if you haven't already installed curl
13 sudo apt install curl
14 sudo apt update
15 sudo apt install ros-melodic-desktop-full
16 cat /etc/apt/sources.list.d/ros-latest.list
17 sudo add-apt-repository universe
18 sudo add-apt-repository multiverse
19 sudo apt update
20 sudo add-apt-repository universe
21 /etc/apt/sources.list.d/ros-latest.list
22 history
请求 1:
cat /etc/apt/sources.list.d/ros-latest.list
deb http://packages.ros.org/ros/ubuntu
(lsb_release -sc) main
答案1
.list
文件中的这些行
deb http://packages.ros.org/ros/ubuntu
(lsb_release -sc) main
应该是这样的一行
deb http://packages.ros.org/ros/ubuntu bionic main