求指教,ubuntu14.04下安装ROS不成功。

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
niba
帖子: 9
注册时间: 2017-08-01 9:49
系统: ubuntu14.04

求指教,ubuntu14.04下安装ROS不成功。

#1

帖子 niba » 2017-08-01 10:14

ubuntu14.04下安装ROS,执行sudo apt-get update时出现校验和不符的情况,错误描述如下:
W:无法下载:http://extras.ubuntu.com/ubuntu/dists/t ... rce/Source Hash 检验和不符
W:无法下载:http://extras.ubuntu.com/ubuntu/dists/t ... 6/Packages Hash 检验和不符
.....下面还有很多类似的无法下载的错误
附件
错误截图
错误截图
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求指教,ubuntu14.04下安装ROS不成功。

#2

帖子 poloshiao » 2017-08-01 10:52

ubuntu14.04下安装ROS,执行sudo apt-get update时出现校验和不符的情况,错误描述如下:
W:无法下载:http://extras.ubuntu.com/ubuntu/dists/t ... rce/Source Hash 检验和不符
W:无法下载:http://extras.ubuntu.com/ubuntu/dists/t ... 6/Packages Hash 检验和不符
.....下面还有很多类似的无法下载的错误
參考
viewtopic.php?p=3194149#p3194149
niba
帖子: 9
注册时间: 2017-08-01 9:49
系统: ubuntu14.04

Re: 求指教,ubuntu14.04下安装ROS不成功。

#3

帖子 niba » 2017-08-03 11:03

还是没有解决,换了各种源,最好的结果都是还有一条Hash 校验和不符,仓库配置和update的结果截图在下面,本人是Ubuntu菜鸟,望指点
附件
3.png
2.png
1.png
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求指教,ubuntu14.04下安装ROS不成功。

#4

帖子 poloshiao » 2017-08-03 16:30

2.png
1. 最後一項 ros 的套件庫 並沒有 打勾
3.png
2. 為何還是有 ros 套件庫 的存取動作 ?

3. 把下面指令 複製 貼進終端機 執行
3-1. sudo cat /etc/apt/sources.list
3-2. sudo cat /etc/apt/sources.list.d/*
把結果直接 選取/複製 貼上來
niba
帖子: 9
注册时间: 2017-08-01 9:49
系统: ubuntu14.04

Re: 求指教,ubuntu14.04下安装ROS不成功。

#5

帖子 niba » 2017-08-03 17:50

poloshiao 写了:
2.png
1. 最後一項 ros 的套件庫 並沒有 打勾
3.png
2. 為何還是有 ros 套件庫 的存取動作 ?

3. 把下面指令 複製 貼進終端機 執行
3-1. sudo cat /etc/apt/sources.list
3-2. sudo cat /etc/apt/sources.list.d/*
把結果直接 選取/複製 貼上來
1.执行 sudo cat /etc/apt/sources.list的结果
# deb cdrom:[Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release i386 (20160803)]/ trusty main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted #Added by software-properties

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-updates restricted main multiverse universe #Added by software-properties

## 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://cn.archive.ubuntu.com/ubuntu/ trusty universe
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## 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://cn.archive.ubuntu.com/ubuntu/ trusty-security main restricted multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-security restricted main multiverse universe #Added by software-properties
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-security universe

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main

2.执行sudo cat /etc/apt/sources.list.d/*的结果
deb http://packages.ros.org/ros/ubuntu trusty main
# deb http://packages.ros.org/ros/ubuntu trusty main
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求指教,ubuntu14.04下安装ROS不成功。

#6

帖子 poloshiao » 2017-08-03 19:59

2. 為何還是有 ros 套件庫 的存取動作 ?
2.执行sudo cat /etc/apt/sources.list.d/*的结果
deb http://packages.ros.org/ros/ubuntu trusty main
# deb http://packages.ros.org/ros/ubuntu trusty main
1. sudo ls -Al /etc/apt/sources.list.d
看看 檔案名稱.list
2. 使用合適的編輯工具 例如 gedit
gksudo gedit /etc/apt/sources.list.d/檔案名稱.list (檔案名稱請以正確的取代)
# deb http://packages.ros.org/ros/ubuntu trusty main
# deb http://packages.ros.org/ros/ubuntu trusty main
2-1. 或者 把這兩行 全部刪除
2-2. 第一次使用 gksudo 需要先安裝 gksu 套件
回复