由于软件包损坏而陷入未满足的依赖关系的无限循环

Stuck in infinite loop of unmet dependencies due to broken packages

这个问题可能与其他问题重复,但是,我已经尝试了他们的解决方案,但没有成功。我最近使用以下命令删除了 ROS Indigo-

ravi@lab:~$ sudo apt-get remove ros-*
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.

现在,我需要它。所以我尝试使用以下命令再次安装它-

ravi@lab:~$ sudo apt-get install ros-indigo-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-indigo-desktop-full : Depends: ros-indigo-perception but it is not going to be installed
E: Unable to correct problems, you have held broken packages

。 不幸的是,以上没有奏效。所以我尝试安装依赖项但没有成功-

ravi@lab:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
ravi@lab:~$ sudo dpkg --configure -a
ravi@lab:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.

我尝试手动安装依赖项 ros-indigo-perception 但没有机会-

ravi@lab:~$ sudo apt-get install ros-indigo-perception
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-indigo-perception : Depends: ros-indigo-perception-pcl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试了更多,想安装另一个依赖项ros-indigo-perception-pcl但徒劳无功-

ravi@lab:~$ sudo apt-get install ros-indigo-perception-pcl
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-indigo-perception-pcl : Depends: ros-indigo-pcl-conversions but it is not going to be installed
                             Depends: ros-indigo-pcl-ros but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

仍在尝试但没有成功 -

ravi@lab:~$ sudo apt-get install ros-indigo-pcl-conversions
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-indigo-pcl-conversions : Depends: libpcl-1.7-all but it is not going to be installed
                              Depends: libpcl-1.7-all-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

ravi@lab:~$ sudo apt-get install libpcl-1.7-all
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:
 libpcl-1.7-all : Depends: libpcl-1.7-all-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

ravi@lab:~$ sudo apt-get install libpcl-1.7-all-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:
 libpcl-1.7-all-dev : Depends: libpcl-apps-1.7-dev but it is not going to be installed
                      Depends: libpcl-io-1.7-dev but it is not going to be installed
                      Depends: libpcl-outofcore-1.7-dev but it is not going to be installed
                      Depends: libpcl-people-1.7-dev but it is not going to be installed
                      Depends: libpcl-recognition-1.7-dev but it is not going to be installed
                      Depends: libpcl-visualization-1.7-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我的 objective 是在我的 Ubuntu 14.04 LTS PC 上安装 ROS Indigo(不格式化 :D)

有什么解决办法吗?

我终于修好了。我不得不深入研究它,我终于意识到问题是由于 libusb.

为了解决这个问题,我先删除了libusb(对不起,我暂时不记得确切的版本)。之后,我运行apt-get autoclean。然后 apt-get updateapt-get upgrade 只是为了确保一切都在正确的地方。

最后,我使用 sudo apt-get install ros-indigo-desktop-full 并且成功了。

备注

重启电脑后,登录失败,显示Failed to start sesssion。不要惊慌,在登录屏幕期间按 CTRL+ALT+F1。它会带你到终端。使用您的用户名和密码登录。最后使用以下命令恢复桌面 sudo apt-get install ubuntu-desktop