Could not build vsftpd package; .changes files cannot be signed (only if gpg has been initialized for root user)

  • Hello
    I build vsftpd on i-mscp 1.2.17 get some error.


    What is this problem?
    My system is debian 7.9

  • @akong7777


    I cannot reproduce the problem:


    Environment


    Code
    1. root@wheezy:/usr/local/src/imscp# lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux 7.9 (wheezy)Release: 7.9Codename: wheezyroot@wheezy:/usr/local/src/imscp#

    Relevant logs

    Code
    1. [code]...[DEBUG] iMSCP::Dir::make: /usr/local/src/vsftpd[DEBUG] iMSCP::Execute::execute: LANG=C apt-mark unhold vsftpd[DEBUG] Servers::ftpd::vsftpd::installer::__ANON__: Canceled hold on vsftpd.[DEBUG] iMSCP::Execute::execute: apt-get -y source vsftpd[DEBUG] Servers::ftpd::vsftpd::installer::__ANON__: Reading package lists...Building dependency tree...Reading state information...Need to get 216 kB of source archives.Get:1 http://ftp.debian.org/debian/ wheezy/main vsftpd 2.3.5-3 (dsc) [1 125 B]Get:2 http://ftp.debian.org/debian/ wheezy/main vsftpd 2.3.5-3 (tar) [188 kB]Get:3 http://ftp.debian.org/debian/ wheezy/main vsftpd 2.3.5-3 (diff) [26,9 kB]dpkg-source: info: extracting vsftpd in vsftpd-2.3.5dpkg-source: info: unpacking vsftpd_2.3.5.orig.tar.gzdpkg-source: info: unpacking vsftpd_2.3.5-3.debian.tar.gzdpkg-source: info: applying 01-builddefs.patchdpkg-source: info: applying 02-config.patchdpkg-source: info: applying 03-db-doc.patchdpkg-source: info: applying 04-link-local.patchdpkg-source: info: applying 05-whitespaces.patchdpkg-source: info: applying 06-greedy.patchdpkg-source: info: applying 07-utf8.patchdpkg-source: info: applying 08-manpage.patchdpkg-source: info: applying 09-s390.patchdpkg-source: info: applying 10-remote-dos.patchdpkg-source: info: applying 11-alpha.patchFetched 216 kB in 0s (374 kB/s)[DEBUG] iMSCP::Execute::execute: apt-get -y build-dep vsftpd[DEBUG] Servers::ftpd::vsftpd::installer::__ANON__: Reading package lists...Building dependency tree...Reading state information...0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.[DEBUG] iMSCP::Execute::execute: dpkg-query --show --showformat '${Version}' vsftpd[DEBUG] Servers::ftpd::vsftpd::installer::__ANON__: 2.3.5-3imscp1[DEBUG] iMSCP::Execute::execute: dpkg --compare-versions 2.3.5-3imscp1 lt 3[DEBUG] iMSCP::File::copyFile: Copying file /etc/imscp/vsftpd/imscp_allow_writeable_root.patch to debian/patches/imscp_allow_writeable_root[DEBUG] iMSCP::File::copyFile: Changing mode for debian/patches/imscp_allow_writeable_root to 644[DEBUG] iMSCP::File::copyFile: Changing owner and group for debian/patches/imscp_allow_writeable_root to 0:0[DEBUG] iMSCP::File::save: Saving file debian/patches/series[DEBUG] iMSCP::Execute::execute: dch --local imscp 'i-MSCP patched version.'[DEBUG] iMSCP::Execute::execute: dpkg-buildpackage -b[DEBUG] Servers::ftpd::vsftpd::installer::__ANON__: dpkg-buildpackage: source package vsftpddpkg-buildpackage: source version 2.3.5-3imscp1dpkg-buildpackage: source changed by root <[email protected]>dpkg-buildpackage: host architecture amd64dpkg-source: info: using options from vsftpd-2.3.5/debian/source/options: --compression=gzip --compression-level=9dpkg-source: info: applying imscp_allow_writeable_rootdh cleandh_testdirdh_auto_cleanmake[1]: Entering directory `/usr/local/src/vsftpd/vsftpd-2.3.5'rm -f *.o *.swp vsftpdmake[1]: Leaving directory `/usr/local/src/vsftpd/vsftpd-2.3.5'dh_cleandh builddh_testdirdh_auto_configuredebian/rules override_dh_auto_buildmake[1]: Entering directory `/usr/local/src/vsftpd/vsftpd-2.3.5'/usr/bin/make CFLAGS="-g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2" LIBS="-lwrap -lpam -lssl -lcrypto -lcap" LINK=""make[2]: Entering directory `/usr/local/src/vsftpd/vsftpd-2.3.5'gcc -c main.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c utility.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c prelogin.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c ftpcmdio.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c postlogin.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c privsock.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c tunables.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c ftpdataio.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c secbuf.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c ls.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c postprivparent.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c logging.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c str.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c netstr.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c sysstr.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c strlist.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c banner.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c filestr.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c parseconf.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c secutil.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c ascii.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c oneprocess.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c twoprocess.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c privops.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c standalone.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c hash.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c tcpwrap.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c ipaddrparse.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c access.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c features.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c readwrite.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c opts.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c ssl.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c sslslave.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c ptracesandbox.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c ftppolicy.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c sysutil.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -c sysdeputil.c -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -idirafter dummyincgcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o -lwrap -lpam -lssl -lcrypto -lcap -fPIE -pie -Wl,-z,relro -Wl,-z,nowmake[2]: Leaving directory `/usr/local/src/vsftpd/vsftpd-2.3.5'make[1]: Leaving directory `/usr/local/src/vsftpd/vsftpd-2.3.5'dh_auto_testdh binarydh_testrootdh_prepdh_installdirsdebian/rules override_dh_auto_installmake[1]: Entering directory `/usr/local/src/vsftpd/vsftpd-2.3.5'# disabledmake[1]: Leaving directory `/usr/local/src/vsftpd/vsftpd-2.3.5'dh_installdh_installdocsdh_installchangelogsdh_installexamplesdh_installmandh_installcatalogsdh_installcrondh_installdebconfdh_installemacsendh_installifupdowndh_installinfodebian/rules override_dh_installinitmake[1]: Entering directory `/usr/local/src/vsftpd/vsftpd-2.3.5'dh_installinit --update-rcd-params='start 20 2 3 4 5 . stop 80 1 .'make[1]: Leaving directory `/usr/local/src/vsftpd/vsftpd-2.3.5'dh_installmenudh_installmimedh_installmodulesdh_installlogcheckdh_installlogrotatedh_installpamdh_installpppdh_installudevdh_installwmdh_installxfontsdh_installgsettingsdh_bugfilesdh_ucfdh_lintiandh_gconfdh_iconsdh_perldh_usrlocaldh_linkdh_compressdh_fixpermsdh_stripdh_makeshlibsdh_shlibdepsdh_installdebdh_gencontroldh_md5sumsdebian/rules override_dh_builddebmake[1]: Entering directory `/usr/local/src/vsftpd/vsftpd-2.3.5'dh_builddeb -- -Zgzip -z9dpkg-deb: building package `vsftpd' in `../vsftpd_2.3.5-3imscp1_amd64.deb'.make[1]: Leaving directory `/usr/local/src/vsftpd/vsftpd-2.3.5'dpkg-source: info: using options from vsftpd-2.3.5/debian/source/options: --compression=gzip --compression-level=9dpkg-source: info: unapplying imscp_allow_writeable_rootdpkg-source: info: unapplying 11-alpha.patchdpkg-source: info: unapplying 10-remote-dos.patchdpkg-source: info: unapplying 09-s390.patchdpkg-source: info: unapplying 08-manpage.patchdpkg-source: info: unapplying 07-utf8.patchdpkg-source: info: unapplying 06-greedy.patchdpkg-source: info: unapplying 05-whitespaces.patchdpkg-source: info: unapplying 04-link-local.patchdpkg-source: info: unapplying 03-db-doc.patchdpkg-source: info: unapplying 02-config.patchdpkg-source: info: unapplying 01-builddefs.patchdpkg-buildpackage: binary only upload (no source included)[DEBUG] iMSCP::Execute::execute: dpkg --force-confnew -i vsftpd_*.deb[DEBUG] Servers::ftpd::vsftpd::installer::__ANON__: (Reading database ... 41266 files and directories currently installed.)Preparing to replace vsftpd 2.3.5-3imscp1 (using vsftpd_2.3.5-3imscp1_amd64.deb) ...Stopping FTP server: No /usr/sbin/vsftpd found running; none killed.vsftpd.Unpacking replacement vsftpd ...Setting up vsftpd (2.3.5-3imscp1) ...Processing triggers for man-db ...[DEBUG] iMSCP::Execute::execute: LANG=C apt-mark hold vsftpd[DEBUG] Servers::ftpd::vsftpd::installer::__ANON__: vsftpd set on hold.[DEBUG] iMSCP::Dir::remove: /usr/local/src/vsftpd[DEBUG] iMSCP::Execute::execute: vsftpd -v 0>&1[DEBUG] Servers::ftpd::vsftpd::installer::_setVersion: vsftpd: version 2.3.5[DEBUG] Servers::ftpd::vsftpd::installer::_setVersion: VsFTPd version set to: 2.3.5...


    Thus, we need more info about your environment:

    • System up-to-date?
    • Virtual server?
    • Architecture?
    • Which command do you have run exactly?


    You should provide us the full logs by running:

    Code
    1. # perl imscp-autoinstall -dasnv > imscp.log

    Then, once finished, send us the imscp.log file (remove sensitive data from it first).

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @akong7777


    Run:


    Code
    1. perl imscp-autoinstall -dasnv > imscp.log


    Then, once done, send me the resulting imscp.log file.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @akong7777


    Try this:


    Edit the engine/PerlLib/Servers/ftpd/vsftpd/installer.pm file inside your imscp archive directory and and replace:


    Code
    1. dpkg-buildpackage -b

    by

    Code
    1. dpkg-buildpackage -b -uc

    then try again and give me the new log.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @akong7777


    It is not... You reinstalled proftpd...........


    Try again with:

    Code
    1. perl imscp-autoinstall -dar ftpd


    Then, when asked, choose vsftpd.


    Once finished, give me the result.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • I can confirm the problem now. Will be fixed in next release.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @akong7777


    Found the problem. The build fails because .changes file cannot be signed. This occurs only if gpg has been initialized for the root user. I'll add the -us option for skipping .changes file signing.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206