SolidCharity / LightBuildServer

LightBuildServer for building rpm and deb packages and running CI scripts, using linux containers
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

cannot build on Ubuntu Xenial 16.04 because console-setup post install script fails #181

Closed tpokorra closed 7 years ago

tpokorra commented 7 years ago

somehow user interaction is expected:

[00:04:52] Setting up console-setup-linux (1.108ubuntu15.3) ...
[00:04:52] Installing new version of config file /etc/console-setup/compose.ISO-8859-1.inc ...
[00:04:53] Installing new version of config file /etc/console-setup/compose.ISO-8859-13.inc ...
[00:04:53] Installing new version of config file /etc/console-setup/compose.ISO-8859-14.inc ...
[00:04:53] Installing new version of config file /etc/console-setup/compose.ISO-8859-15.inc ...
[00:04:53] Installing new version of config file /etc/console-setup/compose.ISO-8859-2.inc ...
[00:04:53] Installing new version of config file /etc/console-setup/compose.ISO-8859-3.inc ...
[00:04:53] Installing new version of config file /etc/console-setup/compose.ISO-8859-4.inc ...
[00:04:53] Installing new version of config file /etc/console-setup/compose.ISO-8859-7.inc ...
[00:04:53] Installing new version of config file /etc/console-setup/compose.ISO-8859-9.inc ...
[00:04:54] Setting up console-setup (1.108ubuntu15.3) ...
[00:04:55] debconf: unable to initialize frontend: Dialog
[00:04:55] debconf: (TERM is not set, so the dialog frontend is not usable.)
[00:04:55] debconf: falling back to frontend: Readline
[00:04:55] debconf: unable to initialize frontend: Readline
[00:04:55] debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
[00:04:55] debconf: falling back to frontend: Teletype
[00:04:55] Configuring console-setup
[00:04:55] -------------------------
[00:04:55] 
[00:04:55] Please choose the character set that should be supported by the console font.
[00:04:55] 
[00:04:55] If you don't use a framebuffer, the choices that start with "." will reduce the 
[00:04:55] number of available colors on the console.
[00:04:55] 
[00:04:55]   1. . Arabic
[00:04:55]   2. # Armenian
[00:04:55]   3. # Cyrillic - KOI8-R and KOI8-U
[00:04:55]   4. # Cyrillic - non-Slavic languages
[00:04:55]   5. # Cyrillic - Slavic languages (also Bosnian and Serbian Latin)
[00:04:55]   6. . Ethiopic
[00:04:55]   7. # Georgian
[00:04:55]   8. # Greek
[00:04:55]   9. # Hebrew
[00:04:55]   10. # Lao
[00:04:55]   11. # Latin1 and Latin5 - western Europe and Turkic languages
[00:04:55]   12. # Latin2 - central Europe and Romanian
[00:04:55]   13. # Latin3 and Latin8 - Chichewa; Esperanto; Irish; Maltese and Welsh
[00:04:55]   14. # Latin7 - Lithuanian; Latvian; Maori and Marshallese
[00:04:55]   15. . Latin - Vietnamese
[00:04:55]   16. # Thai
[00:04:55]   17. . Combined - Latin; Slavic Cyrillic; Hebrew; basic Arabic
[00:04:55]   18. . Combined - Latin; Slavic Cyrillic; Greek
[00:04:55]   19. . Combined - Latin; Slavic and non-Slavic Cyrillic
[00:04:55]   20. Guess optimal character set
[00:04:55] 
[00:04:55] Character set to support: 
[00:04:55] Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 111.
[00:04:55] sed: -e expression #1, char 8: unterminated `s' command
[00:04:55] dpkg: error processing package console-setup (--configure):
[00:04:55]  subprocess installed post-installation script returned error exit status 128
[00:04:55] Processing triggers for libc-bin (2.23-0ubuntu7) ...
[00:04:55] Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
[00:04:56] Processing triggers for resolvconf (1.78ubuntu4) ...
[00:04:56] debconf: unable to initialize frontend: Dialog
[00:04:56] debconf: (TERM is not set, so the dialog frontend is not usable.)
[00:04:56] debconf: falling back to frontend: Readline
[00:04:56] debconf: unable to initialize frontend: Readline
[00:04:56] debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
[00:04:56] debconf: falling back to frontend: Teletype
[00:04:56] Errors were encountered while processing:
[00:04:56]  console-setup
[00:04:57] E: Sub-process /usr/bin/dpkg returned an error code (1)
[00:04:57] LBSERROR: Problem with PrepareForBuilding
[00:05:09] This build took about 5 minutes
tpokorra commented 7 years ago

solution: for apt-get upgrade, use export DEBIAN_FRONTEND=noninteractive

see http://www.microhowto.info/howto/perform_an_unattended_installation_of_a_debian_package.html#idp27232