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

[Bug]: Cannot install libprotobuf-dev along with libopenvino-2023.0.2 on Ubuntu 22.04 #19784

Closed
3 tasks done
ynyBonfennil opened this issue Sep 13, 2023 · 5 comments · Fixed by #19788
Closed
3 tasks done
Assignees
Labels
bug Something isn't working support_request
Milestone

Comments

@ynyBonfennil
Copy link

ynyBonfennil commented Sep 13, 2023

OpenVINO Version

2023.0.2.11065

Operating System

Ubuntu 22.04

Device used for inference

CPU

Framework

ONNX

Issue Description

I followed the following documentation to install openvino runtime on Ubuntu 22.04 with apt.

Then, I also tried to install libprotobuf-dev which was required for another project of my own. But when I did it, apt returned the following error.

$ sudo apt install libprotobuf-dev
...
The following NEW packages will be installed:
  libprotobuf-dev
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 0 B/1,347 kB of archives.
After this operation, 11.5 MB of additional disk space will be used.
(Reading database ... 344648 files and directories currently installed.)
Preparing to unpack .../libprotobuf-dev_3.12.4-1ubuntu7.22.04.1_amd64.deb ...
Unpacking libprotobuf-dev:amd64 (3.12.4-1ubuntu7.22.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libprotobuf-dev_3.12.4-1ubuntu7.22.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libprotobuf-lite.a', which is also in package libopenvino-2023.0.2 2023.0.2.11065
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libprotobuf-dev_3.12.4-1ubuntu7.22.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've found it is because openvino package contains custom libprotobuf inside which uses LTO and -fPIC option that system one does not use, and also -fPIC option cannot be turned off.

But then it means libopenvin-2023.0.2 and libprotobuf-dev cannot co-exist at all. If so, some apt packages that rely on libprotobuf-dev would not be available if you install openvino. This would be very inconvenient for some people.

Or if there is a workaround for this issue, any information is welcome.

Issue submission checklist

  • I report the issue. It's not a question
  • I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found the solution
  • There is reproducer code and related data files such as images, videos, models, etc.
@ilya-lavrenov
Copy link
Contributor

Hi @ynyBonfennil

Thanks for the reporting the issue - the library is mistakenly added to the package, while it's not really needed. I confirm the issue is here with 2023.0.1 and 2023.0.2 releases, while future 2023.1.0 already fixes the problem and 2023.0.0 also does not have such regression. The possible solution is to install 2023.0.0 release, which does not have such problem:

apt-get install openvino-2023.0.0

@ilya-lavrenov ilya-lavrenov linked a pull request Sep 13, 2023 that will close this issue
@ilya-lavrenov ilya-lavrenov self-assigned this Sep 13, 2023
@ynyBonfennil
Copy link
Author

Thank you for your quick response. Then as you suggest, I'll use openvino-2023.0.0 instead.
I hope 2023.1.0 comes available on Ubuntu 22.04 soon.

@ilya-lavrenov ilya-lavrenov added this to the 2023.1 milestone Sep 13, 2023
@ilya-lavrenov
Copy link
Contributor

@ynyBonfennil
OpenVINO 2023.1.0 has been published. You can try updated Debian packages

@ynyBonfennil
Copy link
Author

Thank you for sharing. I'll try it!

@ynyBonfennil
Copy link
Author

It seems this issue has been fully resolved. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working support_request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants