[Bug 2072656] [NEW] Missing dependency on libsnappy1v5
Simon Déziel
2072656 at bugs.launchpad.net
Wed Jul 10 14:15:38 UTC 2024
Public bug reported:
On Noble, installing `ceph-common` result in one of the .so to be
missing a dependent .so:
```
$ lxc launch ubuntu-daily:24.04 c1
$ lxc shell c1
root at c1:~# apt-get update && apt-get install -Vy ceph-common
...
root at c1:~# dpkg -L ceph-common | grep snap
/usr/lib/x86_64-linux-gnu/ceph/compressor/libceph_snappy.so.2.0.0
/usr/lib/x86_64-linux-gnu/ceph/compressor/libceph_snappy.so
/usr/lib/x86_64-linux-gnu/ceph/compressor/libceph_snappy.so.2
```
This `libceph_snappy.so.2.0.0` in turn depends on `libsnappy.so.1` but
it's not found:
```
root at c1:~# ldd /usr/lib/x86_64-linux-gnu/ceph/compressor/libceph_snappy.so.2.0.0
linux-vdso.so.1 (0x00007ffd72b74000)
libsnappy.so.1 => not found
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007643adce4000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007643adcb7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007643adaa5000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007643ad9bc000)
/lib64/ld-linux-x86-64.so.2 (0x00007643adf72000)
```
This `libsnappy.so.1` is normally provided by the `libsnappy1v5` package
and installing it manually fixes it:
```
root at c1:~# apt-get install -y libsnappy1v5
...
root at c1:~# ldd /usr/lib/x86_64-linux-gnu/ceph/compressor/libceph_snappy.so.2.0.0
linux-vdso.so.1 (0x00007ffdb7b25000)
libsnappy.so.1 => /lib/x86_64-linux-gnu/libsnappy.so.1 (0x00007537db3ed000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007537db170000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007537db143000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007537daf31000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007537dae48000)
/lib64/ld-linux-x86-64.so.2 (0x00007537db409000)
```
For some reason, `ceph-common` had a dependency on `libsnappy1v5` in
Jammy but it was lost afterward, causing this issue.
** Affects: ceph (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/2072656
Title:
Missing dependency on libsnappy1v5
Status in ceph package in Ubuntu:
New
Bug description:
On Noble, installing `ceph-common` result in one of the .so to be
missing a dependent .so:
```
$ lxc launch ubuntu-daily:24.04 c1
$ lxc shell c1
root at c1:~# apt-get update && apt-get install -Vy ceph-common
...
root at c1:~# dpkg -L ceph-common | grep snap
/usr/lib/x86_64-linux-gnu/ceph/compressor/libceph_snappy.so.2.0.0
/usr/lib/x86_64-linux-gnu/ceph/compressor/libceph_snappy.so
/usr/lib/x86_64-linux-gnu/ceph/compressor/libceph_snappy.so.2
```
This `libceph_snappy.so.2.0.0` in turn depends on `libsnappy.so.1` but
it's not found:
```
root at c1:~# ldd /usr/lib/x86_64-linux-gnu/ceph/compressor/libceph_snappy.so.2.0.0
linux-vdso.so.1 (0x00007ffd72b74000)
libsnappy.so.1 => not found
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007643adce4000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007643adcb7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007643adaa5000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007643ad9bc000)
/lib64/ld-linux-x86-64.so.2 (0x00007643adf72000)
```
This `libsnappy.so.1` is normally provided by the `libsnappy1v5`
package and installing it manually fixes it:
```
root at c1:~# apt-get install -y libsnappy1v5
...
root at c1:~# ldd /usr/lib/x86_64-linux-gnu/ceph/compressor/libceph_snappy.so.2.0.0
linux-vdso.so.1 (0x00007ffdb7b25000)
libsnappy.so.1 => /lib/x86_64-linux-gnu/libsnappy.so.1 (0x00007537db3ed000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007537db170000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007537db143000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007537daf31000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007537dae48000)
/lib64/ld-linux-x86-64.so.2 (0x00007537db409000)
```
For some reason, `ceph-common` had a dependency on `libsnappy1v5` in
Jammy but it was lost afterward, causing this issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2072656/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list