ubuntu虚拟机怎么安装python_如何在虚拟机ubuntu18.04上安装catkin

在Ubuntu 18.04虚拟机中安装ROS Melodic Catkin时遇到依赖冲突。尝试通过`apt fix-broken install`修复未满足的依赖,但遇到权限问题。执行命令后,又出现`python-rospkg-modules`和`python-rospkg`的文件覆盖冲突,导致安装失败。
摘要由CSDN通过智能技术生成

我刚安装了melodic,但当我尝试安装catkin时遇到了问题。在notsotechnical@notsotechnical-VirtualBox:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 18.04.3 LTS

Release: 18.04

Codename: bionic

notsotechnical@notsotechnical-VirtualBox:~$ uname -a

Linux notsotechnical-VirtualBox 5.0.0-27-generic #28~18.04.1-Ubuntu SMP Thu Aug 22 03:00:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

notsotechnical@notsotechnical-VirtualBox:~$ sudo apt-get install ros-melodic-catkin

Reading package lists... Done

Building dependency tree

Reading state information... Done

You might want to run 'apt fix-broken install' to correct these.

The following packages have unmet dependencies:

python-rosdistro-modules : Depends: python-rospkg-modules but it is not going to be installed

ros-melodic-catkin : Depends: google-mock but it is not going to be installed

E: Unmet dependencies. Try 'apt fix-broken install' with no packages (or specify a solution).

notsotechnical@notsotechnical-VirtualBox:~$ 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:~$ sudo apt fix-broken install

Reading package lists... Done

Building dependency tree

Reading state information... Done

Correcting dependencies... Done

The following packages were automatically installed and are no longer required:

libb64-0d libboost-program-options1.65.1

libboost-regex1.65.1 libconsole-bridge0.4

libcpp-common0d liblog4cxx10v5 librosbag-storage2d

librosbag3d librosconsole2d libroscpp-serialization0d

libroscpp1d libroslz4-1d librostime0d libtopic-tools1d

libxmlrpcpp1d python-defusedxml python-genmsg

python-genpy python-netifaces python-rosclean

python-roscpp-msgs python-rosgraph python-rosgraph-msgs

python-roslz4 python-rosmaster python-rosparam

python-std-msgs rosout

Use 'sudo apt autoremove' to remove them.

The following additional packages will be installed:

python-rospkg-modules

The following NEW packages will be installed:

python-rospkg-modules

0 upgraded, 1 newly installed, 0 to remove and 114 not upgraded.

28 not fully installed or removed.

Need to get 0 B/23.7 kB of archives.

After this operation, 133 kB of additional disk space will be used.

Do you want to continue? [Y/n] Y

(Reading database ... 183772 files and directories currently installed.)

Preparing to unpack .../python-rospkg-modules_1.1.10-1_all.deb ...

Unpacking python-rospkg-modules (1.1.10-1) ...

dpkg: error processing archive /var/cache/apt/archives/python-rospkg-modules_1.1.10-1_all.deb ( unpack):

trying to overwrite '/usr/lib/python2.7/dist-packages/rospkg/__init__.py', which is also in package python-rospkg 1.1.4-1

Errors were encountered while processing:

/var/cache/apt/archives/python-rospkg-modules_1.1.10-1_all.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

notsotechnical@notsotechnical-VirtualBox:~$

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值