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

Revision history [back]

click to hide/show revision 1
initial version
  • Reason

    Some dependencies are not installed, and the previously installed versions of the dependencies are not correct, some require downgrade, and some require upgrade

  • Install environment

    Use the original sources.list: dep http://ports.ubuntu.com/bionic main res...

    Other sources.list: ustc, tuna... have not been tested

  • Solution

  • Install aptitude

        sudo apt-get install aptitude
    

    2.Install ros-melodic-desktop-full with aptitude

    sudo aptitude install ros-melodic-desktop-full
    

    3.The first prompt reminds us that there are a lot of things that are not installed, about 100-600, let us choose to keep the original ones, but there is no at all, enter n here

    4.The second prompt may ask us to upgrade or downgrade something, this is what we need, choose Y

    5.Select Y to install

    6.After that, “-O APT:::GET::Fix-Missing=true” may appear, execute: sudo apt-get --fix-missing

    7.Repeat a few times from step 1-5, each time you will find that things you need to install will be reduced a lot, and finally, if you have no problem after step 5, it will automatically install ros.

  • It works for me

  • Reason

    Some dependencies are not installed, and the previously installed versions of the dependencies are not correct, some require downgrade, and some require upgrade

    • Install environment

    Use the original sources.list: dep http://ports.ubuntu.com/bionic main res...

    Other sources.list: ustc, tuna... have not been tested

    • Solution

    • Install aptitude

       sudo apt-get install aptitude
      

    2.Install ros-melodic-desktop-full with aptitude

    sudo aptitude install ros-melodic-desktop-full
    

    3.The first prompt reminds us that there are a lot of things that are not installed, about 100-600, let us choose to keep the original ones, but there is no at all, enter n here

    4.The second prompt may ask us to upgrade or downgrade something, this is what we need, choose Y

    5.Select Y to install

    6.After that, “-O APT:::GET::Fix-Missing=true” may appear, execute: sudo apt-get --fix-missing

    7.Repeat a few times from step 1-5, 1-6, each time you will find that things you need to install will be reduced a lot, and finally, if you have no problem after step 5, 6, it will automatically install ros.

    • It works for me