The nth problem encountered when installing ros for the nth time

Since entering the ros pit, at the request of the mentor company, I have flashed the linux system on countless desktops, industrial computers, and notebooks to build the ros environment. Follow Baidu's installation tutorial: Change the source, but you can encounter different strange problems every time. The problems encountered this time cannot be solved simply by the methods of the big guys on the Internet, so record them here:

The following packages have unmet dependencies:
ros-kinetic-desktop-full :
Depends: ros-kinetic-desktop but it will not be installed
Depends: ros-kinetic-perception but it will not be installed
Depends: ros- kinetic-simulators but it won't be installed
Depends: ros-kinetic-urdf-tutorial but it won't be installed
E: Unable to fix error because you asked some packages to remain as they are, breaking inter-package dependencies relation.

Big guys way

1. If you check the "Important Security Update" and "Recommended Update" in the "Update" option in the "Software and Update" of the system, the problem will be solved

 2. First use the following command sudo apt install aptitude to download aptitude, and then use sudo aptitude install (dependency package that needs to be installed) to solve the problem.

sudo apt install aptitude

sudo aptitude install (需要被安装的依赖包)

The problem with my installation is that it is useless to perform the above operations separately, so I combined them and added the dependent packages first. Use the second method to install the first dependency package required in the error message. After the installation is complete, you will find that the above error message still appears after sudo apt-get install ros-kinetic-desktop-full. At this time, the first step should be the same as sudo apt update. After the update is complete, execute sudo apt-get install ros-kinetic-desktop-full to find that it can be installed. Wait for more than ten minutes to complete the installation.

Guess you like

Origin blog.csdn.net/jianlai_/article/details/123089879