Skip to content

Instantly share code, notes, and snippets.

@spuder
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spuder/da1be433492282010b7d to your computer and use it in GitHub Desktop.
Save spuder/da1be433492282010b7d to your computer and use it in GitHub Desktop.
Attempting to create sles docker container following this http://bit.ly/1jhEZxU
sles-packages:~ # kiwi -p /usr/share/doc/packages/kiwi/examples/suse-13.1/suse-docker-container \
>      --root /tmp/mycontainer
Jul-07 20:14:37 <1> : Description provides no MD5 hash, check
Jul-07 20:14:37 <1> : Reading image description [Prepare]...
Jul-07 20:14:37 <1> : Setting up package manager: zypper                                                                                                                  done
Jul-07 20:14:37 <1> : Setting up source channel:
Jul-07 20:14:37 <1> : --> opensuse://13.1/repo/oss/
Jul-07 20:14:38 <1> : Set root log: /tmp/mycontainer.21413.screenrc.log...                                                                                                done
Jul-07 20:14:38 <1> : Creating default template files for new root system                                                                                                 done
Jul-07 20:14:38 <1> : Importing build keys...                                                                                                                             done
Jul-07 20:14:39 <1> : Adding bootstrap zypper service: http:__download.opensuse.org_distribution_13.1_repo_oss                                                            done
Jul-07 20:14:40 <1> : Initializing image system on: /tmp/mycontainer                                                                                                      failed
[*** log excerpt follows, screen ***]
Problem: solvable libstdc++6-4.8.1_20130909-3.2.1.x86_64 conflicts with libstdc++6 provided by itself
Problem: solvable libstdc++6-32bit-4.8.1_20130909-3.2.1.x86_64 conflicts with libstdc++6-32bit provided by itself

Problem: solvable libstdc++6-4.8.1_20130909-3.2.1.x86_64 conflicts with libstdc++6 provided by itself
 Solution 1: do not install zypper-1.9.3-1.1.x86_64

Choose the above solution using '1' or skip, retry or cancel [1/s/r/c] (c): c
 ECODE=4
+ echo 4
+ exit 4
[*** end ***]
Jul-07 20:14:49 <3> : Base initialization failed                                                                                                                          failed
[*** log excerpt follows, last significant bytes ***]
 + YAST_IS_RUNNING=true
 + export ZYPP_CONF=/tmp/mycontainer//var/cache/kiwi/zypper/zypp.conf.21413
 + ZYPP_CONF=/tmp/mycontainer//var/cache/kiwi/zypper/zypp.conf.21413
 + export ZYPP_LOCKFILE_ROOT=/tmp/mycontainer
 + ZYPP_LOCKFILE_ROOT=/tmp/mycontainer
 + mkdir -p /tmp/mycontainer/etc/zypp
 + SPID=21560
 + /usr/bin/zypper --non-interactive --pkg-cache-dir /var/cache/kiwi/packages --reposd-dir /tmp/mycontainer//var/cache/kiwi/zypper/repos --solv-cache-dir /tmp/mycontainer//var/cache/kiwi/zypper/solv --cache-dir /tmp/mycontainer//var/cache/kiwi/zypper --config /var/cache/kiwi/zypper/zypper.conf.21413 --no-gpg-checks --root /tmp/mycontainer install --auto-agree-with-licenses --no-recommends filesystem glibc-locale module-init-tools zypper
 + wait 21560
 Error parsing zypper.conf:
 /var/cache/kiwi/zypper/zypper.conf.21413: Input string does not match at all
 *** Augeas exception. No config read, sticking with defaults.

 Automatically trusting the following key:
 Key ID: B88B2FD43DBDC284
 Key Name: openSUSE Project Signing Key <opensuse@opensuse.org>
 Key Fingerprint: 22C07BA534178CD02EFE22AAB88B2FD43DBDC284
 Key Created: Wed May  5 15:01:33 2010
 Key Expires: Sun May  4 15:01:33 2014 (EXPIRED)
 Repository: http:__download.opensuse.org_distribution_13.1_repo_oss

 Loading repository data...
 Reading installed packages...
 Resolving package dependencies...
 3 Problems:
 Problem: solvable libstdc++6-4.8.1_20130909-3.2.1.x86_64 conflicts with libstdc++6 provided by itself
 Problem: solvable libstdc++6-4.8.1_20130909-3.2.1.x86_64 conflicts with libstdc++6 provided by itself
 Problem: solvable libstdc++6-32bit-4.8.1_20130909-3.2.1.x86_64 conflicts with libstdc++6-32bit provided by itself

 Problem: solvable libstdc++6-4.8.1_20130909-3.2.1.x86_64 conflicts with libstdc++6 provided by itself
  Solution 1: do not install zypper-1.9.3-1.1.x86_64

 Choose the above solution using '1' or skip, retry or cancel [1/s/r/c] (c): c
  ECODE=4
 + echo 4
 + exit 4
 Jul-07 20:14:49 <1> : EXEC [rm -f /tmp/mycontainer/screenrc.smart*]
 Jul-07 20:14:49 <1> : EXEC [rm -f /tmp/mycontainer/screenrc.ctrls]
 Jul-07 20:14:49 <1> : EXEC [test -d "/tmp/mycontainer/proc"]
 Jul-07 20:14:49 <1> : Umounting path: /tmp/mycontainer/proc
 Jul-07 20:14:49 <1> : EXEC [umount "/tmp/mycontainer/proc" 2>&1]
 Jul-07 20:14:49 <1> : EXEC [test -d "/tmp/mycontainer//var/cache/kiwi"]
 Jul-07 20:14:49 <1> : Umounting path: /tmp/mycontainer//var/cache/kiwi
 Jul-07 20:14:49 <1> : EXEC [umount "/tmp/mycontainer//var/cache/kiwi" 2>&1]
 Jul-07 20:14:49 <1> : EXEC [test -d "/tmp/mycontainer/dev"]
 Jul-07 20:14:49 <1> : Umounting path: /tmp/mycontainer/dev
 Jul-07 20:14:49 <1> : EXEC [umount "/tmp/mycontainer/dev" 2>&1]
 Jul-07 20:14:49 <1> : Release package manager lock
 Jul-07 20:14:49 <1> : EXEC [rm -f /var/lock/kiwi-init.lock]
 Jul-07 20:14:49 <3> : Base initialization failed
 [*** end ***]
Jul-07 20:14:49 <3> : KIWI exited with error(s)
Jul-07 20:14:49 <1> : Complete logfile at: /tmp/mycontainer.log
@mcandre
Copy link

mcandre commented Jun 7, 2015

Did you ever manage to find a solution to this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment