Build error

Asked by Frank Ketterman

Error message:
--2018-06-02 13:50:42-- http://archive.ubuntu.com/ubuntu/ubuntu/ubuntu/pool/main/g/gfxboot-theme-ubuntu/gfxboot-theme-ubuntu_0.20.1.tar.xz
Resolving archive.ubuntu.com (archive.ubuntu.com)... 91.189.88.149, 91.189.88.161, 91.189.88.152, ...
Connecting to archive.ubuntu.com (archive.ubuntu.com)|91.189.88.149|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 196616 (192K) [application/x-xz]
Saving to: ‘gfxboot-theme-ubuntu_0.20.1.tar.xz’

     0K .......... .......... .......... .......... .......... 26% 165K 1s
    50K .......... .......... .......... .......... .......... 52% 349K 0s
   100K .......... .......... .......... .......... .......... 78% 619K 0s
   150K .......... .......... .......... .......... .. 100% 709K=0.6s

2018-06-02 13:50:43 (328 KB/s) - ‘gfxboot-theme-ubuntu_0.20.1.tar.xz’ saved [196616/196616]

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Unable to extract gfxboot-theme-ubuntu source package

I have already made these changes;

Ubuntu Customization Kit has not been developed for years, and has the note
"!!!PROJECT DISCONTINUED!!!"
on its Launchpad homepage https://launchpad.net/uck

Recent Ubuntu releases differ from previous ones in a manner, that certain steps of UCK now fail.

I can give some advice:
     1. deselect all language packages that contain the string -touch- in their name
     2. modify /usr/lib/uck/customization-profiles/localized_cd/customize_iso and change in line ~84 (the longest line in the whole file) the part

... $(zgrep gz ...
      into
... $(zgrep xz ...

and three lines later
      change

tar xfz *.tar.gz ||
       into
tar xfJ *.tar.xz ||

You might read recent questions and bugs related to UCK on Launchpad. These recommendations (and some more) have already been given to other persons with similar problems.

Question information

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

Have you really done all THREE changes in these lines?

Revision history for this message
Frank Ketterman (fnketterman) said :
#2

I believe so, not to sure on the '1. deselect all language packages that contain the string -touch- in their name'. Not even sure where this would be 'deselected' as no string with '-touch-' can be found.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

I was referring to the modification of the /usr/lib/uck/customization-profiles/localized_cd/customize_iso file.

What are the current contents of the lines that were supposed to be changed?

Revision history for this message
Frank Ketterman (fnketterman) said :
#4

Lines 69 - 89 of the customize_iso file.

# Create a temporary directory to assemble the gfxboot stuff in
BUILD_DIR=`mktemp -d`
if [ -d $REMASTER_HOME/gfxboot-theme-ubuntu ]
then
 cp -r $REMASTER_HOME/gfxboot-theme-ubuntu "$BUILD_DIR" ||
  failure "Cannot copy gfxboot-theme-ubuntu to $BUILD_DIR"
 pushd "$BUILD_DIR" >/dev/null ||
  failure "Cannot change directory to $BUILD_DIR"
else
 pushd "$BUILD_DIR" >/dev/null ||
  failure "Cannot change directory to $BUILD_DIR"
 DISTRO_CODENAME=`cd "$ISO_REMASTER_DIR"/dists && find . -maxdepth 1 -type d | grep '/' | cut -d '/' -f2` ||
  failure "Unable to identify Ubuntu distro codename"
 APT_SOURCES_TMP_DIR=`mktemp -d`
 wget -c http://archive.ubuntu.com/ubuntu/ubuntu/ubuntu/dists/$DISTRO_CODENAME/main/source/Sources.gz -O "$APT_SOURCES_TMP_DIR"/Sources.gz
 GFXBOOT_THEME_UBUNTU_SOURCE_PACKAGE=http://archive.ubuntu.com/ubuntu/ubuntu/ubuntu/pool/main/g/gfxboot-theme-ubuntu/$(zgrep xz "$APT_SOURCES_TMP_DIR"/Sources.gz | grep gfxboot-theme-ubuntu | sed -n 1p | awk '{ print $3 }')
 wget $GFXBOOT_THEME_UBUNTU_SOURCE_PACKAGE ||
  failure "Unable to download gfxboot-theme-ubuntu source package from $GFXBOOT_THEME_UBUNTU_SOURCE_PACKAGE"
 tar xfz *.tar.xz ||
  failure "Unable to extract gfxboot-theme-ubuntu source package"
fi

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#5

      change

tar xfz *.tar.gz ||
        into
tar xfJ *.tar.xz ||

There has to be a capital J instead of a z !

Revision history for this message
Frank Ketterman (fnketterman) said :
#6

Thank you Manfred, this has resolved the issue.

Revision history for this message
Frank Ketterman (fnketterman) said :
#7

Thanks Manfred Hampl, that solved my question.