Score:0

Using d-i command to install packages for unatttended installation

cn flag

I have written the following lines in a preseed.cfg file for an unattended Ubuntu 18.04 desktop installation.

# Packages, Mirrors, Image
d-i base-installer/kernel/override-image string linux-server
d-i base-installer/kernel/override-image string linux-image-amd64
d-i mirror/country string US
d-i mirror/http/proxy string
d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean true
d-i pkgsel/install-language-support boolean false
d-i pkgsel/include string openssh-server build-essential
tasksel tasksel/first multiselect ubuntu-desktop

After the installation, I ran dpkg -l | grep ssh and only see libssh-4 and openssh-client packages. I don't see any problem with the d-i commands. Any idea how to fix that?

Score:1
jp flag

If you are using the Ubiquity installer (the desktop image) then the wiki states that pkgsel and tasksel preseed settings will be ignored.

From https://wiki.ubuntu.com/UbiquityAutomation

Preseeding keys for the following installer components will not be used in Ubiquity, usually because they do not fit with Ubiquity's mode of operation:
    netcfg
    LVM and RAID partitioning
    base-installer
    pkgsel/tasksel
    finish-install 
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.