Melodic install : non existing packages / broken packages

asked 2018-06-13 09:12:15 -0600

MPathy gravatar image

I am trying to install ROS Melodic on a virgin Ubuntu 18.04.

The installation manual ( http://wiki.ros.org/melodic/Installat... ) working fine until 1.4 Installation. After the apt-get update i don't have "ros-melodic-" named packages available, only package names without this prefix. For example "ros-base". If i am trying to install these this happens:

mpathy@ubuntu:~$ sudo apt-get install ros-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ros-base : Depends: ros-core but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

In case i try to install "ros-core":

mpathy@ubuntu:~$ sudo apt-get install ros-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ros-core : Depends: python-rosbag but it is not going to be installed
            Depends: python-roslaunch but it is not going to be installed
            Depends: python-rosmsg but it is not going to be installed
            Depends: python-rosnode but it is not going to be installed
            Depends: python-rosservice but it is not going to be installed
            Depends: python-rostopic but it is not going to be installed
            Depends: python-message-filters but it is not going to be installed
            Depends: python-roswtf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I tried the "ros-shadow-fixed" as it is mentioned in the installation manual, but it results the same.

At this point i am stucked. Any idea what to try next?

edit retag flag offensive close merge delete

Comments

Seems like there was some problem in adding the ROS apt repo in your apt sources. Can you reply with the contents of the /etc/apt/sources.list.d/ros-latest.list file?

kartikmohta gravatar image kartikmohta  ( 2018-06-19 20:48:14 -0600 )edit

Nothing special, just what is should be by the installation manual.

mpathy@ubuntu:~$ cat /etc/apt/sources.list.d/ros-latest.list
deb http://packages.ros.org/ros/ubuntu bionic main
MPathy gravatar image MPathy  ( 2018-06-20 06:29:50 -0600 )edit

Are there any errors/warnings when you run a sudo apt-get update? Does dpkg-query -l ros-melodic* return anything?

kartikmohta gravatar image kartikmohta  ( 2018-06-20 13:35:04 -0600 )edit

No. Warnings. No ros-melodic packets. This is pretty deterministic.

mpathy@ubuntu:~$ dpkg-query -l ros-melodic*
dpkg-query: no packages found matching ros-melodic*
MPathy gravatar image MPathy  ( 2018-06-20 14:18:32 -0600 )edit

I know this is more than 6 months old but hope this help someone, I recently came across this problem, your probably running an i386 version of 18.04, after trying to install ros-melodic using aptitude I discovered many packages aren't available for the i386 version of 18.04. Solution is to install 18.04 amd64 version of Ubuntu.

new2ros gravatar image new2ros  ( 2019-03-08 06:00:37 -0600 )edit