Ubuntu hardy build fails on defconf

Asked by EddieFromOuterSpace

I'm using UCK 2.0.1 from deb package on sourceforge on a ubuntu hardy x86_32 fresh installation. After resolving some problems about var/cache/apt not being a directory in the live root, the builder fails on a defcon error. Note that language is irrelevant, i tried both english and italian.
Here's my build log:
Starting CD remastering on mer apr 23 16:08:18 CEST 2008
Customization dir=/home/edoardo/tmp/customization-scripts
Mounting ISO image...
Unpacking ISO image...
Unmounting ISO image...
Mounting SquashFS image...
Unpacking SquashFS image...
Unmounting SquashFS image...
Copying customization scripts...
Copying resolv.conf...
Copying local apt cache, if available
Mounting X11 sockets directory to allow access from customization environment...
Creating user directory...
Copying X authorization file to chroot filesystem...
xauth: creating new authority file /root/.Xauthority
xauth: creating new authority file /home/edoardo/.Xauthority
Hit http://security.ubuntu.com hardy-security Release.gpg
Get:1 http://archive.ubuntu.com hardy Release.gpg [191B]
Hit http://security.ubuntu.com hardy-security Release
Get:2 http://archive.ubuntu.com hardy Release [65.9kB]
Hit http://security.ubuntu.com hardy-security/main Packages
Hit http://security.ubuntu.com hardy-security/restricted Packages
Hit http://security.ubuntu.com hardy-security/main Sources
Hit http://security.ubuntu.com hardy-security/restricted Sources
Get:3 http://archive.ubuntu.com hardy/main Packages [1179kB]
Get:4 http://archive.ubuntu.com hardy/restricted Packages [6986B]
Get:5 http://archive.ubuntu.com hardy/main Sources [338kB]
Get:6 http://archive.ubuntu.com hardy/restricted Sources [1488B]
Fetched 1591kB in 7s (208kB/s)
Reading package lists...
Installing language packs (it)...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  aspell-it gimp-help-it iitalian language-pack-gnome-it-base
  language-pack-it-base language-support-translations-it
  language-support-writing-it myspell-it openoffice.org-help-it
  openoffice.org-hyphenation-it openoffice.org-l10n-it
  openoffice.org-thesaurus-it thunderbird-locale-it witalian
Suggested packages:
  hunspell-dictionary-it myspell-dictionary-it openoffice.org2-thesaurus-it
The following NEW packages will be installed:
  aspell-it gimp-help-it iitalian language-pack-gnome-it
  language-pack-gnome-it-base language-pack-it language-pack-it-base
  language-support-it language-support-translations-it
  language-support-writing-it myspell-it openoffice.org-help-it
  openoffice.org-hyphenation-it openoffice.org-l10n-it
  openoffice.org-thesaurus-it thunderbird-locale-it witalian
