LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-15-2010, 08:32 AM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
HOWTO install packages w/o interaction on ubuntu server?


I have a big list of packages to install on a lot of ubuntu servers. Initial testing shows that the script doing this hangs because some packages are trying to do "human interaction" to configure the packages. I don't need, or want, this configuration to take place. Configuration files will be added later for what needs to be configured to my needs. I'm using apt-get, with the --assume-yes option, giving it the full list of all packages all at once (including some to be removed).

What I'm looking for is a way to get these packages to just install without the interaction. Whatever configuring it can do w/o interaction is fine; I work from that. But this all definitely needs to run headless (the script logs output to a file in /tmp so if there are problems that can be examined later).
 
Old 01-16-2010, 12:47 AM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Try dpkg-reconfigure debconf and set it to low
 
Old 01-18-2010, 09:57 AM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
It appears that dpkg-reconfigure only works after the package is installed. The hang that happens is during the install. Looking at dpkg-preconfigure, it requires the .deb file already be downloaded. That can't work because by the time the script runs apt-get to do all the downloads and installs, the headless requirement is in place. What I need is something that can be set from within that script to make all packages not ask questions. Where it is crucial for some package to have information it can't discover from the system, then some means to provide canned answers in a file could work (the script can bring in that file during the first phase).
 
Old 01-18-2010, 10:06 AM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
More info ... I am imaging Ubuntu 9.10 server onto the primary drive from a boot stick that grabs the master image from a server that has the image. That image configures its network with DHCP. Once the host is up with its DHCP temporary IP, an automated login via SSH runs rsync to load additional files as needed, which includes setup scripts. One does a network setup to give the machine a static IP address and reboots again. Another SSH login to the static IP runs the second script to select what packages this machine needs, removes packages not needed, does an update, upgrade, installs needed packages, reruns update to be sure, and reboots again. It should be ready to be a server at this point.

Last edited by Skaperen; 01-18-2010 at 10:07 AM. Reason: spelling
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto to install and use Eclipse CDT on Ubuntu 7.10 nirjharoberoi Linux - Software 4 08-02-2009 05:07 PM
HOWTO: Remotely manage your server(s) using FreeNX in Ubuntu Hardy irishbitte LinuxAnswers Discussion 0 07-27-2009 02:00 PM
LXer: HowTo: Secure your Ubuntu Apache Web Server LXer Syndicated Linux News 0 01-30-2008 03:10 AM
Server packages for Ubuntu 6.06 Desktop johnincsoftware@gmai Linux - Software 6 08-03-2006 03:35 PM
Howto mount external CD to install debian packages tt2uang Debian 4 03-24-2005 01:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration