Skip to content

Docker build of armv7 image fails #330

@celaus

Description

@celaus

I was trying to build the Docker image with added dependencies but the provided image fails to build since the kernel-image package has been updated to 4.9.0-11.

E: Can't select candidate version from package linux-image-4.9.0-8-armmp:armhf as it has no candidate

It looks like updating the version in linux-image.sh fixes this.

Full log:

Sending build context to Docker daemon 133.1 kB
Step 1/15 : FROM ubuntu:14.04
 ---> 2c5e00d77a67
Step 2/15 : RUN apt-get update &&     apt-get install -y --no-install-recommends     ca-certificates     cmake     gcc     libc6-dev     make     pkg-config     git     automake     libtool     m4     autoconf     make     file     binutils     llvm-dev     libclang-dev
 ---> Using cache
 ---> ed2266e18d16
Step 3/15 : COPY xargo.sh /
 ---> Using cache
 ---> f21d8f2eabc7
Step 4/15 : RUN bash /xargo.sh
 ---> Using cache
 ---> 8195ae228ea3
Step 5/15 : COPY cmake.sh /
 ---> Using cache
 ---> e2b24a43d377
Step 6/15 : RUN apt-get purge --auto-remove -y cmake &&     bash /cmake.sh
 ---> Using cache
 ---> 4cb7aef272c3
Step 7/15 : RUN apt-get install -y --no-install-recommends     g++-arm-linux-gnueabihf     libc6-dev-armhf-cross
 ---> Using cache
 ---> 32b3bdea2eb7
Step 8/15 : COPY qemu.sh /
 ---> Using cache
 ---> 2b78d578819e
Step 9/15 : RUN bash /qemu.sh arm linux softmmu
 ---> Using cache
 ---> dbc08a241580
Step 10/15 : COPY dropbear.sh /
 ---> Using cache
 ---> b4f002971841
Step 11/15 : RUN bash /dropbear.sh
 ---> Using cache
 ---> 6cf09eaada07
Step 12/15 : COPY linux-image.sh /
 ---> Using cache
 ---> d6c05a93da9f
Step 13/15 : RUN bash /linux-image.sh armv7
 ---> Running in 182e567ab270
+ main armv7
+ local arch=armv7 kversion=4.9.0-8
+ local 'debsource=deb http://http.debian.net/debian/ stretch main'
+ debsource='deb http://http.debian.net/debian/ stretch main\ndeb http://security.debian.org/ stretch/updates main'
+ local dropbear=dropbear-bin
+ local libssl=libssl1.0.2
+ case $arch in
+ arch=armhf
+ kernel=4.9.0-8-armmp
+ dependencies=(cpio sharutils)
+ local dependencies
+ purge_list=()
+ local purge_list
+ apt-get update
Hit http://security.ubuntu.com trusty-security InRelease
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Ign http://archive.ubuntu.com trusty InRelease
Hit http://archive.ubuntu.com trusty-updates InRelease
Hit http://archive.ubuntu.com trusty-backports InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Reading package lists...
+ for dep in '${dependencies[@]}'
+ dpkg -L cpio
/.
/bin
/bin/cpio
/bin/mt-gnu
/usr
/usr/share
/usr/share/doc
/usr/share/doc/cpio
/usr/share/doc/cpio/NEWS.gz
/usr/share/doc/cpio/copyright
/usr/share/doc/cpio/README.gz
/usr/share/doc/cpio/changelog.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/cpio.1.gz
/usr/share/man/man1/mt-gnu.1.gz
+ for dep in '${dependencies[@]}'
+ dpkg -L sharutils
dpkg-query: package 'sharutils' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
+ apt-get install --no-install-recommends -y sharutils
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
  bsd-mailx mailx
