Ask Your Question
0

can't install ros on ubuntu?

asked 2017-04-24 19:38:52 -0500

nikhil98 gravatar image

updated 2017-04-25 04:15:55 -0500

gvdhoorn gravatar image

I'm new to Linux, so I followed the install instruction, created a source list and generated key.

On updating

sudo apt-get update

Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]     
Get:2 http://packages.ros.org/ros/ubuntu xenial InRelease [4,037 B]            
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial InRelease                     
Get:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]  
Get:6 http://packages.ros.org/ros/ubuntu xenial/main amd64 Packages [326 kB]   
Get:7 http://packages.ros.org/ros/ubuntu xenial/main i386 Packages [291 kB]
Err:7 http://packages.ros.org/ros/ubuntu xenial/main i386 Packages
  Hash Sum mismatch
Fetched 602 kB in 1s (336 kB/s)   
Reading package lists... Done
E: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/xenial/main/binary-i386/Packages.gz  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.

I got this error. On further following the steps i ended up with

sudo apt-get install ros-kinetic-desktop-full
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-kinetic-desktop-full

so please help.

edit retag flag offensive close merge delete

Comments

Please post the contents of /etc/apt/sources.list.d/ros-latest.list.

Geoff gravatar image Geoff  ( 2017-04-24 20:58:19 -0500 )edit

Thanks for reply. Here are the contents: $ cat /etc/apt/sources.list.d/ros-latest.list

deb http://packages.ros.org/ros/ubuntu xenial main

nikhil98 gravatar image nikhil98  ( 2017-04-25 07:55:31 -0500 )edit

That looks fine. Does apt-get update still give an error?

Geoff gravatar image Geoff  ( 2017-04-25 08:22:16 -0500 )edit

yes it dose. are there any alternatives to install ros.

nikhil98 gravatar image nikhil98  ( 2017-04-25 09:36:32 -0500 )edit

Yes, you can install from source. But it would take a while to compile. For the benefit of you and anyone else who has the same problem in the future, I hope we can fix the actual problem.

What does lsb_release -a print?

Geoff gravatar image Geoff  ( 2017-04-26 02:42:46 -0500 )edit
1

According to this question, running apt-get clean and then running apt-get update again may work. Also deleting /var/lib/apt/lists/* also helps, apparently.

Geoff gravatar image Geoff  ( 2017-04-26 02:47:05 -0500 )edit

thanks a lot. it worked.

nikhil98 gravatar image nikhil98  ( 2017-04-26 07:26:52 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-04-26 18:40:21 -0500

Geoff gravatar image

According to this question, running apt-get clean and then running apt-get update again may work. Deleting /var/lib/apt/lists/* also helps, apparently.

edit flag offensive delete link more
0

answered 2019-04-07 08:06:08 -0500

max_f gravatar image

Hello! I can install ROS on Ubuntu 18.10.

Not Found [52.209.63.52 80]

Error: repositary http://mirror-eu.packages.ros.org/ros... cosmic release does not contain file Release

Is it possible to download and install in another way?

thanks!

edit flag offensive delete link more

Comments

Please do not post your own question as an answer or comment in response to an existing question. Please post a new question after searching for existing answers that may solve your problem. See the support guidelines for how to use ROS Answers effectively.

Geoff gravatar image Geoff  ( 2019-04-14 18:33:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-04-24 19:38:52 -0500

Seen: 2,046 times

Last updated: Apr 26 '17