/etc/apt/source.list.d/pve-no-sub.list: No such file or director
时间: 2023-12-18 16:04:34 浏览: 225
回答: 根据引用\[1\]和引用\[2\]的内容,你遇到了在执行sudo apt update时出现的报错。报错信息显示/etc/apt/sources.list.d/ros-latest.list文件中的第一行存在格式错误。为了解决这个问题,你可以尝试删除该文件并重新初始化ROS依赖,具体操作可以使用以下命令: sudo rm /etc/ros/rosdep/sources.list.d/20-default.list sudo rosdep init。另外,根据引用\[3\]的内容,你还遇到了/etc/apt/source.list.d/pve-no-sub.list文件或目录不存在的问题。你可以尝试使用wget命令重新下载阿里的CentOS-Base.repo文件,具体命令如下: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo。这样应该能够解决你遇到的问题。
#### 引用[.reference_title]
- *1* [ERROR: default sources list file already exists: /etc/ros/rosdep/sources.list.d/20-default.list](https://blog.csdn.net/ben_xiao_hai_123/article/details/122105403)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [【linux问题解决】E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros-latest.list ...](https://blog.csdn.net/weixin_43728093/article/details/124242972)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [安装好CenOS7后,使用yum 命令报错解决File contains no ... file: file:///etc/yum.repos.d/CentOS-Base.r](https://blog.csdn.net/weikzhao0521/article/details/108461442)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文