Nano installs ROS melodic file error problem broken packages
Article Directory
Reference link
I tried to install ros melodic many times, but kept reporting errors, file corruption or installation dependency problems.
Go directly to the installation stage, please see other detailed posts in front.
sudo apt-get install ros-melodic-desktop-full
After entering the above command, there will be a problem that you have held broken packages.
The case is as follows:
sudo apt-get install ros-melodic-desktop-full
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-melodic-desktop-full : Depends: ros-melodic-desktop but it is not going to be installed
Depends: ros-melodic-perception but it is not going to be installed
Depends: ros-melodic-simulators but it is not going to be installed
Depends: ros-melodic-urdf-sim-tutorial but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Follow the prompts of other bloggers to enter the following,
sudo aptitude install ros-kinetic-desktop-full
If aptitude is not supported, you can install it
sudo apt-get install aptitude
Then there will be the following part of the text:
Accept this solution? [Y/n/q/?]
I chose Y for the first time, and the installation process popped out:
Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
It seems to be done, but the system hasn’t done anything, so continue to use aptitude to do it again.
The first time you select n, some installation dependent libraries will pop up, and after you select Y, the installation process will be displayed.
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Downgrade the following packages:
1) libgpgme11 [1.10.0-1ubuntu2.1 (now) -> 1.10.0-1ubuntu1 (bionic)]
2) libqt5qml5 [5.9.5-0ubuntu1.1 (now) -> 5.9.5-0ubuntu1 (bionic)]
3) libqt5quick5 [5.9.5-0ubuntu1.1 (now) -> 5.9.5-0ubuntu1 (bionic)]
4) libqt5quickwidgets5 [5.9.5-0ubuntu1.1 (now) -> 5.9.5-0ubuntu1 (bionic)]
5) libuuid1 [2.31.1-0.4ubuntu3.6 (now) -> 2.31.1-0.4ubuntu3 (bionic)]
Accept this solution? [Y/n/q/?] Y
The following packages will be DOWNGRADED:
libgpgme11 libqt5qml5 libqt5quick5 libqt5quickwidgets5 libuuid1
The following NEW packages will be installed:
cython{a} fltk1.3-doc{a} fluid{a} fonts-lato{a} gazebo9{a}
gazebo9-common{a} gazebo9-plugin-base{a} google-mock{a} hddtemp{a}
Finally, the installation was completed successfully. It can only be said that there are too many dependent projects for ROS installation, and it will conflict with it if you don't know which file is installed.
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
root@yuezh-ThinkStation-P320:/# sudo apt-get install ros-melodic-desktop-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
ros-melodic-desktop-full is already the newest version (1.4.1-0bionic.20200604.134848).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
About the failure of Rosdep
Can't find rosdep
sudo apt-get install python-rosdep