LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-09-2017, 02:00 AM   #31
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by Turbocapitalist View Post
Yes, I think so, but it's been too long so I would suggest looking up current instructions. There are a lot of old ones in the way though.

Another way is to set up APT-Cacher-ng to one of the local machines and then add stuff via the network using that as a proxy. It will usually be faster than trying to read a DVD.
do you know how to generate the index ?

i googled ,

Code:
apt-ftparchive packages ./pool/extras/ | tee dists/stable/extras/binary-i386/Packages
what do you think ?
 
Old 03-09-2017, 02:11 AM   #32
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by gbcbooks View Post
do you know how to generate the index ?
Not any more. It's been a long while, though I have on several separate occasions in the increasingly distant past had to build kickstart systems at different sites. However comparing my notes to what I am finding online, not much has changed.

I'd recommend working through these instructions, if you are dealing with the Ubuntu image at the moment:

https://help.ubuntu.com/community/In...apt-ftparchive
 
Old 03-09-2017, 08:02 AM   #33
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
i had regenerate package index,
and add some line to precise/ubuntu-auto.seed

Code:
d-i pkgsel/include string traceroute \
openssh-server \
openssl \
mysql-client \
syslog-ng-core \
syslog-ng \
libldap \
gcc \
g++
and i still get this error
Click image for larger version

Name:	47.PNG
Views:	22
Size:	14.1 KB
ID:	24433

next , i select "manual select package"
Click image for larger version

Name:	49.PNG
Views:	12
Size:	18.7 KB
ID:	24434
but quite without changing anything
the the output
Click image for larger version

Name:	48.PNG
Views:	11
Size:	28.9 KB
ID:	24432

can i skip installing package by default ? like ca-cerificate
 
Old 03-09-2017, 08:11 AM   #34
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
One task at a time please. preseed is a whole other can of worms, and not related to building an index. Once you have the base system with no bells or whistles installed and working via %packages, only then try adding via %post scripting.

I would focus on getting something, anything, through %packages first and leave preseed and the others alone. What do the current versions of the Ubuntu kickstart guides say about your choices for %packages?

Last edited by Turbocapitalist; 03-09-2017 at 08:13 AM.
 
Old 03-09-2017, 08:46 AM   #35
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
i think %packages and preseed 'pkgsel/include string' would.have the same effect .
i was think about %post 'dpkg -i package.deb', but most of circumstance , it is hard to resolved its dependency.
do.you think so ?
 
Old 03-09-2017, 08:54 AM   #36
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Have you gotten a basic installation working, with no extras, using just %packages? That's the pre-requisite for any progress here, whether you want to try %post with apt-get or preseed
 
Old 03-09-2017, 09:14 AM   #37
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
i think so , i remove %packages and preseed setting , it can install seccuessfully, unless it is not the base system that said.
 
Old 03-09-2017, 09:16 AM   #38
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
That's not going to be portable to CentOS. Backup a step and work out how to get a base installed via %packages. Then worry about the other stuff. Otherwise it is just chaos.
 
Old 03-09-2017, 09:49 AM   #39
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
%package
@base

is that will install base system for.ubtuntu 12.04.5?
 
Old 03-09-2017, 09:54 AM   #40
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
I thought @Base had to be capitalized and that the entries under %packages were case-sensitive? What does the documentation say?

I hope you are working with Ubuntu 14.04 LTS or 16.04 LTS because 12.04 LTS will be end-of-life in a few days. If you use 12.04, all your work will soon be for naught.
 
Old 03-09-2017, 10:21 AM   #41
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
yes you r right , capitalizad.
but it is just like i test before , event though i add
@Base
traceroute

the procedure of the installation was interupted.

i thought kickstart can collect current system'software and install them all when installation start from the ks.cfg
am i wrong?

and we still need ubuntu 12.04.50 TLS for a while.
 
Old 03-09-2017, 10:24 AM   #42
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by gbcbooks View Post
yes you r right , capitalizad.
but it is just like i test before , event though i add
@Base
traceroute

the procedure of the installation was interupted.

i thought kickstart can collect current system'software and install them all when installation start from the ks.cfg
am i wrong?

and we still need ubuntu 12.04.50 TLS for a while.
(You will need Ubuntu 12.04 for only three or four weeks. After that it will be a liability.)

Can you get it working one step at a time? Start with just base. Then -- after you have a working test -- try adding something in %post
Code:
apt-get update
apt-get -y install traceroute
But do that only after you have checked that @Base in %packages works.
 
Old 03-09-2017, 10:43 AM   #43
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
i have tested it is working .

so i added
%packages
@Base
traceroute
but it tailed again

where will it get the *.deb if we %post to install software.
 
Old 03-09-2017, 10:52 AM   #44
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
If and only if @Base works, then I would recommend adding packages into the %post section.

Code:
%packages
@Base
traceroute

%post
apt-get update
apt-get -y install traceroute
What did the Tips & Tricks link posted much earlier show as far as logging? That will help you figure out where changes go wrong.

apt-get would get the package from the ISO-9660 image or from the net, your choice.
 
Old 03-09-2017, 11:15 AM   #45
gbcbooks
Member
 
Registered: Aug 2014
Posts: 199

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
If and only if @Base works, then I would recommend adding packages into the %post section.

Code:
%packages
@Base
traceroute

%post
apt-get update
apt-get -y install traceroute
What did the Tips & Tricks link posted much earlier show as far as logging? That will help you figure out where changes go wrong.

apt-get would get the package from the ISO-9660 image or from the net, your choice.
i refer to install from ISO, but how? my mind iS stick
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware nfs install finishes too quickly dohpaz Slackware 3 02-11-2007 02:12 AM
Hey, can someone quickly tell me how to... redskins36 Linux - Wireless Networking 4 09-14-2006 12:24 PM
Resizing images quickly? BaltikaTroika Linux - Software 12 10-23-2004 05:41 PM
Install Packages Quickly naveentpr Linux - Software 1 01-13-2004 08:27 AM
2.4.15 quickly comes out! taz.devil Linux - General 20 11-27-2001 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:39 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