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.
Please post the contents of
/etc/apt/sources.list.d/ros-latest.list
.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
That looks fine. Does
apt-get update
still give an error?yes it dose. are there any alternatives to install ros.
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?According to this question, running
apt-get clean
and then runningapt-get update
again may work. Also deleting/var/lib/apt/lists/*
also helps, apparently.thanks a lot. it worked.