Robotics StackExchange | Archived questions

can't install ros on ubuntu?

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.

Asked by nikhil98 on 2017-04-24 19:38:52 UTC

Comments

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

Asked by Geoff on 2017-04-24 20:58:19 UTC

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

Asked by nikhil98 on 2017-04-25 07:55:31 UTC

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

Asked by Geoff on 2017-04-25 08:22:16 UTC

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

Asked by nikhil98 on 2017-04-25 09:36:32 UTC

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?

Asked by Geoff on 2017-04-26 02:42:46 UTC

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.

Asked by Geoff on 2017-04-26 02:47:05 UTC

thanks a lot. it worked.

Asked by nikhil98 on 2017-04-26 07:26:52 UTC

Answers

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.

Asked by Geoff on 2017-04-26 18:40:21 UTC

Comments

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/ubuntu cosmic release does not contain file Release

Is it possible to download and install in another way?

thanks!

Asked by max_f on 2019-04-07 08:06:08 UTC

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.

Asked by Geoff on 2019-04-14 18:33:40 UTC