Ubuntu 16.04 安装ROS kinetic提示Depends: ros-kinetic-desktop but it is not going to be installed
2017-11-08 21:51
741 查看
今天在Ubuntu 16.04 安装ROS kinetic,按照官网流程在一步步走:
然后就在这一步,报错信息如下:
百思不得其解,在网上没搜到答案,不过看他们的截图,貌似都把Ubuntu源设置成了中科大源,解决方法也正好在这里!
然后改为以下内容:
接下来从第一步——设置安装源那里开始,从头安装即可。
一.设置安装源
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
二.设置keys
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116
三.更新系统安装
apt-get update apt-get install ros-kinetic-desktop-full
然后就在这一步,报错信息如下:
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-kinetic-desktop-full : Depends: ros-kinetic-desktop but it is not going to be installed Depends: ros-kinetic-perception but it is not going to be installed Depends: ros-kinetic-simulators but it is not going to be installed Depends: ros-kinetic-urdf-tutorial but it is not going to be installed E: Unable to correct problems, you have held broken packages.
百思不得其解,在网上没搜到答案,不过看他们的截图,貌似都把Ubuntu源设置成了中科大源,解决方法也正好在这里!
解决:
1.删除ros-latest.list
rm -rf /etc/apt/sources.list.d/ros-latest.list
2.修改源:
vi /etc/apt/sources.list
然后改为以下内容:
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
接下来从第一步——设置安装源那里开始,从头安装即可。
相关文章推荐
- Depends:libreoffice-base but it is not going to be installed
- build-essential : Depends: libc6-dev but it is not going to be installed or libc-dev 解决办法
- Ubuntu 16.04: How to resolve libqt5x11extras5 (>= 5.1.0) but it is not going to be installed
- ubuntu 安装ssh-server时出现错误:openssh-server: Depends: openssh-client (= 1:5.3p1-3ubuntu3) but 1:5.3p1-3ubuntu4 is to be installed
- Ubuntu 16.04: How to resolve libqt5x11extras5 (>= 5.1.0) but it is not going to be installed
- ubuntu 出现g++ : Depends: g++-4.8 (>= 4.8.2-5~) but it is not going to be installed
- libssl-dev版本问题无法安装 : Depends: libssl1.0.0 (= 1.0.1t-1+deb7u2) but 1.0.1t-1+deb8u6 is to be installed
- Ubuntu下解决Depends: xxx(< 1.2.1) but xxx is to be installed
- libgif-dev : Depends: libgif4 (= 4.1.6-11) but 4.1.6-11ubuntu0.14.04.1 is to be installed
- libpng12-dev : Depends: libpng12-0 (= 1.2.54-1ubuntu1) but 1.2.54-1ubuntu1k1 is to be installed
- lib32asound2 : Depends: libc6-i386 (>= 2.7) but it is not going to be installed
- ubuntu 14.04 install g++ 问题"g++ : Depends: g++-4.8 (>= 4.8.2-5~) but it is not going to be installe"
- 解决apt-get 依赖版本过高(Depends: AAA(>= BBB)but it is not going to install)的问题
- Depends: mysql-server-5.5 but it is not going to be installed
- qt59creator : Depends: libstdc++6 (>= 4.9) but 4.8.4-2ubuntu1~14.04.3 is to be installed
- openssh-server (>= 1:6.6p1-2ubuntu1) but it is not going to be installed
- ubuntu :install chrome problems:Depends: libnss3-1d (>= 3.12.3) but it is not going to be
- sudo apt-get install g++ 出现“g++ : Depends: g++-4.8 (>= 4.8.2-5~) but it is not going to be installed
- libudev-dev : Depends: libudev0 (= 175-0ubuntu9) but 175-0ubuntu9.3 is to be installed 错误解决方案
- 安装zabbix-server,进去里面页面提示:strtotime(): It is not safe to rely on the system's timezone settings.