Public bug reported:

== Comment: #0 - Ray Kivisto <rkivi...@ca.ibm.com> - 2015-10-23 16:29:48 ==
---Problem Description---
Ubuntu 15.10 ppc64le - unable to install packages after importing squashfs into 
docker
 
Contact Information = Ray Kivisto <rkivi...@ca.ibm.com> 
 
Since ppc64le (Power Little endian) architecture images were not on dockerhub, 
I have been importing my own from the squashfs included on the ubuntu ISO 
images.
This has worked well for Ubuntu 14.04, 14.10, and 15.04, 15.10 beta 2, but 
starting with 15.10 GA it fails to be able to install packages using apt-get or 
dpkg.

Here is the process I use to import the image into docker (running on a 
ppc64le, Power 8, Ubuntu 15.04 machine):
wget 
http://cdimage.ubuntu.com/releases/15.10/release/ubuntu-15.10-server-ppc64el.iso
mkdir iso
sudo mount -o loop ubuntu-15.10-server-ppc64el.iso iso
mkdir unsquashfs
sudo unsquashfs -f -d unsquashfs/ iso/install/filesystem.squashfs
sudo tar -C unsquashfs  -c . | docker import - ppc64le:ubuntu.15.10


Here is the output showing the errors trying to install packages in the 
container:
$ docker run -ti ppc64le:ubuntu.15.10 /bin/bash
root@d86f0dc00f57:/# apt-get update
Get:1 http://ports.ubuntu.com wily InRelease [218 kB]
Get:2 http://ports.ubuntu.com wily-security InRelease [64.4 kB]
Get:3 http://ports.ubuntu.com wily-updates InRelease [64.4 kB]
Get:4 http://ports.ubuntu.com wily/main ppc64el Packages [1368 kB]
Get:5 http://ports.ubuntu.com wily/main Translation-en [839 kB]
Get:6 http://ports.ubuntu.com wily-security/main ppc64el Packages [939 B]
Get:7 http://ports.ubuntu.com wily-security/main Translation-en [1509 B]
Get:8 http://ports.ubuntu.com wily-updates/main ppc64el Packages [1806 B]
Get:9 http://ports.ubuntu.com wily-updates/main Translation-en [1701 B]
Fetched 2559 kB in 5s (493 kB/s)
Reading package lists... Done
root@d86f0dc00f57:/# apt-get install tar
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  gcc-5-base libacl1 libattr1 libc6 libgcc1 libpcre3 libselinux1 
multiarch-support
Suggested packages:
  glibc-doc debconf debconf-2.0 locales bzip2 ncompress xz-utils tar-scripts
The following NEW packages will be installed:
  gcc-5-base libacl1 libattr1 libc6 libgcc1 libpcre3 libselinux1 
multiarch-support tar
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 5751 kB of archives.
After this operation, 27.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports/ wily/main gcc-5-base ppc64el 
5.2.1-22ubuntu2 [16.7 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ wily/main libc6 ppc64el 
2.21-0ubuntu4 [5194 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports/ wily/main libgcc1 ppc64el 
1:5.2.1-22ubuntu2 [27.6 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports/ wily/main multiarch-support ppc64el 
2.21-0ubuntu4 [7234 B]
Get:5 http://ports.ubuntu.com/ubuntu-ports/ wily/main libattr1 ppc64el 
1:2.4.47-2 [9324 B]
Get:6 http://ports.ubuntu.com/ubuntu-ports/ wily/main libacl1 ppc64el 2.2.52-2 
[15.6 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports/ wily/main libpcre3 ppc64el 
2:8.35-7.1ubuntu1 [217 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports/ wily/main libselinux1 ppc64el 
2.3-2build1 [58.0 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports/ wily/main tar ppc64el 1.27.1-2 [206 
kB]
Fetched 5751 kB in 6s (848 kB/s)
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
dpkg: error: corrupt info database format file '/var/lib/dpkg/info/format'
E: Sub-process /usr/bin/dpkg returned an error code (2)
root@d86f0dc00f57:/# echo $?
100
root@d86f0dc00f57:/# dpkg -l
root@d86f0dc00f57:/# cd /var/cache/apt/archives/
root@d86f0dc00f57:/var/cache/apt/archives# dpkg -iG *.deb
dpkg: error: corrupt info database format file '/var/lib/dpkg/info/format'
root@d86f0dc00f57:/var/cache/apt/archives# cat /var/lib/dpkg/info/format
root@d86f0dc00f57:/var/cache/apt/archives#


Running the following command makes it so dpkg and apt-get can install 
packages, though the 'Cannot get debconf version' error remains:

echo '1' > /var/lib/dpkg/info/format

Then to fix the 'Cannot get debconf version' error I installed
coreutils:

apt-get install coreutils

---uname output---
Linux 5c413f4d7618 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:13 UTC 
2015 ppc64le ppc64le ppc64le GNU/Linux
 
Machine Type = Power 8 
 
---boot type---
CDROM / ISO image
 
---Install repository type---
CDROM
 
---Point of failure---
Problem during post-install (stage 2) configuration or other problem seen after 
reboot

== Comment: #1 - Ray Kivisto <rkivi...@ca.ibm.com> - 2015-10-26 14:21:23 ==
One correction, I have only successfully used this squashfs import method for 
15.10 daily build from 2015-09-22 and the 15.10 beta 2.

For 14.04, 14.10 and 15.04 I had been using:
sudo  debootstrap  --arch ppc64el vivid vivid 
http://ports.ubuntu.com/ubuntu-ports
sudo tar -C vivid -c . | sudo docker import - ppc64le:ubuntu.15.04

** Affects: ubuntu
     Importance: Undecided
     Assignee: Taco Screen team (taco-screen-team)
         Status: New


** Tags: architecture-ppc64le bugnameltc-132322 severity-medium 
targetmilestone-inin---

** Tags added: architecture-ppc64le bugnameltc-132322 severity-medium
targetmilestone-inin---

** Changed in: ubuntu
     Assignee: (unassigned) => Taco Screen team (taco-screen-team)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1517885

Title:
  Ubuntu 15.10 ppc64le - unable to install packages after importing
  squashfs into docker

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1517885/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to