Failed to install dovecot

Kurogane

Verified User
Joined
Oct 6, 2019
Messages
88
Hello,

I've a problem with installing dovecot and give me this error.

Code:
libtool: link: gcc -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=keep -mindirect-branch=keep -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -o .libs/quota-status quota_status-quota-status.o quota_status-quota-status-settings.o .libs/quota.o .libs/quota-count.o .libs/quota-fs.o .libs/quota-dict.o .libs/quota-dirsize.o .libs/quota-imapc.o .libs/quota-maildir.o .libs/quota-plugin.o .libs/quota-storage.o .libs/quota-util.o .libs/rquota_xdr.o -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--export-dynamic  ../../../src/lib-storage/.libs/libdovecot-storage.so ../../../src/lib-imap-storage/.libs/libimap-storage.a ../../../src/lib-dovecot/.libs/libdovecot.so -ltirpc  -Wl,-rpath -Wl,/usr/lib/dovecot
libtool: link: ranlib .libs/lib10_quota_plugin.a
/usr/bin/ld: error: /lib/x86_64-linux-gnu/libkeyutils.so.1: file too short
collect2: error: ld returned 1 exit status
libtool: link: ( cd ".libs" && rm -f "lib10_quota_plugin.la" && ln -s "../lib10_quota_plugin.la" "lib10_quota_plugin.la" )
make[4]: *** [Makefile:788: quota-status] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/usr/local/directadmin/custombuild/tmp/tmp.tNOQZsVn9V.dovecot-2.3.21.1.tar.gz/src/plugins/quota'
make[3]: *** [Makefile:539: all-recursive] Error 1
make[3]: Leaving directory '/usr/local/directadmin/custombuild/tmp/tmp.tNOQZsVn9V.dovecot-2.3.21.1.tar.gz/src/plugins'
make[2]: Leaving directory '/usr/local/directadmin/custombuild/tmp/tmp.tNOQZsVn9V.dovecot-2.3.21.1.tar.gz/src'
make[2]: *** [Makefile:573: all-recursive] Error 1
make[1]: *** [Makefile:704: all-recursive] Error 1
make[1]: Leaving directory '/usr/local/directadmin/custombuild/tmp/tmp.tNOQZsVn9V.dovecot-2.3.21.1.tar.gz'
make: *** [Makefile:548: all] Error 2
doDovecot: failed to compile '/usr/local/directadmin/custombuild/cache/dovecot-2.3.21.1.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.tNOQZsVn9V.dovecot-2.3.21.1.tar.gz'
 
Hello,

What OS version is that? What DirectAdmin version is that? Is that Debian or Ubuntu?

/usr/bin/ld: error: /lib/x86_64-linux-gnu/libkeyutils.so.1: file too short

You will need to check the file. What do you see with the command:

Code:
ls -al /usr/lib/x86_64-linux-gnu/libkeyutils.so.1*

I would expect something like (it is Debian 11.11 in my example):

Bash:
# ls -al /usr/lib/x86_64-linux-gnu/libkeyutils.so.1*
lrwxrwxrwx 1 root root    18 Feb 10  2020 /usr/lib/x86_64-linux-gnu/libkeyutils.so.1 -> libkeyutils.so.1.9
-rw-r--r-- 1 root root 22448 Feb 10  2020 /usr/lib/x86_64-linux-gnu/libkeyutils.so.1.9

or even newer versions on newer Debian/Ubuntu.
 
Debian 12.

But i see the problem is that file is corrupted. Not matter what i do, remove, unlink, reinstall etc always give me file size 21 and should be 19, even file integrity look good not give me the desired size of 19..

Sadly to fix is OS reinstall in my case. I don't time to troubleshoot ( i spend over a day of this ). But the problem is for that file corrupt.
 
There is no need to re-install the OS, in order to fix the issue with the corrupted file. Though I used to do the same in my early ages: I used to re-install OS when I did not know how to fix an issue.
 
Back
Top