# Unable to install libg2o using nvdia docker container

**URL:** <https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264>\
**Category:** Jetson AGX Xavier\
**Tags:** docker\
**Created:** [December 16, 2021, 4:54pm UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264 "2021-12-16T16:54:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![uday.patnaik](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@uday.patnaik](https://forums.developer.nvidia.com/u/uday.patnaik)\
**Post date:** [December 16, 2021, 4:54pm UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/1 "2021-12-16T16:54:26Z")

</div>

Hello Every One,

I am trying to install lib2o on top of below docker container instead of using Base ros:galactic image.

> <https://github.com/dusty-nv/jetson-containers/blob/master/Dockerfile.ros.galactic>

Actually, i am planning to run Openvslam application from below.[stella\_vslam\_ros/Dockerfile.socket at fdbd287d80a3a5cc4ac1a143dc937adb4697b120 · stella-cv/stella\_vslam\_ros · GitHub](https://github.com/OpenVSLAM-Community/openvslam_ros/blob/fdbd287d80a3a5cc4ac1a143dc937adb4697b120/Dockerfile.socket#L92)

but unfortunately, i have been getting error as: unable to locate package libg2o.

I tried to edit above nvdia docker container at line [116](https://github.com/dusty-nv/jetson-containers/blob/56bdf7e31037b308b6ef3039175c80a64e5e9d81/Dockerfile.ros.galactic#L116) with below:  
libg2o.

End task: combine both ros as well as non ros version of openvslam in a single container. But still got error as below: (error occurred between line 350 to 356 in attached dockerfile. )  
`/opt/ros/galactic/install/share/libg2o/local_setup.bash`

I may sound very silly and may have messed up with the dockerfile. I am attaching my dockerfile for reference.

If a use ros:galactic as base image(official openvslam ros docker) then the docker build is through

Could you please help.

Thanks.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [December 17, 2021, 2:51am UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/3 "2021-12-17T02:51:36Z")

</div>

Hi,

_libg2o_ is ROS library so you will need a ROS base rather than `l4t-base:r32.5.0`.  
May I know why you want to use `l4t-base:r32.5.0`?

Thanks.

---

<div class="post-metadata">

**Author:** ![uday.patnaik](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@uday.patnaik](https://forums.developer.nvidia.com/u/uday.patnaik)\
**Post date:** [December 17, 2021, 2:55am UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/4 "2021-12-17T02:55:56Z")

</div>

Hello,  
Thanks for your reply.

My hardware is jetson agx xavier with jetpack as 4.5.1.  
Shall i use any other nvidia base in that case?  
Thanks.

---

<div class="post-metadata">

**Author:** ![uday.patnaik](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@uday.patnaik](https://forums.developer.nvidia.com/u/uday.patnaik)\
**Post date:** [December 17, 2021, 2:56am UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/5 "2021-12-17T02:56:57Z")

</div>

Can i use l4t-base:r32.5.0-pth1.7-py3 ??

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [December 17, 2021, 3:01am UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/6 "2021-12-17T03:01:53Z")

</div>

Hi,

The Dockerfile you shared above should work with JetPack 4.5.1.  
Have you modified the file? If yes, could you try the default version first?

Thanks.

---

<div class="post-metadata">

**Author:** ![uday.patnaik](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@uday.patnaik](https://forums.developer.nvidia.com/u/uday.patnaik)\
**Post date:** [December 17, 2021, 3:04am UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/7 "2021-12-17T03:04:44Z")

</div>

Yes, I tried the default [dockerfile](https://github.com/dusty-nv/jetson-containers/blob/master/Dockerfile.ros.galactic), it runs in my jetson but unfortunately libg2o is not available in this case.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [December 17, 2021, 3:23am UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/8 "2021-12-17T03:23:30Z")

</div>

Thanks for the confirmation.

We are checking this internally.  
Will share more information with you later.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [December 21, 2021, 9:19am UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/9 "2021-12-21T09:19:06Z")

</div>

Hi,

We test the dockerfile on JetPack4.6.  
It can build without an error related to _libg2o_.

Do you meet an error or just a warning?  
Could you share the building log with us as well?

Thanks.

---

<div class="post-metadata">

**Author:** ![uday.patnaik](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@uday.patnaik](https://forums.developer.nvidia.com/u/uday.patnaik)\
**Post date:** [December 23, 2021, 3:51am UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/10 "2021-12-23T03:51:06Z")

</div>

Hello,

I had used multistage builds in my dockerfile. I think that was the issue.  
I removed multistage build and the error was gone. Thank you so much for your time and support.

Thanks

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [December 28, 2021, 3:54am UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/11 "2021-12-28T03:54:02Z")

</div>

Thanks for the feedback.  
Good to know it works now.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [January 26, 2022, 3:09am UTC](https://forums.developer.nvidia.com/t/unable-to-install-libg2o-using-nvdia-docker-container/198264/13 "2022-01-26T03:09:31Z")

</div>

Closed on January 26, 2022, 3:09am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
