这个问题可能与其他人重复,但我已经尝试过他们的解决方案,但无法取得任何成功。我最近使用以下命令删除了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.
我的目标是在我的Ubuntu 14.04 LTS PC上安装ROS Indigo (不进行格式化:D)
请问任何解决方法吗?
答案 0 :(得分:0)
我终于修好了。我不得不深入研究它,我终于意识到问题是由于libusb
而发生的。
为了解决这个问题,我首先删除了libusb
(抱歉,我目前还没记得确切的版本)。之后,我运行apt-get autoclean
。然后apt-get update
和apt-get upgrade
只是为了确保所有内容都在正确的位置。
最后,我使用sudo apt-get install ros-indigo-desktop-full
并且它有效。
重新启动PC后,登录无效,并显示Failed to start sesssion
。不要惊慌,在登录屏幕中按 CTRL + ALT + F1 。它会带你到终点站。使用您的用户名和密码登录。最后使用以下命令sudo apt-get install ubuntu-desktop