The following NEW packages will be installed:
  sharutils
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 145 kB of archives.
After this operation, 623 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main sharutils amd64 1:4.14-1ubuntu1.1 [145 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 145 kB in 0s (532 kB/s)
Selecting previously unselected package sharutils.
(Reading database ... 20736 files and directories currently installed.)
Preparing to unpack .../sharutils_1%3a4.14-1ubuntu1.1_amd64.deb ...
Unpacking sharutils (1:4.14-1ubuntu1.1) ...
Setting up sharutils (1:4.14-1ubuntu1.1) ...
+ purge_list+=($dep)
+ mv /etc/apt/sources.list /etc/apt/sources.list.bak
+ echo -e 'deb http://http.debian.net/debian/ stretch main\ndeb http://security.debian.org/ stretch/updates main'
+ '[' -f /etc/dpkg/dpkg.cfg.d/multiarch ']'
+ dpkg --add-architecture armhf
+ apt-key adv --recv-key --keyserver keyserver.ubuntu.com EF0F382A1A7B6500
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.6rROfT7oIA --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-key --keyserver keyserver.ubuntu.com EF0F382A1A7B6500
gpg: requesting key 1A7B6500 from hkp server keyserver.ubuntu.com
gpg: key 1A7B6500: public key "Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ apt-key adv --recv-key --keyserver keyserver.ubuntu.com 9D6D8F6BC857C906
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.8Je7pOXXrK --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-key --keyserver keyserver.ubuntu.com 9D6D8F6BC857C906
gpg: requesting key C857C906 from hkp server keyserver.ubuntu.com
gpg: key C857C906: public key "Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ apt-key adv --recv-key --keyserver keyserver.ubuntu.com 8B48AD6246925553
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.ENp95u1xFf --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-key --keyserver keyserver.ubuntu.com 8B48AD6246925553
gpg: requesting key 46925553 from hkp server keyserver.ubuntu.com
gpg: key 46925553: public key "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ apt-key adv --recv-key --keyserver keyserver.ubuntu.com 7638D0442B90D010
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.qyDl1Ep7ya --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-key --keyserver keyserver.ubuntu.com 7638D0442B90D010
gpg: requesting key 2B90D010 from hkp server keyserver.ubuntu.com
gpg: key 2B90D010: public key "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ apt-key adv --recv-key --keyserver keyserver.ubuntu.com DA1B2CEA81DCBC61
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.x61mgRqmaZ --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-key --keyserver keyserver.ubuntu.com DA1B2CEA81DCBC61
gpg: requesting key 81DCBC61 from hkp server keyserver.ubuntu.com
gpg: key 81DCBC61: public key "Debian Ports Archive Automatic Signing Key (2019) <ftpmaster@ports-master.debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ apt-key adv --recv-key --keyserver keyserver.ubuntu.com CBF8D6FD518E17E1
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.biYDDGuj3K --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-key --keyserver keyserver.ubuntu.com CBF8D6FD518E17E1
gpg: requesting key 518E17E1 from hkp server keyserver.ubuntu.com
gpg: key 518E17E1: public key "Jessie Stable Release Key <debian-release@lists.debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ apt-key adv --recv-key --keyserver keyserver.ubuntu.com 06AED62430CB581C
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.KyOpBVDaBM --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-key --keyserver keyserver.ubuntu.com 06AED62430CB581C
gpg: requesting key 30CB581C from hkp server keyserver.ubuntu.com
gpg: key 30CB581C: public key "Debian Ports Archive Automatic Signing Key (2018) <ftpmaster@ports-master.debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
+ apt-get update
Ign http://http.debian.net stretch InRelease
Get:1 http://http.debian.net stretch Release.gpg [2365 B]
Get:2 http://http.debian.net stretch Release [118 kB]
Get:3 http://security.debian.org stretch/updates InRelease [94.3 kB]
Get:4 http://http.debian.net stretch/main amd64 Packages [9480 kB]
Get:5 http://security.debian.org stretch/updates/main amd64 Packages [621 kB]
Get:6 http://security.debian.org stretch/updates/main armhf Packages [603 kB]
Get:7 http://http.debian.net stretch/main armhf Packages [9255 kB]
Fetched 20.2 MB in 5s (3718 kB/s)
Reading package lists...
W: There is no public key available for the following key IDs:
AA8E81B4331F7F50
W: Ignoring Provides line with DepCompareOp for package libapt-inst
W: Ignoring Provides line with DepCompareOp for package libapt-pkg
W: Ignoring Provides line with DepCompareOp for package libespeak-dev
W: Ignoring Provides line with DepCompareOp for package libespeak1
W: Ignoring Provides line with DepCompareOp for package libgpgme11-dev
W: Ignoring Provides line with DepCompareOp for package kodi-api-guilib
W: Ignoring Provides line with DepCompareOp for package kodi-api-pvr
W: Ignoring Provides line with DepCompareOp for package libparse-cpan-meta-perl
W: Ignoring Provides line with DepCompareOp for package libjpeg62
W: Ignoring Provides line with DepCompareOp for package lsb
W: Ignoring Provides line with DepCompareOp for package lsb-core
W: Ignoring Provides line with DepCompareOp for package php-psr-log-implementation
W: Ignoring Provides line with DepCompareOp for package php-seclib
W: Ignoring Provides line with DepCompareOp for package php-sabre-http
W: Ignoring Provides line with DepCompareOp for package php-math-biginteger
W: Ignoring Provides line with DepCompareOp for package pkg-config
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package sagenb-export
W: Ignoring Provides line with DepCompareOp for package sagenb-export
W: Ignoring Provides line with DepCompareOp for package libapt-inst
W: Ignoring Provides line with DepCompareOp for package libapt-pkg
W: Ignoring Provides line with DepCompareOp for package libespeak-dev
W: Ignoring Provides line with DepCompareOp for package libespeak1
W: Ignoring Provides line with DepCompareOp for package libgpgme11-dev
W: Ignoring Provides line with DepCompareOp for package kodi-api-guilib
W: Ignoring Provides line with DepCompareOp for package kodi-api-pvr
W: Ignoring Provides line with DepCompareOp for package libjpeg62
W: Ignoring Provides line with DepCompareOp for package lsb
W: Ignoring Provides line with DepCompareOp for package lsb-core
W: Ignoring Provides line with DepCompareOp for package pkg-config
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
+ mkdir -p -m 777 /qemu/armhf
+ cd /qemu/armhf
+ apt-get -d --no-install-recommends download busybox:armhf dropbear-bin:armhf libc6:armhf libgcc1:armhf libssl1.0.2:armhf libstdc++6:armhf linux-image-4.9.0-8-armmp:armhf ncurses-base zlib1g:armhf
W: Ignoring Provides line with DepCompareOp for package libapt-inst
W: Ignoring Provides line with DepCompareOp for package libapt-pkg
W: Ignoring Provides line with DepCompareOp for package libespeak-dev
W: Ignoring Provides line with DepCompareOp for package libespeak1
W: Ignoring Provides line with DepCompareOp for package libgpgme11-dev
W: Ignoring Provides line with DepCompareOp for package kodi-api-guilib
W: Ignoring Provides line with DepCompareOp for package kodi-api-pvr
W: Ignoring Provides line with DepCompareOp for package libparse-cpan-meta-perl
W: Ignoring Provides line with DepCompareOp for package libjpeg62
W: Ignoring Provides line with DepCompareOp for package lsb
W: Ignoring Provides line with DepCompareOp for package lsb-core
W: Ignoring Provides line with DepCompareOp for package php-psr-log-implementation
W: Ignoring Provides line with DepCompareOp for package php-seclib
W: Ignoring Provides line with DepCompareOp for package php-sabre-http
W: Ignoring Provides line with DepCompareOp for package php-math-biginteger
W: Ignoring Provides line with DepCompareOp for package pkg-config
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package sagenb-export
W: Ignoring Provides line with DepCompareOp for package sagenb-export
W: Ignoring Provides line with DepCompareOp for package libapt-inst
W: Ignoring Provides line with DepCompareOp for package libapt-pkg
W: Ignoring Provides line with DepCompareOp for package libespeak-dev
W: Ignoring Provides line with DepCompareOp for package libespeak1
W: Ignoring Provides line with DepCompareOp for package libgpgme11-dev
W: Ignoring Provides line with DepCompareOp for package kodi-api-guilib
W: Ignoring Provides line with DepCompareOp for package kodi-api-pvr
W: Ignoring Provides line with DepCompareOp for package libjpeg62
W: Ignoring Provides line with DepCompareOp for package lsb
W: Ignoring Provides line with DepCompareOp for package lsb-core
W: Ignoring Provides line with DepCompareOp for package pkg-config
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
W: You may want to run apt-get update to correct these problems
E: Can't select candidate version from package linux-image-4.9.0-8-armmp:armhf as it has no candidate
The command '/bin/sh -c bash /linux-image.sh armv7' returned a non-zero code: 100

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions