Debian Installation Failed Select And Install Software

  1. Debian Installation Failed Select And Install Software Download
  2. 3 13 7 Select And Install A Sound Card
  3. Debian Installation Failed Select And Install Software Windows 10
  4. Testout Lab Select And Install A Processor 1
  5. Testout 7 2 5 Select And Install A Printer
  6. Debian Installation Failed Select And Install Software
Active3 years ago

I am using Packer to build a VirtualBox image for Ubuntu 14.04. I have a Packer script here, which used to work, but then for some reason (and several VirtualBox updates later) started failing. The install keeps getting stuck on the 'Select and install software' step:

Debian Installation Failed Select And Install Software Download

Installation step failed an installation step failed. You can try to run the failing item again from the menu, or skip it and choose something else. The failing step is: select and install software Install from USB using unetbootin with the following setting.

If I run the script using the -debug option, I don't get any useful information out from Packer itself:

The script just hangs at that point - as the unattended install has failed (see screenshot above).

The boot command is:

I don't know enough about Linux installs to debug this - how do I know what is really failing, and fix it?

Hugo Rodger-Brown
Hugo Rodger-BrownDebian installation failed select and install software downloadHugo Rodger-Brown
9922 gold badges9 silver badges12 bronze badges

3 13 7 Select And Install A Sound Card

Install

2 Answers

Debian Installation Failed Select And Install Software Windows 10

I don't see any cause for this issue with the packer template and preseed you've got in that Github repo currently.

I'm able to build that template and get a working linux install.

Where you should be looking is the preseed pkgsel lines, since you're not in an interactive install mode when you ask the installer to install a package that doesn't exist (in the configured repos) it errors in the way you're seeing.

The preseed feature is super powerful, you can basically do anything to an install. It can be quite opaque to debug but with Packer we're also dropping into a provisioner once the install is done.

Debian Installation Failed Select And Install Software

In this case it's shell scripts, https://github.com/yunojuno/trifecta/blob/master/packer/template.json#L61-L66

I'd recommend keeping preseed super basic and doing customisation down the line in your provisioner, make a new shell script to add new packages, do the other customisation you want baked into the image - even remove things that were installed by the preseed.

Once you're at the provisioning stage you can use the -debug switch in Packer to really get into debugging in a more tangible way - since the provisioners are shell scripts being run over an ssh connection on the working installed VM if you run into an issue you can also connect to that ssh or via the Virtualbox GUI and debug the running machine before it's cleaned up.

The Bento project has excellent Packer templates you might like to use as reference - https://github.com/chef/bento/blob/master/ubuntu-14.04-amd64.json and https://github.com/chef/bento/blob/master/http/ubuntu-14.04/preseed.cfg - they created and maintained by Chef but Chef's not actually installed they're basically a vanilla Vagrant box.

Basically - currently one of your package names in the preseed is bogus.

I hope this helps!

Edit:

I thought it could be helpful to define some terms:

Packer HashiCorp software that automates the building of images. Basic workflow is Builder ->Provisioner ->Post Process

  • Builder: for the different virtualisation platforms e.g. Virtualbox, Vmware, AWS EC2, Digital Ocean etc. Each has a different image format so we need to make an image for each.
    Builders typically make use of the operating system that's being installed unattended automation tools to provide a consistent base to be provisioned e.g. Debian/Ubuntu preseed, RHEL/Centos Kickstart etc.

  • Provisioner: Shell, Ansible, Chef, Salt, Puppet etc. These run on all the installed basic images and are designed for configuration, installing software etc.

  • Post-Processors: Vagrant, Atlas, Amazon etc. Get your image ready for it's deployment targets.

(There are a couple more optional workflow steps in Packer but those are the basics.)

Testout Lab Select And Install A Processor 1

rjocolemanrjocoleman

Testout 7 2 5 Select And Install A Printer

In addition to the great answer by @rjocoleman, there's a way to access /var/log/syslog from the running installer. You can extract it using 'Save debug logs' from the main menu.This helps debugging the Builder part of the workflow when absolutely necessary.

kshpolvindkshpolvind

Debian Installation Failed Select And Install Software

Not the answer you're looking for? Browse other questions tagged virtualboxubuntu-14.04vagrantpacker or ask your own question.