system installation - Preseed Ubiquity success command executed incompletely - Ask Ubuntu


i'm in process of building automated installation of ubuntu 16.04 desktop. custom command in preseed file i'm using this

# custom commands ubiquity ubiquity/success_command \      string mkdir /target/install/; \      cp -r /cdrom/scripts/* /target/install/; \      chroot /target chmod +x /install/postinstall.sh; \      chroot /target bash /install/postinstall.sh; 

and postinstall.sh has content

# install chrome cd /install wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb dpkg -i google-chrome-stable_current_amd64.deb # delete chrome install rm google-chrome-stable_current_amd64.deb 

but chrome doesn't installed. script copied /install , marked executable

hopefully has idea error located.

the chrome installer asking questions, maybe add yes install command?

yes | dpkg -i google-chrome-stable_current_amd64.deb

or

apt-get -y install google-chrome-stable_current_amd64.deb


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User