[pkg-lxc-devel] Bug#890884: lxc: Fail to create wheezy container: couldn't find iproute2 package

Andrii Senkovych andrii at senkovych.com
Tue Feb 20 10:27:35 UTC 2018


Package: lxc
Version: 1:2.0.9-6
Severity: normal
Tags: patch

Dear Maintainer,

Thank you for your efforts maintaining LXC in Debian! I've found a small
annoying issue with Debian wheezy containers, here are the details:

Creation of the Debian Wheezy container fails due to wrong name of the iproute
package: debootstrap looks for the iproute2 package while there is only iproute
package available. Here's a sample run:

~~~
lxc-create -n wheezy -t debian -- -r wheezy
debootstrap is /usr/sbin/debootstrap
Checking cache download in /var/cache/lxc/debian/rootfs-wheezy-amd64 ... 
Downloading debian minimal ...
I: Retrieving InRelease 
I: Retrieving Release 
I: Retrieving Release.gpg 
I: Checking Release signature
I: Valid Release signature (key id ED6D65271AACF0FF15D123036FB2A1C265FFB764)
I: Retrieving Packages 
I: Validating Packages 
I: Found packages in base already in required: sysvinit 
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: insserv libbz2-1.0 libdb5.1 libsemanage-common libsemanage1 libslang2 libustr-1.0-1 
I: Found additional base dependencies: adduser debian-archive-keyring gnupg gpgv iproute isc-dhcp-common libapt-pkg4.12 libbsd0 libedit2 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libncursesw5 libprocps0 libreadline6 libssl1.0.0 libstdc++6 libusb-0.1-4 libwrap0 openssh-client procps readline-common 
I: Checking component main on http://deb.debian.org/debian...
E: Couldn't find these debs: iproute2
Failed to download the rootfs, aborting.
Failed to download 'debian base'
failed to install debian
lxc-create: lxccontainer.c: create_run_template: 1427 container creation template for wheezy failed
lxc-create: tools/lxc_create.c: main: 326 Error creating container wheezy
~~~

Providing a simple patch that gently fixes this issue.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lxc depends on:
ii  libapparmor1  2.12-2
ii  libc6         2.26-6
ii  libcap2       1:2.25-1.2
ii  libgnutls30   3.5.18-1
ii  liblxc1       1:2.0.9-6
ii  libseccomp2   2.3.1-2.1
ii  libselinux1   2.7-2+b1
ii  lsb-base      9.20170808
ii  python3       3.6.4-1
ii  python3-lxc   1:2.0.9-6

Versions of packages lxc recommends:
ii  bridge-utils  1.5-14
ii  debootstrap   1.0.93
ii  dirmngr       2.2.4-3
ii  dnsmasq-base  2.78-3
ii  gnupg         2.2.4-3
ii  iptables      1.6.2-1
ii  libpam-cgfs   2.0.8-1
ii  lxcfs         2.0.8-1
ii  openssl       1.1.0g-2
ii  rsync         3.1.2-2.1
ii  uidmap        1:4.5-1

Versions of packages lxc suggests:
ii  apparmor     2.12-2
pn  btrfs-progs  <none>
pn  lvm2         <none>

-- no debconf information
-------------- next part --------------
--- /usr/share/lxc/templates/lxc-debian	2018-02-08 16:02:25.496742719 +0200
+++ /usr/share/lxc/templates/lxc-debian.new	2018-02-20 12:16:19.870712786 +0200
@@ -250,20 +250,22 @@
     case "$release" in
       wheezy)
         init=sysvinit
+	iproute=iproute
         ;;
       *)
         init=init
+	iproute=iproute2
         ;;
     esac
     packages=\
 $init,\
+$iproute,\
 ifupdown,\
 locales,\
 dialog,\
 isc-dhcp-client,\
 netbase,\
 net-tools,\
-iproute2,\
 openssh-server
 
     cache=$1


More information about the Pkg-lxc-devel mailing list