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

我刚安装了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:~$

你可能感兴趣的:(ubuntu虚拟机怎么安装python_如何在虚拟机ubuntu18.04上安装catkin)