How to install catkin correctly
Straight dump of the error messages:
notsotechnical@notsotechnical-VirtualBox:~$ **sudo apt-get install ros-melodic-catkin**
Reading package lists... Done
Building dependency tree
Reading state information... Done
**E: Unable to locate package ros-melodic-catkin**
notsotechnical@notsotechnical-VirtualBox:~$ **sudo apt-get install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential**
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-catkin-pkg : Depends: python-catkin-pkg-modules (>= 0.4.13) but it is not going to be installed
python-rosdep : Depends: python-rospkg (>= 1.1.8) but 1.1.4-1 is to be installed
Depends: python-rosdistro (>= 0.7.0) but it is not going to be installed
python-rosinstall : Depends: python-vcstools (>= 0.1.38) but it is not going to be installed
Depends: python-rosdistro (>= 0.3.0) but it is not going to be installed
Depends: subversion but it is not going to be installed
Depends: mercurial but it is not going to be installed
Depends: bzr but it is not going to be installed
python-rosinstall-generator : Depends: python-rosdistro (>= 0.7.3) but it is not going to be installed
python-wstool : Depends: python-vcstools (>= 0.1.38) but it is not going to be installed
Depends: subversion but it is not going to be installed
Depends: mercurial but it is not going to be installed
Depends: bzr but it is not going to be installed
**E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).**
notsotechnical@notsotechnical-VirtualBox:~$ **apt --fix-broken install**
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
notsotechnical@notsotechnical-VirtualBox:~$ sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:6 http://packages.ros.org/ros/ubuntu trusty InRelease
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Reading package lists... Done
notsotechnical@notsotechnical-VirtualBox:~$ sudo apt-get install ros-melodic-catkin
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-melodic-catkin
notsotechnical@notsotechnical-VirtualBox:~$ sudo apt-get install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-catkin-pkg : Depends: python-catkin-pkg-modules (>= 0.4.13) but it is not going to be installed
python-rosdep : Depends: python-rospkg (>= 1.1.8) but 1.1.4-1 is to be installed
Depends: python-rosdistro (>= 0.7.0) but it is not going to be installed
python-rosinstall : Depends: python-vcstools (>= 0.1.38) but it is not going to be installed
Depends: python-rosdistro (>= 0.3.0 ...
This seems strange: you have configured
apt
to download package indices for Ubuntu Trusty (ie:14.04
), but then askapt
toinstall ros-melodic-catkin
. ROS Melodic is only supported on Ubuntu Bionic (ie:18.04
) so that cannot work.You cannot install ROS Indigo packages on 18.04 either.
You've tagged your question with
ubuntu-18.04
.Can you please clarify which version of Ubuntu you are using and which version of ROS you want to install?
Sorry for the confusion. I have indigo... I also did this: notsotechnical@notsotechnical-VirtualBox:~/build/build$ sudo apt-get install ros-indigo-catkin [sudo] password for notsotechnical: Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package ros-indigo-catkin
notsotechnical@notsotechnical-VirtualBox:~/build/build$ sudo apt-get install python-catkin-pkg [sudo] password for notsotechnical: Reading package lists... Done Building dependency tree
Reading state information... Done python-catkin-pkg is already the newest version (0.4.13-100). You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: python-catkin-pkg : Depends: python-catkin-pkg-modules (>= 0.4.13) but it is not installable E: Unmet dependencies. Try 'apt --fix-broken install
More detail: https://stackoverflow.com/questions/5...
I have Ubuntu 18.04 on a virtual machine
you've cross-posted this question to SO within an hour of your post here on ROS Answers?
Which is it?
ROS Indigo only works on Ubuntu Trusty. ROS Melodic only works on Ubuntu Bionic.
You cannot have both.
Hey I have melodic
Can you please show us the output of
lsb_release -a
anduname -a
?please understand: 'melodic' is the name of a ROS release, not an Ubuntu release. Ubuntu is your OS (ie: a Linux distribution). ROS is "just" a set of programs that run on top of your OS. Compare with Windows: if I ask you which Windows version you have installed, you cannot answer with "I have Office 2016".
Now by circumstances, if you say "I have melodic", we can sort-of assume you are running Ubuntu Bionic as your OS. But we need to be sure. So please run the two commands I've asked you to run and show us what the output is.
Hi! The output outputs of lsb_release -a and uname -a are: