Challenge, Easy,  on  Linux

Troubleshoot an Image Conversion Daemon

An image conversion daemon called imgconvd has been installed on this server. However, when you try to run it, an error occurs and the daemon exits immediately.

Your task: diagnose the root cause and fix it so that imgconvd starts and runs uninterrupted for a long enough time.

Hint 1

The error that you see when you try to run imgconvd doesn't come from the daemon itself - it comes from the OS before the binary's own code even has a chance to run. The dynamic linker is responsible for loading a program and all of its shared library dependencies into memory. If it can't locate a required library, the process is terminated before main().

There is a standard tool to inspect exactly which shared libraries a binary depends on and whether each one can currently be found by the dynamic linker.

Hint 2

ldd (List Dynamic Dependencies) prints all shared libraries a binary is linked against, along with the resolved path for each - or => not found if the dynamic linker cannot locate that library.

Hint 3

On Debian/Ubuntu systems, shared library packages follow a predictable naming convention - the package that provides libfoo.so.N is typically called libfooN.

Alternatively, apt-cache search can help you find the right package by keyword.