11.04 Installer crashed, apt configuration problem: InstallStepError: AptSetup failed with code 127

Bug #768239 reported by jkn
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: ubiquity

I used usb-creator-gtk and ubuntu-11.04-beta2-desktop-i386.iso to boot from USB stick.

In section 'Preparing to install Ubuntu' I chose 'Download updates while installing' and
'Install this third party software Fluendo mp3 plugin...'

Installer correctly found other OSes. I chose 'install alongside them'. I had an empty
20 GB partition (6). For some reason installer wanted to use only 10 GB and reserve rest for some unknown Ubuntu http://jkn.iki.fi/ubuntu/install1.jpg. Advanced partition tool did what I wanted: http://jkn.iki.fi/ubuntu/install2.jpg

A window
'apt configuration problem
An attempt to configure apt to install additional packages from the CD failed.'
appeared. 'OK' closed it.

Next, a window 'Installer crashed' appeared. It had instructions to make this report.
It did not close with 'close' button. I had to reboot. I repeated this with language = English
and got exactly same result.

Requested log files are rather long to dump here so
look at http://jkn.iki.fi/ubuntu/log/

Have fun!
---
Architecture: i386
DistroRelease: Ubuntu 11.04
LiveMediaBuild: Ubuntu 11.04 "Natty Narwhal" - Beta i386 (20110413)
Package: ubiquity 2.6.5 [modified: lib/partman/automatically_partition/question]
PackageArchitecture: i386
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Tags: natty running-unity
Uname: Linux 2.6.38-8-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

There is the following error in the log:
Apr 21 11:51:52 ubuntu ubiquity: chroot:
Apr 21 11:51:52 ubuntu ubiquity: failed to run command `tempfile'
Apr 21 11:51:52 ubuntu ubiquity: : No such file or directory
Apr 21 11:51:52 ubuntu ubiquity:
Apr 21 11:51:52 ubuntu apt-setup: warning: /usr/lib/ubiquity/apt-setup/generators/50mirror.ubuntu output did not verify
Apr 21 11:51:52 ubuntu ubiquity: chroot:
Apr 21 11:51:52 ubuntu ubiquity: failed to run command `tempfile'
Apr 21 11:51:52 ubuntu ubiquity: : No such file or directory
Apr 21 11:51:52 ubuntu ubiquity:
Apr 21 11:51:52 ubuntu ubiquity: umount: /target/cdrom: not found
Apr 21 11:51:52 ubuntu ubiquity:
Apr 21 11:51:52 ubuntu plugininstall.py: log-output -t ubiquity umount /target/cdrom
Apr 21 11:51:52 ubuntu ubiquity: grep:
Apr 21 11:51:52 ubuntu ubiquity: /target/etc/apt/sources.list
Apr 21 11:51:52 ubuntu ubiquity: : No such file or directory
Apr 21 11:51:52 ubuntu ubiquity:
Apr 21 11:51:52 ubuntu plugininstall.py: Exception during installation:
Apr 21 11:51:52 ubuntu plugininstall.py: Traceback (most recent call last):
Apr 21 11:51:52 ubuntu plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 1528, in <module>
Apr 21 11:51:52 ubuntu plugininstall.py: install.run()
Apr 21 11:51:52 ubuntu plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 56, in wrapper
Apr 21 11:51:52 ubuntu plugininstall.py: func(self)
Apr 21 11:51:52 ubuntu plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 157, in run
Apr 21 11:51:52 ubuntu plugininstall.py: self.configure_apt()
Apr 21 11:51:52 ubuntu plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 475, in configure_apt
Apr 21 11:51:52 ubuntu plugininstall.py: raise install_misc.InstallStepError("AptSetup failed with code %d" % ret)
Apr 21 11:51:52 ubuntu plugininstall.py: InstallStepError: AptSetup failed with code 127
Apr 21 11:51:52 ubuntu plugininstall.py:

Could you please run apport-collect 768239 from the box with this crash to attach the required information to this report. Thanks in advance.

Changed in ubiquity (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
summary: - 11.04 Installer crashed, apt configuration problem
+ 11.04 Installer crashed, apt configuration problem: InstallStepError:
+ AptSetup failed with code 127
Revision history for this message
jkn (jkn) wrote : Casper.gz

apport information

tags: added: apport-collected natty running-unity
description: updated
Revision history for this message
jkn (jkn) wrote : Dependencies.txt

apport information

Revision history for this message
jkn (jkn) wrote : UbiquityDebug.gz

apport information

Revision history for this message
jkn (jkn) wrote : UbiquityDm.gz

apport information

Revision history for this message
jkn (jkn) wrote : UbiquityPartman.gz

apport information

Revision history for this message
jkn (jkn) wrote : UbiquitySyslog.gz

apport information

Revision history for this message
jkn (jkn) wrote :

I installed it third time to be able to run apport-collect 768239
Of cource third time was slightly different. Now installer did not freeze completely. Now I am able to use desktop (running from ram disk). I realize that system might be bootable, altough grub was not installed. Also there is no /etc/apt/sources.list.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

thanks for the logs.

Changed in ubiquity (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Daniel Hahler (blueyed) wrote :

I am not sure, but this is likely a duplicate of bug 658865.

Revision history for this message
jkn (jkn) wrote : Re: [Bug 768239] Re: 11.04 Installer crashed, apt configuration problem: InstallStepError: AptSetup failed with code 127

Daniel Hahler <email address hidden> writes:

> I am not sure, but this is likely a duplicate of bug 658865.

Thanks!

Bug 658865 had info about installer (I knew nothing about it). So I
made couple more tests. I used a 8 GB USB stick. It had other files
also, including some Release files from Ubuntu and Debian mirrors. My
guess is that installer program found those, when looking for archive
from CD. It did not return 'CD not found' when archive test failed.
Instead it returned, according to syslog:

Apr 21 11:51:51 ubuntu apt-setup: warning: /usr/lib/ubiquity/apt-setup/generators/40cdrom returned error code 1; discarding output

That caused installer to crash. I verified this by deleting those
extra files from stick. After that installer worked perfectly!

Perhaps 658865 had same situation.

syslog has:

Oct 12 01:27:31 ubuntu apt-setup: Found label 'Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)'
...
Oct 12 01:29:32 ubuntu apt-setup: warning: /usr/lib/ubiquity/apt-setup/generators/40cdrom returned error code 1; discarding output

Perhaps he did 'cat cd.image > /dev/usbstick' before using usb-creator.

So perhaps installer cannot handle 'discarding output' situation
correctly.

I deleted extra files from my stick, but I believe I can recreate
situation if needed.

- jkn

tags: added: ubiquity-2.6.5
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.