dpkg-shlibdeps: error: no dependency information found for /usr/lib/libxml2.so.2 (used by debian/libclamav7/usr/lib/x86_64-linux-gnu/libclamav.so.7.1.1)
Hint: check if the library actually comes from a package.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/libclamav7.substvars debian/libclamav7/usr/lib/x86_64-linux-gnu/libclamav.so.7.1.1 returned exit code 2
dh_shlibdeps: Aborting due to earlier error
debian/rules:71: recipe for target 'binary' failed
make: *** [binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
It turns out that the requested file does not exist in Zesty:
# apt-file search /usr/lib/libxml2.so.2
#
However, the same requested lib file is offered in another location by libxml2:
1) in Zesty:
-----------
# apt-file search libxml2.so.2
...
libxml2: /usr/lib/x86_64-linux-gnu/libxml2.so.2
...
Building 0.99.2+ dfsg-6ubuntu2 in **Zesty**:
dpkg-shlibdeps: error: no dependency information found for /usr/lib/ libxml2. so.2 (used by debian/ libclamav7/ usr/lib/ x86_64- linux-gnu/ libclamav. so.7.1. 1) libclamav7. substvars debian/ libclamav7/ usr/lib/ x86_64- linux-gnu/ libclamav. so.7.1. 1 returned exit code 2
Hint: check if the library actually comes from a package.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/
dh_shlibdeps: Aborting due to earlier error
debian/rules:71: recipe for target 'binary' failed
make: *** [binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
Although:
# apt-cache policy libxml2-dev
libxml2-dev:
Installed: 2.9.4+dfsg1-2.2
It turns out that the requested file does not exist in Zesty: libxml2. so.2
# apt-file search /usr/lib/
#
However, the same requested lib file is offered in another location by libxml2: x86_64- linux-gnu/ libxml2. so.2
1) in Zesty:
-----------
# apt-file search libxml2.so.2
...
libxml2: /usr/lib/
...
2) in Artful: 2.9.4+dfsg1- 3build2_ amd64.deb | grep libxml2.so.2 x86_64- linux-gnu/ libxml2. so.2.9. 4 x86_64- linux-gnu/ libxml2. so.2 -> libxml2.so.2.9.4
------------
# dpkg --contents libxml2_
-rw-r--r-- root/root 1801528 2017-08-02 22:08 ./usr/lib/
lrwxrwxrwx root/root 0 2017-08-02 22:08 ./usr/lib/
In both Ubuntu releases, the file libxml2.so.2 is located in: x86_64- linux-gnu
/usr/lib/