0 upgraded, 17 newly installed, 0 to remove and 147 not upgraded.
Need to get 23.4MB of archives.
After this operation, 73.9MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com hardy/main language-pack-gnome-it-base 1:8.04+20080415 [1942kB]
Get:2 http://archive.ubuntu.com hardy/main language-pack-gnome-it 1:8.04+20080415 [2046B]
Get:3 http://archive.ubuntu.com hardy/main language-pack-it-base 1:8.04+20080415 [1411kB]
Get:4 http://archive.ubuntu.com hardy/main language-pack-it 1:8.04+20080415 [2016B]
Get:5 http://archive.ubuntu.com hardy/main gimp-help-it 2.4.0-2 [7615kB]
Get:6 http://archive.ubuntu.com hardy/main aspell-it 0.60.20060723ds1-1 [1021kB]
Get:7 http://archive.ubuntu.com hardy/main iitalian 1:2.3-2 [324kB]
Get:8 http://archive.ubuntu.com hardy/main myspell-it 1:2.4.0~m240-1ubuntu1 [363kB]
Get:9 http://archive.ubuntu.com hardy/main openoffice.org-hyphenation-it 1:2.4.0~m240-1ubuntu1 [5882B]
Get:10 http://archive.ubuntu.com hardy/main openoffice.org-thesaurus-it 0+20050726-0ubuntu2 [754kB]
Get:11 http://archive.ubuntu.com hardy/main witalian 1.7.3-0.1 [315kB]
Get:12 http://archive.ubuntu.com hardy/main language-support-writing-it 1:8.04+20080409 [2158B]
Get:13 http://archive.ubuntu.com hardy/main language-support-it 1:8.04+20080214 [1846B]
Get:14 http://archive.ubuntu.com hardy/main thunderbird-locale-it 1:2.0.0.0+1-0ubuntu1 [162kB]
Get:15 http://archive.ubuntu.com hardy/main language-support-translations-it 1:8.04+20080407 [2132B]
Get:16 http://archive.ubuntu.com hardy/main openoffice.org-l10n-it 1:2.4.0-3ubuntu1 [1349kB]
Get:17 http://archive.ubuntu.com hardy/main openoffice.org-help-it 1:2.4.0-3ubuntu1 [8082kB]
debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at (eval 1) line 4.
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
Fetched 23.4MB in 1min49s (213kB/s)
Selecting previously deselected package language-pack-gnome-it-base.
(Reading database ... dpkg: error processing /var/cache/apt/archives/language-pack-gnome-it-base_1%3a8.04+20080415_all.deb (--unpack):
 files list file for package `shared-mime-info' contains empty filename
Errors were encountered while processing:
 /var/cache/apt/archives/language-pack-gnome-it-base_1%3a8.04+20080415_all.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get install language-pack-it language-support-it language-pack-gnome-it failed, error=100
Unmounting directory /home/edoardo/tmp/remaster-root/proc...
Unmounting directory /home/edoardo/tmp/remaster-root/sys...
Unmounting directory /home/edoardo/tmp/remaster-root/dev/pts...
Saving apt cache
Cleaning up apt
Removing customize dir...
Cleaning up temporary directories...
Restoring /root directory...
Removing /home/username directory, if created...
Restoring resolv.conf...

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Customization Kit Edit question
Assignee:
No assignee Edit question
Solved by:
EddieFromOuterSpace
Solved:
Last query:
Last reply:
Revision history for this message
EddieFromOuterSpace (marlborojack) said :
#1

sorry, debconf not defconf :)

Revision history for this message
Fabrizio Balliano (fabrizio-balliano) said :
#2

hi, can you please tell me what did you patch to solve the var/cache/apt? I tried a few times without having problems about that neither the debconf one...

anyway I'll do more tests with the stable release out, just because maybe it was a faulty repository state

Revision history for this message
EddieFromOuterSpace (marlborojack) said :
#3

ok, the problem was that on squashfs decompression the path /var/cache/apt was a file and not a directory. That caused a problem on /usr/lib/uck/remaster-live-cd.sh on line 209:
...
echo "Copying local apt cache, if available"
 if [ -e "$APT_CACHE_SAVE_DIR" ]; then
...
i solved simply in this way
...
echo "Copying local apt cache, if available"
 rm "$REMASTER_DIR/var/cache/apt"
 mkdir -p "$REMASTER_DIR/var/cache/apt/archives/partial"
 if [ -e "$APT_CACHE_SAVE_DIR" ]; then
...
Also i forgot to mention that both ubuntu hardy images avaible, beta and rc, are affected by this problem.
Anyway, i'll try to execute the code related to the language selection, as i cannot figure out why the system tries to compile the packages and not install the binaries directly

Revision history for this message
EddieFromOuterSpace (marlborojack) said :
#4

OK, i solved. The problems were generated by a faulty interaction between latest squashfs kernel patch and squashfs-tools by ubuntu. Funny that no error message were generated by squashfs module neither unsquashfs.
Thanks for help!