Как установить catkin на виртуальную машину Ubuntu 18.04 - PullRequest
0 голосов
/ 23 сентября 2019

Кажется, у меня есть индиго ... Я следовал инструкциям: 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 Ответ

0 голосов
/ 24 сентября 2019

Я только что установил мелодию, но у меня возникла проблема при попытке установить 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:~$ 
...