Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install ros2 in virtual machine environment #1291

Closed
hopechenmin opened this issue Jul 7, 2022 · 3 comments
Closed

install ros2 in virtual machine environment #1291

hopechenmin opened this issue Jul 7, 2022 · 3 comments

Comments

@hopechenmin
Copy link

hopechenmin commented Jul 7, 2022

Bug report

Required Info:

  • Operating System:
    • Ubuntu20.04 in a virtual machine created by VMware software
  • Installation type:
    • galactic
  • Version or commit hash:
  • DDS implementation:
  • Client library (if applicable):

Steps to reproduce issue

robot@robot-hope:~$ sudo apt install ros-galactic-desktop 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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-galactic-desktop : Depends: ros-galactic-depthimage-to-laserscan but it is not going to be installed
                        Depends: ros-galactic-image-tools but it is not going to be installed
                        Depends: ros-galactic-intra-process-demo but it is not going to be installed
                        Depends: ros-galactic-joy but it is not going to be installed
                        Depends: ros-galactic-rqt-common-plugins but it is not going to be installed
                        Depends: ros-galactic-teleop-twist-joy but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Expected behavior

Actual behavior

Additional information


Feature request

Feature description

Implementation considerations

@Nils-Holgerson
Copy link

I am experiencing a similar problem with a Ubuntu 22.04 virtual machine and ROS2 Humble installation.

ubun@ubun-VirtualBox:~$ sudo apt install ros-humble-desktop
[sudo] password for ubun: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
 apt : Depends: libapt-pkg6.0 (>= 2.4.5) but it is not going to be installed
       Depends: libsystemd0 but it is not installable
 bsdutils : PreDepends: libsystemd0 but it is not installable
 dconf-gsettings-backend : Depends: dconf-service (< 0.40.0-3.1~)
                           Depends: dconf-service (>= 0.40.0-3)
 init : PreDepends: systemd-sysv
 libcolord2 : Depends: libudev1 (>= 196) but it is not installable
 libdbus-1-3 : Depends: libsystemd0 but it is not installable
               Recommends: dbus
 libgudev-1.0-0 : Depends: libudev1 (>= 199) but it is not installable
 libhwloc15 : Depends: libudev1 (>= 183) but it is not installable
 libignition-cmake2-dev : Depends: cmake
 libinput10 : Depends: libudev1 (>= 183) but it is not installable
              Depends: libinput-bin (>= 1.20.0-1ubuntu0.1)
 libopenmpi-dev : Depends: openmpi-bin (>= 3.0.0-1)
                  Recommends: libcoarrays-openmpi-dev but it is not going to be installed
 libopenni2-0 : Depends: libudev1 (>= 183) but it is not installable
 libpulse0 : Depends: libsystemd0 but it is not installable
 libqt5gui5 : Depends: libudev1 (>= 183) but it is not installable
 libudev-dev : Depends: libudev1 (= 249.11-0ubuntu3) but it is not installable
 libusb-1.0-0 : Depends: libudev1 (>= 183) but it is not installable
 mpi-default-bin : Depends: openmpi-bin
 ros-humble-ament-cmake : Depends: cmake
 ros-humble-ament-cmake-core : Depends: cmake
 ros-humble-foonathan-memory-vendor : Depends: cmake
 shim-signed : Depends: grub-efi-amd64-signed but it is not going to be installed or
                        grub-efi-arm64-signed but it is not installable
               Depends: grub2-common (>= 2.04-1ubuntu24)
 util-linux : PreDepends: libsystemd0 but it is not installable
              PreDepends: libudev1 (>= 183) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

@hopechenmin
Copy link
Author

hopechenmin commented Jul 8, 2022

I had tried to install ros2 Humble in a Ubuntu22.04 virtual machine in VMware Platform and get the same issue as yours. so I turn to install ros2 Galactic in a Ubuntu20.04 virtual machine.

@clalancette
Copy link
Contributor

This is a duplicate of #1272 . While we've fixed it as far as we can on the ROS 2 side, this is a problem that goes deeper with Ubuntu itself (and apt). See https://salsa.debian.org/apt-team/apt/-/merge_requests/248

Given that there isn't anything we can do here, closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants