Bug 33399 - installation procedure in ALT template fails
Summary: installation procedure in ALT template fails
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: lxc (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 16:49 MSK by Ivan Zakharyaschev
Modified: 2017-04-26 17:07 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2017-04-20 16:49:18 MSK
# rpm -qf /usr/share/lxc/templates/lxc-altlinux
lxc-2.0.7-alt3.x86_64
# rpm -q rpm apt
rpm-4.13.0-alt7.x86_64
apt-0.5.15lorg2-alt56.x86_64

Installation procedure in ALT template fails, maybe because of the missing executable /usr/lib/rpm/posttrans-filetriggers when the first simple command is performed (from the source):

    # Need to have minimal /dev/ subtree for scripts
    $APT_GET install dev-minimal && \
        $APT_GET install $PKG_LIST

or, if that was not critical, because of alternatives for "apt-conf" package:

# lxc-create -t altlinux -n test0-ALT -- -R sisyphus
Checking cache download in /var/cache/lxc/altlinux/x86_64/sisyphus/default/rootfs ... 
Downloading altlinux minimal ...
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  coreutils filesystem glibc-core glibc-preinstall glibc-pthread grep libacl libattr libcap libgcc1 libgmp10 libpcre3 libselinux libtinfo sed setup sh terminfo
The following NEW packages will be installed:
  coreutils dev-minimal filesystem glibc-core glibc-preinstall glibc-pthread grep libacl libattr libcap libgcc1 libgmp10 libpcre3 libselinux libtinfo sed setup sh terminfo
0 upgraded, 19 newly installed, 0 removed and 0 not upgraded.
Need to get 1798kB/5409kB of archives.
After unpacking 22.9MB of additional disk space will be used.
Get:1 http://ftp.altlinux.org ALTLinux/Sisyphus/x86_64/classic filesystem 2.3.15-alt1 [18.7kB]
Get:2 http://ftp.altlinux.org ALTLinux/Sisyphus/x86_64/classic glibc-preinstall 6:2.25-alt2 [37.3kB]
Get:3 http://ftp.altlinux.org ALTLinux/Sisyphus/x86_64/classic glibc-core 6:2.25-alt2 [1398kB]
Get:4 http://ftp.altlinux.org ALTLinux/Sisyphus/x86_64/classic libgmp10 6.1.2-alt2 [237kB]
Get:5 http://ftp.altlinux.org ALTLinux/Sisyphus/x86_64/classic glibc-pthread 6:2.25-alt2 [107kB]
Fetched 1798kB in 0s (5045kB/s)    
=== apt-printchanges ===
==filesystem==
* Wed Apr 19 2017 Anton Farygin <rider@altlinux.ru> 2.3.15-alt1
- Added provides for /dev/shm.
==libcap==
* Sun Mar 26 2017 Dmitry V. Levin <ldv@altlinux.org> 1:2.25-alt1
- Updated to libcap-2.25-1-g1f52c8a.
==libacl==
* Mon Jul 04 2016 Dmitry V. Levin <ldv@altlinux.org> 2.2.52.0.50.ea3c-alt1
- v2.2.52-29-g519e393 -> v2.2.52-50-gea3c6bb.
==libgcc1==
* Wed Feb 01 2017 Gleb F-Malinovskiy <glebfm@altlinux.org> 6.3.1-alt2
- Updated to redhat/gcc-6-branch r244565.
- Synced with Fedora gcc 6.3.1-2.
- Fixed gnatmake's path to gcc (ALT#33003).
- Packaged buildreq substitution config for libmpx6-devel-static.
- Enabled java on aarch64.
==libpcre3==
* Wed Jan 11 2017 Dmitry V. Levin <ldv@altlinux.org> 8.40-alt1
- 8.39 -> 8.40.
==libselinux==
* Tue Nov 22 2016 Anton Farygin <rider@altlinux.ru> 1:2.5-alt2
- upstream fixes for /proc mounting (closes: #32778)
==setup==
* Tue Oct 12 2010 Dmitry V. Levin <ldv@altlinux.org> 2.2.14-alt1
- /etc/services: added portbind and quotad/rquotad (closes: #24245).
==sh==
* Thu Dec 10 2015 Dmitry V. Levin <ldv@altlinux.org> 3.2.57-alt1
- Updated to 3.2 patchlevel 57.
==dev-minimal==
* Sun May 12 2013 Denis Smirnov <mithraen@altlinux.ru> 3.3.1-alt21
- replace Zaptel to DAHDI
- remove /dev/MAKEDEV
==glibc-preinstall glibc-core glibc-pthread==
* Thu Apr 06 2017 Gleb F-Malinovskiy <glebfm@altlinux.org> 6:2.25-alt2
- x86_64: moved libm-2.25.a to glibc-devel-static subpackage.
- check: xfailed tst-getrandom test.
==terminfo libtinfo==
* Mon Feb 29 2016 Fr. Br. George <george@altlinux.ru> 5.9-alt8
- Rebuild with new GCC
==libgmp10==
* Thu Apr 13 2017 Anton Farygin <rider@altlinux.ru> 6.1.2-alt2
- Enabled visibility for __gmpn_divexact, which is used in ocaml-zarith.
==grep==
* Sun Mar 26 2017 Dmitry V. Levin <ldv@altlinux.org> 3.0.0.12.e2b7-alt1
- grep: v3.0-11-gdff64f9 -> v3.0-12-ge2b7253.
- gnulib: v0.1-1209-g24b3216 -> v0.1-1213-g683b607.
==coreutils==
* Tue Mar 21 2017 Dmitry V. Levin <ldv@altlinux.org> 8.27.0.6.04148-alt1
- coreutils: v8.24-40-gc1dba59 -> v8.27-6-g04148c9.
- gnulib: v0.1-585-g2fda85e -> v0.1-1209-g24b3216.
==sed==
* Tue Mar 21 2017 Dmitry V. Levin <ldv@altlinux.org> 1:4.4.0.10.0580-alt1
- sed: v4.2.2-93-g31c84cb -> v4.4-10-g05800ee.
- gnulib: v0.1-585-g2fda85e -> v0.1-1209-g24b3216.
==libattr==
* Mon Jul 04 2016 Dmitry V. Levin <ldv@altlinux.org> 2.4.47.0.44.315a-alt1
- v2.4.47-35-gdce9b44 -> v2.4.47-44-g315af30 (closes: #32244).
Committing changes...
Preparing...                                                                                                                      #################################################################################################### [100%]
Updating / installing...
 1: setup-2.2.14-alt1                                                                                                             #################################################################################################### [  5%]
 2: filesystem-2.3.15-alt1                                                                                                        #################################################################################################### [ 11%]
 3: glibc-preinstall-6:2.25-alt2                                                                                                  #################################################################################################### [ 16%]
 4: glibc-core-6:2.25-alt2                                                                                                        #################################################################################################### [ 21%]
 5: libacl-2.2.52.0.50.ea3c-alt1                                                                                                  #################################################################################################### [ 26%]
 6: libpcre3-8.40-alt1                                                                                                            #################################################################################################### [ 32%]
 7: libselinux-1:2.5-alt2                                                                                                         #################################################################################################### [ 37%]
 8: sh-3.2.57-alt1                                                                                                                #################################################################################################### [ 42%]
 9: grep-3.0.0.12.e2b7-alt1                                                                                                       #################################################################################################### [ 47%]
10: sed-1:4.4.0.10.0580-alt1                                                                                                      #################################################################################################### [ 53%]
11: libattr-2.4.47.0.44.315a-alt1                                                                                                 #################################################################################################### [ 58%]
12: libcap-1:2.25-alt1                                                                                                            #################################################################################################### [ 63%]
13: libgmp10-6.1.2-alt2                                                                                                           #################################################################################################### [ 68%]
14: libgcc1-6.3.1-alt2                                                                                                            #################################################################################################### [ 74%]
15: glibc-pthread-6:2.25-alt2                                                                                                     #################################################################################################### [ 79%]
16: terminfo-5.9-alt8                                                                                                             #################################################################################################### [ 84%]
17: libtinfo-5.9-alt8                                                                                                             #################################################################################################### [ 89%]
18: coreutils-8.27.0.6.04148-alt1                                                                                                 #################################################################################################### [ 95%]
19: dev-minimal-3.3.1-alt21                                                                                                       #################################################################################################### [100%]
/root/tmp/rpm-tmp.1kgLSl: line 1: /usr/lib/rpm/posttrans-filetriggers: No such file or directory
/root/tmp/rpm-tmp.1kgLSl: line 1: exec: /usr/lib/rpm/posttrans-filetriggers: cannot execute: No such file or directory
warning: posttrans filetriggers scriptlet failed, exit status 126
Done.
Reading Package Lists... Done
Building Dependency Tree... Done
Package apt-conf is a virtual package provided by:
  apt-conf-branch 8.1.1-alt1
  apt-conf-sisyphus 7.1.1-alt1
You should explicitly select one to install.
E: Package apt-conf is a virtual package with multiple good providers.

Failed to download the rootfs, aborting.
Failed to download 'altlinux base'
failed to install altlinux
lxc-create: lxccontainer.c: create_run_template: 1297 container creation template for test0-ALT failed
lxc-create: tools/lxc_create.c: main: 318 Error creating container test0-ALT
#
Comment 1 Denis Pynkin 2017-04-26 17:07:52 MSK
lxc-2.0.7-alt4 is going to Sisyphus.
By default 'apt-conf-sisyphus' is used for Sisyphus and 'apt-conf-branch' for the rest of branches. 
User-defined alternative for 'apt-conf' could be selected via parameter '-a|--apt-conf'.