Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

According to the Ubuntu installation guide, automated installs are possible using kickseed, a subset of the RedHat's Kickstart configuration. The automatic install section of the installation guide details the differences between RH's kickstart and Ubuntu's kickseed.

However, nothing is written about the repo command, which in Kickstart is used to enable additional repositories. The format of RH and Ubuntu repositories is different: just the repository URL is enough to identify the repo in RH derivatives, whereas a line in /etc/apt/sources.list.d carries more information.

Can anybody please post an example of a repo line in Ubuntu's kickseed, or point me to the appropriate documentation? (Or even the relevant section of the kickseed source code?)

(Background story: I want to automate Ubuntu installs; our standard install includes some packages that are not publicly available, and that we distribute via a local private repository.)

share|improve this question

A workaround seems to use the preseed command (documented in the Ubuntu install guide as a Kickseed-specific addition) to embed a snippet of the corresponding D-I configuration, defining additional repositories as would be done in a preseed-format file.

For example:

    preseed apt-setup/local0/comment string My repository
    preseed apt-setup/local0/repository string${distro} ${suite} main
    preseed apt-setup/local0/source boolean true
    preseed apt-setup/local0/key string
share|improve this answer

Looking at the source in the kickseed repo the repo directive has been extended to support a few more options:


So to add the Google Chrome repo, this should do:

repo --name="Google Chrome"  --baseurl= --distribution stable --components main --key
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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