ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Kali Linux: no pkgs found by apt-get (Debian amd64)

asked 2018-09-13 13:52:55 -0500

kamilhassaan gravatar image

updated 2018-09-13 14:01:57 -0500

gvdhoorn gravatar image

I am using Kali Linux.

kamil@kamil:~$ uname -a
Linux kamil 4.17.0-kali3-amd64 #1 SMP Debian 4.17.17-1kali1 (2018-08-21) x86_64 GNU/Linux
kamil@kamil:~$ lsb_release --codename
Codename:   kali-rolling

I am following this link. Everything is working fine till sudo apt-get update. The problem occurs when I type sudo apt-get install ros-kinetic-desktop-full. I get this error:

kamil@kamil:~$ sudo apt-get install ros-kinetic-desktop-full
[sudo] password for kamil: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-kinetic-desktop-full

I get nothing when i type apt-cache search ros-kinetic:

kamil@kamil:~$ apt-cache search ros-kinetic
kamil@kamil:~$

If I type roscore, I get this output:

kamil@kamil:~$ roscore
... logging to /kamil/.ros/log/29b871b2-b785-11e8-800b-0071cc1157ab/roslaunch-kamil-2965.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://kamil:42713/
ros_comm version 1.14.2


SUMMARY
========

PARAMETERS
 * /rosdistro: Debian
 * /rosversion: 1.14.2

NODES

auto-starting new master
process[master]: started with pid [2976]
ROS_MASTER_URI=http://kamil:11311/

setting /run_id to 29b871b2-b785-11e8-800b-0071cc1157ab
process[rosout-1]: started with pid [2987]
started core service [/rosout]

Also, if I type rostopic list:

kamil@kamil:~$ rostopic list
/rosout
/rosout_agg

It is not easy for me to shift to Ubuntu 16.04 or any other Linux distribution. Can someone please guide me on how can this problem be fixed? Also why do I get outputs when I type roscore and rostopic list if ROS is not properly installed?

edit retag flag offensive close merge delete

Comments

I've changed the title of your question to better reflect what the problem is.

The "I'm using Kali Linux" bit is important enough to add it to the title.

gvdhoorn gravatar image gvdhoorn  ( 2018-09-13 14:02:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-13 14:01:25 -0500

gvdhoorn gravatar image

updated 2018-09-13 14:03:31 -0500

I get nothing when i type apt-cache search ros-kinetic:

And that probably makes sense.

kamil@kamil:~$ lsb_release --codename
Codename:   kali-rolling

The output of lsb_release -sc is used to setup the /etc/apt/sources.list.d/ros-latest.list file.

Kali Linux identifies as kali-rolling as you've shown with lsb_release --codename.

This means that you've configured apt to search for files for an OS release with the codename kali-rolling. There is no such codename supported by the OR package repositories.

Can someone please guide me on how can this problem be fixed?

If Kali Linux is sufficiently Debian compatible, you'll have to figure out the codename of the Debian release it is based / derived from. You would then need to update /etc/apt/sources.list.d/ros-latest.list to use that codename, instead of kali-rolling.

After that, you'll have to set the ROS_OS_OVERRIDE environment variable permanently so that all ROS tools will assume that you're running a Debian release.

Alternatively: add support for Kali Linux detection to rospkg so ROS_OS_OVERRIDE is not needed.

Also why do I get outputs when I type roscore and rostopic list if ROS is not properly installed?

This is a guess (as I've not used Kali Linux), but probably because of wiki/UpstreamPackages. You'd do best to remove those.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-09-13 13:52:55 -0500

Seen: 747 times

Last updated: Sep 13 '18