LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-01-2019, 05:16 AM   #1
Shaggy1
Member
 
Registered: Oct 2010
Posts: 111

Rep: Reputation: 3
Centos 7.7.1908 kickstart: error during package installation when installing packages other than just base and core


Hi

I've been attempting to install centos 7.7.1908 using pxeboot and a kickstart file, but am having problems installing packages.

The installation goes through fine when my packages list looks like:
%packages
@base
@core
%end

However when I add the development package:
%packages
@base
@core
@development --optional
%end

It runs through until 'Starting package installation process', then comes up with an error dialog:

The following software marked for installation has errors.
This is likely caused by an error with your installation source.
mock-1.4.20-1e7.noarch requires /usr/bin/python3.6
Python36-chardet-3.0.4-1.el7.noarch requires /usr/bin/python3.6
.....
<more packages listed>


Does anyone know what this message means ?
Is it saying it did not find the required packages in Packages directory ?

Do I need to somehow add something to the initrd image ?

Does anyone know where it initially gets the information to generate /usr/bin from ? Where should it be getting python3.6 from during the installation ?

Can someone clarify what the directory structure for the install should be ?

I currently have:
isofiles
images
efiboot.img pxeboot TRANS.TBL
isolinux
boot.cat boot.msg grub.conf initrd.img isolinux.bin isolinux.cfg ks memtest splash.png TRANS.TBL vesamenu.c32 vmlinuz
LiveOS
squashfs.img TRANS.TBL
Packages
<required packages>
repodata
03dde1157310b4a6d8e9128de19651c147a71150d406f3efaaf12f7eb83a1f35-primary.xml.gz
177815eb15f48fcab91407f00675f26cbc13f07601c7d971b6255957faa2d1e0-other.sqlite.bz2
17f82b7ec55c8c3c30bd0093d3241f1824aa4dafde0081f9a31829dbb7e3738e-filelists.sqlite.bz2
4af1fba0c1d6175b7e3c862b4bddfef93fffb84c37f7d5f18cfbff08abc47f8a-c7-x86_64-comps.xml.gz
521f322f05f9802f2438d8bb7d97558c64ff3ff74c03322d77787ade9152d8bb-c7-x86_64-comps.xml
7a2197223a2689b44594b09351dead84fe2d8cd0459be3f885bb985bb28af7ca-primary.sqlite.bz2
84ff0ada5bdbf970afd2791ab1850d0596e41b5442e1ec3f7073974b222b7be9-filelists.xml.gz
a7120e4fc4c651382e22fb4c126798235095a1ce58c2c0783cc6d31c2672f544-other.xml.gz
repomd.xml
repomd.xml.asc
TRANS.TBL
TRANS.TBL


I have attached the kickstart file I am using.
Attached Files
File Type: txt test_centos7_ksfile.txt (6.0 KB, 46 views)
 
Old 11-02-2019, 03:37 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,174

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
The silly question; are you sure all the dependencies are on the server? Maybe one did not get copied to it, or is corrupted?

What if you exclude the --optional line, does it work then? If so, what is missing?

Kickstart file looks fine, from the error it must be something in the repo it is pulling from that is causing the error.
 
Old 11-04-2019, 06:05 AM   #3
Shaggy1
Member
 
Registered: Oct 2010
Posts: 111

Original Poster
Rep: Reputation: 3
Hi

Thank you for the reply.

Yes indeed if I remove --optional the install seems to go through fine.

Naively I got hold of the everything iso and simply replaced the 'Packages' directory in my tree with the one from the everything iso, but I still see the issue.

If I use the full Everything iso as a base for my custom kickstart tree the kickstart install goes through fine (with the --optional included and indeed all the other groups enabled).

So it does look like there is some dependency information missing, but it's not simply a case of providing the packages in 'Packages' - I guess there is also some other relevant dependency information, but given the commps.xml files are identical I'm not sure what (repomd.xml?)

Does anyone know of somewhere I can find information to get a little more understanding of how dependencies are determined and what files are used to pickup the correct packages ? I do have some centos 6 scripts that determine package dependencies and copy the dependent packages in to 'packages' which I will get working for centos 7, but it seems more than just copying required packages is required.

I'll mark this as resolved, since I can now do a full install.

Thank you again for your help.
 
  


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
[SOLVED] Problems with Pxeboot and kickstart centos 7.7.1908: /dev/root does not exist Shaggy1 CentOS 1 10-29-2019 04:20 AM
Error of installing centos from customize kickstart base iso Rokon_1989 Linux - Newbie 1 11-15-2012 09:29 AM
problem with installing centos in virtualbox (Kernel driver not installed (rc=-1908) chintu00001 Linux - Virtualization and Cloud 2 05-15-2012 11:45 AM

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

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