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

apt: command [sudo apt-get install -y liblog4cxx10-dev] failed

asked 2013-12-23 03:10:25 -0500

pennpanda gravatar image

updated 2013-12-25 19:56:25 -0500

tfoote gravatar image

When I use the command:

 rosdep install --from-paths src --ignore-src --rosdistro hydro -y

It reports the errors:

executing command [sudo apt-get install -y liblog4cxx10-dev]
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:
 liblog4cxx10-dev : Depends: libaprutil1-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ERROR: the following rosdeps failed to install
  apt: command [sudo apt-get install -y liblog4cxx10-dev] failed

Could anyone help me? I googled around and tried, but still cannot install liblog4cxx10-dev. Here is the details:

If I type enter code heresudo apt-get install -y liblog4cxx10-dev`,

It has the error:

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:
 liblog4cxx10-dev : Depends: libaprutil1-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
edit retag flag offensive close merge delete

Comments

What OS are you running? What are your apt-sources?

tfoote gravatar image tfoote  ( 2013-12-25 19:57:05 -0500 )edit

Hi, My OS is Ubuntu 12.04 TLS 64bit. I want to install desktop version with the command " $ rosinstall_generator desktop --rosdistro hydro --deps --wet-only > hydro-desktop-wet.rosinstall". But I mistakely typed the command for desktop_full which is "$ rosinstall_generator desktop_full --rosdistro hydro --deps --wet-only > hydro-desktop-full-wet.rosinstall". So I delete the hydro-desktop-full-wet.rosinstall file and re-run the command "$ rosinstall_generator desktop --rosdistro hydro --deps --wet-only > hydro-desktop-wet.rosinstall". I have added the ros's source into my system with the command "sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'" Thank you so much for your reply!

pennpanda gravatar image pennpanda  ( 2013-12-26 03:37:56 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-12-29 08:02:31 -0500

pennpanda gravatar image

Problem solved with the following approach: 1) If you keep using the apt-get to install the missing package, you will find the error: libsqlite3-dev : Depends: libsqlite3-0 (= 3.7.9-2ubuntu1) but 3.7.9-2ubuntu1.1 is installed.

2) Then you can use the "sudo aptitude install libsqlite3-0=3.7.9-2ubuntu1" to install this missing package. Make sure this package is installed. This package is the problem.

3) install liblog4cxx10-dev using apt-get install; it should succeed.

4) use the ros install program to install the dep. command is: rosdep install --from-paths src --ignore-src --rosdistro hydro -y

edit flag offensive delete link more
1

answered 2013-12-26 10:11:53 -0500

tfoote gravatar image

This is an issue with your underlying ubuntu system. The two packages you are trying to install are both upstream in the Ubuntu Universe repos:

http://packages.ubuntu.com/precise/liblog4cxx10-dev and http://packages.ubuntu.com/precise/libaprutil1-dev

You should try to find the lowest level package which won't install and try it. Also aptitude will give better errors than apt-get.

edit flag offensive delete link more

Comments

1

@tfoote Thank you so much! I solved it and posted the solution in the following answer. :)

pennpanda gravatar image pennpanda  ( 2013-12-29 08:03:24 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-12-23 03:10:25 -0500

Seen: 1,444 times

Last updated: Dec 29 '13