如何在虚拟机Ubuntu 18.04上安装catkin

Posted

技术标签:

【中文标题】如何在虚拟机Ubuntu 18.04上安装catkin【英文标题】:How to install catkin on a virtual machine Ubuntu 18.04 【发布时间】:2019-09-23 17:11:48 【问题描述】:

我觉得我有靛蓝... 我按照说明操作:https://wiki.ros.org/catkin#Installing_catkin

有人可以帮我解决这个问题吗?我使用 virtualbox 来运行 Ubuntu 18.04。柳絮可以和靛蓝一起工作吗?我迷路了……

notsotechnical@notsotechnical-VirtualBox:~/build/build$ **sudo apt-get install ros-indigo-catkin**
[sudo] password for notsotechnical: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
**E: Unable to locate package ros-indigo-catkin**
notsotechnical@notsotechnical-VirtualBox:~/build/build$ sudo apt-get install cmake python-catkin-pkg python-empy python-nose python-setuptools libgtest-dev build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
python-setuptools is already the newest version (39.0.1-2).
libgtest-dev is already the newest version (1.8.0-6).
python-empy is already the newest version (3.3.2-1build1).
python-nose is already the newest version (1.3.7-3).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
python-catkin-pkg is already the newest version (0.4.13-100).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python-catkin-pkg : Depends: python-catkin-pkg-modules (>= 0.4.13) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
notsotechnical@notsotechnical-VirtualBox:~/build/build$ **apt --fix-broken install**
**E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?**
notsotechnical@notsotechnical-VirtualBox:~/build/build$ 

【问题讨论】:

【参考方案1】:

如果问题仍然存在: Ubuntu 18.04 运行 ros melodic,而不是 indigo。所以按照你的链接,但在最上面你需要切换到旋律而不是靛蓝。

【讨论】:

你解决了吗,如果解决了怎么办? 编辑来自问题的作者,他显然将我的答案更改为完全不同的东西,并且从我的答案中提出了一个后续问题......

以上是关于如何在虚拟机Ubuntu 18.04上安装catkin的主要内容,如果未能解决你的问题,请参考以下文章

苹果芯片(M1/Apple Chip)通过UTM安装x86架构虚拟机指南/性能测试(以ubuntu18.04为例)

ubuntu 18.04 64bit下如何安装安卓虚拟机anbox?

超级详细教程01:虚拟机中Ubuntu18.04安:Mysql数据库

超级详细教程01:虚拟机中Ubuntu18.04安:Mysql数据库

如何在虚拟机上安装ubuntu

用virtualbox安装Ubuntu18.04虚拟机