postinst uses python when not available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
python is not available in wily images (bug 1427275).
cloud-init depends on python3, so we can safely use that in a postinst.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: cloud-init 0.7.7~bzr1146-
ProcVersionSign
Uname: Linux 4.2.0-10-generic x86_64
ApportVersion: 2.18.1-0ubuntu1
Architecture: amd64
Date: Tue Sep 22 13:30:48 2015
Ec2AMI: ami-0000059b
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: None
Ec2Ramdisk: None
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
note, the failure here was seen in maas. ureadahead. conf to /etc/init/ ureadahead. conf.disabled by cloud-init' dpkg/info/ cloud-init. postinst: 59: /var/lib/ dpkg/info/ cloud-init. postinst: python: not found w5/target' , 'dpkg-reconfigure', '--frontend= noninteractive' , 'cloud-init'] archive. ubuntu. com wily InRelease archive. ubuntu. com wily-updates InRelease archive. ubuntu. com wily-security InRelease archive. ubuntu. com wily Release.gpg [933 B] archive. ubuntu. com wily-updates Release.gpg [933 B] archive. ubuntu. com wily-security Release.gpg [933 B] archive. ubuntu. com wily Release [217 kB] archive. ubuntu. com wily-updates Release [63.5 kB] archive. ubuntu. com wily-security Release [63.5 kB] archive. ubuntu. com wily/main amd64 Packages [1421 kB] archive. ubuntu. com wily/restricted amd64 Packages [16.0 kB] archive. ubuntu. com wily/universe amd64 Packages [6721 kB] archive. ubuntu. com wily/multiverse amd64 Packages [138 kB] archive. ubuntu. com wily/main Translation-en [838 kB] archive. ubuntu. com wily/multiverse Translation-en [107 kB] archive. ubuntu. com wily/restricted Translation-en [4334 B] archive. ubuntu. com wily/universe Translation-en [4593 kB] archive. ubuntu. com wily-updates/main amd64 Packages [28 B] archive. ubuntu. com wily-updates/ restricted amd64 Packages [28 B] archive. ubuntu. com wily-updates/ universe amd64 Packages [28 B] archive. ubuntu. com wily-updates/ multiverse amd64 Packages [28 B] archive. ubuntu. com wily-updates/main Translation-en [28 B] archive. ubuntu. com wily-updates/ multiverse Translation-en [28 B] archive. ubuntu. com wily-updates/ restricted Translation-en [28 B] archive. ubuntu. com wily-updates/ universe Translation-en [28 B] archive. ubuntu. com wily-security/main amd64 Packages [28 B] archive. ubuntu. com wily-security/ restricted amd64 Packages [28 B] archive. ubuntu. com wily-security/ universe amd64 Packages [28 B] archive. ubuntu. com wily-security/ multiverse amd64 Packages [28 B] archive. ubuntu. com wily-security/main Translation-en [28 B] archive. ubuntu. com wily-security/ multiverse Translation-en [28 B] archive. ubuntu. com wily-security/ restricted Translation-en [28 B] archive. ubuntu. com wily-security/ universe Translation-en [28 B]
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Leaving 'diversion of /etc/init/
/var/lib/
Unexpected error while running command.
Command: ['chroot', '/tmp/tmpdfazn9
Exit code: 127
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Stdout: b"Ign http://
Ign http://
Ign http://
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Fetched 14.2 MB in 18s (748 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
linux-g...