Unknown maximum list size in kickstart's ks.cfg %packages

Bug #135284 reported by Lars Noodén
4
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Wishlist
Unassigned
pkgsel (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In the %packages section of ks.cfg, if a large number of packages are listed, the installation generates an error:

   [!] Configuring: An Instalation Step failed

The step that failed is "select and install software"

The limit is something between 10 and 450.

Tags: kickstart
description: updated
Revision history for this message
Lars Noodén (larsnooden) wrote : also affects apt-get

This also affects apt-get: above a certain number of packages to be installed at the same time, the installation hangs.

e.g.

    apt-get install pkg1 pkg2 pkg3 ... pkgn

I'm not sure where the cut off is.

However, it's easy to hit the limit and that makes it hard to use kickstart for setting up a full-blown workstation.

Since it also affects apt-get, that makes it impossible to do a single command install after startup.
Breaking it up over several commands works, but introduces problems if one is customizing the configurations of packages allong the way.

Revision history for this message
Colin Watson (cjwatson) wrote :

system-config-kickstart is just the UI for producing Kickstart files and is not itself an installer component. pkgsel is probably the relevant part of the installer.

description: updated
Revision history for this message
Andreas Moog (ampelbein) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Changed in apt:
status: New → Incomplete
Changed in pkgsel:
status: New → Incomplete
Revision history for this message
Colin Watson (cjwatson) wrote :

I see no reason why the status of this bug should have changed.

Changed in pkgsel:
status: Incomplete → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

If the shell command line args limit is the problem, we could try to use "dpkg --set-selectios" and feed the list to it via stdin. Then "apt-get dselect-upgrade".

Andreas Moog (ampelbein)
Changed in apt (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Julian Andres Klode (juliank) wrote :

Is Kickstart used anywhere anymore? This bug is almost 4 years old, I think it can be closed.

Changed in apt (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Colin Watson (cjwatson) wrote :

Kickstart is still used. This bug has a clear description of how it might be reproduced, and I don't see why it should be closed out of hand.

Changed in apt (Ubuntu):
status: Invalid → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

I find it hard to prove to myself that dpkg --set-selections will behave just the same way - for example, I'm concerned that apt-get might feel entitled to discard one of the selections if its dependencies couldn't be resolved, rather than returning an error. It would be easier to see that the behaviour is identical if apt-get had an option to take package name input from a file. One package name per line, perhaps ignoring any lines starting with '#', would be fine.

Changed in apt (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Colin Watson (cjwatson) wrote :

Julian has tested passing 32941 arguments to 'apt-get install' without problems, and says that APT's command-line handling has been rewritten in the intervening time so that this is likely no longer a problem.

I tried a Kickstart file with 1149 packages (everything on the server CD). It didn't work due to conflicts, of course, but they seemed to be passed correctly to APT.

It looks like this can indeed be closed now; sorry for doubting you, Julian. Lars, if you still have a problem, please post an example Kickstart file and logs and we'll look into it.

Changed in apt (Ubuntu):
status: Triaged → Fix Released
Changed in pkgsel (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Lars Noodén (larsnooden) wrote :

I no longer have that lab / work environment to test in.

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.