libgoogle-glog-dev has unmet dependencies due to libunwind

Bug #1991919 reported by Markus Pielmeier
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
google-glog (Ubuntu)
Confirmed
Undecided
Unassigned
libunwind (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

# Error Description

Installing `libgoogle-glog-dev` results in an error:

```
$ sudo apt install libgoogle-glog-dev
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:
 libunwind-14-dev : Breaks: libunwind-dev but 1.3.2-2build2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
```

# Comments

I have the packages libc++-14-dev and libc++-dev installed.
The package libgoogle-glog-dev dependes on "libunwind-dev | libunwind7-dev". But Package 'libunwind7-dev' has no installation candidate. Package 'libunwind-dev' is incompatible with libc++-14-dev and libc++-dev:

```
$ sudo apt install libunwind-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  libc++-14-dev libc++-dev libunwind-14-dev
The following NEW packages will be installed:
  libunwind-dev
0 upgraded, 1 newly installed, 3 to remove and 14 not upgraded.
Need to get 0 B/1.882 kB of archives.
After this operation, 3.176 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
```

# Additional information:

$ lsb_release -rd
Description: Ubuntu 22.04.1 LTS
Release: 22.04

$ apt-cache policy libgoogle-glog-dev
libgoogle-glog-dev:
  Installed: (none)
  Candidate: 0.5.0+really0.4.0-2
  Version table:
     0.5.0+really0.4.0-2 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

$ apt show libgoogle-glog-dev
Package: libgoogle-glog-dev
Version: 0.5.0+really0.4.0-2
Priority: optional
Section: universe/libdevel
Source: google-glog
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Laszlo Boszormenyi (GCS) <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 388 kB
Depends: libgoogle-glog0v5 (= 0.5.0+really0.4.0-2), libgflags-dev, libunwind-dev | libunwind7-dev
Homepage: https://github.com/google/glog
Download-Size: 91,9 kB
APT-Sources: http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Description: library that implements application-level logging.
 This library provides logging APIs based on C++-style streams and
 various helper macros.
 .
 This package contains static and debug libraries and header files for
 developing applications.

summary: - libgoogle-glog-dev has umet dependencies due to libunwind
+ libgoogle-glog-dev has unmet dependencies due to libunwind
tags: added: jammy un
tags: added: unmetdeps
removed: un
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in google-glog (Ubuntu):
status: New → Confirmed
Revision history for this message
August Oberhauser (gustl22) wrote :

Similar issue for me on Gstreamer

```
$ sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-good gstreamer1.0-plugins-bad
Reading package lists...
Building dependency tree...
Reading state information...
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:
 libunwind-14-dev : Breaks: libunwind-dev but 1.3.2-2build2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
```

https://github.com/actions/runner-images/issues/6399#issuecomment-1285011525

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Looks like the libunwind-dev and libunwind-14-dev indeed conflict with each other. This in turn affect other packages if you try to install them with one or the other dev library already in place. Might be a duplicate of bug 1989124.

Changed in libunwind (Ubuntu):
status: New → Confirmed
Revision history for this message
Nikolaus Demmel (nikolaus) wrote :

Any workaround for this? I just tried and this still reproduces. For example, you cannot install both libc++-dev and libgoogle-glog-dev due to this:

    apt install libc++-dev libgoogle-glog-dev

Interestingly, for me this only happens on x86_64. On the arm version of the libgoogle-glog-dev package does not depend on libunwind:

```
$ apt show libgoogle-glog-dev
Package: libgoogle-glog-dev
Version: 0.5.0+really0.4.0-2
Priority: optional
Section: universe/libdevel
Source: google-glog
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Laszlo Boszormenyi (GCS) <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 383 kB
Depends: libgoogle-glog0v5 (= 0.5.0+really0.4.0-2), libgflags-dev
Homepage: https://github.com/google/glog
Download-Size: 91.7 kB
APT-Manual-Installed: yes
APT-Sources: http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 Packages
Description: library that implements application-level logging.
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.