Fedora Linux Support Community & Resources Center
  #1  
Old 8th August 2017, 12:29 PM
Malicaly Offline
Registered User
 
Join Date: Aug 2017
Location: Ireland
Posts: 4
linuxubuntuchrome
Fedora 26 Kickstart - Error Setting Up Software Source

Hi guys,

I'm having trouble installing Fedora 26 using Foreman (Kickstart/PXE). I am using the following http path for the installation media:

http://dl.fedoraproject.org/pub/fedora/linux/releases/$major/Server/$arch/os/

Where $major is 26, and $arch is x86_64.

Everything works fine until I reach the "Starting automated install......" part of the installation, at which point the install is interrupted for user input because of "Installation Source - Error setting up software source" and "Software Selection - Error checking software selection".

Do you guys think this is a bug? I've found a bug filled here https://bugzilla.redhat.com/show_bug.cgi?id=1358416 which is pretty identical to the issue I'm experiencing although it states it has been resolved in Fedora 25. Like this post I have also attempted to download and mount the contents of the netinstall iso for local hosting but this resulted in the same issue.

Any help you can provide would be really appreciated

In my kickstart file I am using the following repo:

repo --name=fedora-everything --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-<%= @host.operatingsystem.major %>&arch=<%= @host.architecture %><%= proxy_string %>

with parameter replacement it resolves to -

repo --name=fedora-everything --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-26&arch=x86_64


Here is an image of the ouput ->



Here are pastebins of my logs ->

anaconda.log
storage.log https://pastebin.com/aAQFHs2n
packaging.log https://pastebin.com/Wb256WZG
ifcfg.log https://pastebin.com/abRBUurX
dnf.librepo.log https://pastebin.com/znNyMRCD
syslog https://pastebin.com/rr2P9NLU
Reply With Quote
  #2  
Old 8th August 2017, 12:33 PM
antikythera Offline
Administrator
 
Join Date: Dec 2013
Location: United Kingdom
Posts: 4,778
linuxchrome
Re: Fedora 26 Kickstart - Error Setting Up Software Source

only use the following http path for installation media, not the meta link:

Code:
http://dl.fedoraproject.org/pub/fedora/linux/releases/26/Server/x86_64/os/
OR
Code:
http://dl.fedoraproject.org/pub/fedora/linux/releases/26/Everything/x86_64/os/
the kickstart parameter replacement you did is correct.

for that matter the install source could be your local mirror

Code:
https://ftp.heanet.ie/mirrors/fedora/fedora/linux/releases/26/Everything/x86_64/os/
__________________
Download, Install and Share Fedora - Official ISO Torrents | Live ISO Respins containing post-release updates
Reply With Quote
  #3  
Old 8th August 2017, 01:07 PM
Malicaly Offline
Registered User
 
Join Date: Aug 2017
Location: Ireland
Posts: 4
linuxubuntuchrome
Re: Fedora 26 Kickstart - Error Setting Up Software Source

Hi antikythera,

Thanks for the quick reply.

I changed the http address for installation media to http://dl.fedoraproject.org/pub/fedo...ing/x86_64/os/

and altered my kickstart file to include the local mirror URL you provided me like so:

repo --name=fedora-everything --mirrorlist=https://ftp.heanet.ie/mirrors/fedora/fedora/linux/releases/26/Everything/x86_64/os/

But I'm still receiving the same "error setting up software source".

In my packaging.log I am currently getting ->
Code:
12:00:41,967 INFO packaging: configuring base repo
12:00:42,278 INFO packaging: Enabled 'updates'
12:00:42,289 INFO packaging: Trying to download '.treeinfo'
12:00:43,701 Level 8 dnf: repo: downloading from remote: anaconda, _Handle: metalnk: None, mlist: None, urls ['http://dl.fedoraproject.org/pub/fedora/linux/releases/26/Everything/x86_64/os/'].
12:01:04,011 INFO packaging: added repo: 'anaconda' - http://dl.fedoraproject.org/pub/fedo...ing/x86_64/os/
12:01:04,025 Level 8 dnf: repo: downloading from remote: fedora-everything, _Handle: metalnk: None, mlist: https://ftp.heanet.ie/mirrors/fedora...ing/x86_64/os/, urls [].
12:01:06,046 DEBUG dnf: error: Curl error (1): Unsupported protocol for "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">/repodata/repomd.xml [Protocol ""http" not supported or disabled in libcurl] ("http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">/repodata/repomd.xml).
12:01:06,076 DEBUG dnf: error: Curl error (6): Couldn't resolve host name for http://<html xmlns="http://www.w3.org/1999/xhtml">/repodata/repomd.xml [Could not resolve host: <html xmlns="http] (http://<html xmlns="http://www.w3.org/1999/xhtml">/repodata/repomd.xml).
12:01:06,113 DEBUG dnf: error: Curl error (6): Couldn't resolve host name for http://<p>Powered by:  <a href="http://www.apache.org/">Apache</a>,/repodata/repomd.xml [Could not resolve host: <p>Powered by:  <a href="http] (http://<p>Powered by:  <a href="http://www.apache.org/">Apache</a>,/repodata/repomd.xml).
12:01:06,117 DEBUG dnf: error: Curl error (1): Unsupported protocol for <a href="http://www.ubuntu.com/">Ubuntu</a></p>/repodata/repomd.xml [Protocol "<a href="http" not supported or disabled in libcurl] (<a href="http://www.ubuntu.com/">Ubuntu</a></p>/repodata/repomd.xml).
12:01:06,122 DEBUG dnf: Cannot download 'https://ftp.heanet.ie/mirrors/fedora/fedora/linux/releases/26/Everything/x86_64/os/': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried.
12:01:06,123 ERR packaging: PayloadError: Failed to synchronize cache for repo 'fedora-everything'
12:01:06,146 Level 8 dnf: Getting group metadata
12:01:06,148 Level 8 dnf: timer: loading comps: 2 ms
Reply With Quote
  #4  
Old 8th August 2017, 01:27 PM
Malicaly Offline
Registered User
 
Join Date: Aug 2017
Location: Ireland
Posts: 4
linuxubuntuchrome
Re: Fedora 26 Kickstart - Error Setting Up Software Source

Hi antikythera,

Thanks for the quick reply.

I changed the http address for installation media to http://dl.fedoraproject.org/pub/fedo...ing/x86_64/os/

and altered my kickstart file to include the local mirror URL you provided me like so:

repo --name=fedora-everything --mirrorlist=https://ftp.heanet.ie/mirrors/fedora/fedora/linux/releases/26/Everything/x86_64/os/

But I'm still receiving the same "error setting up software source".

In my packaging.log I am currently getting ->
Code:
12:00:41,967 INFO packaging: configuring base repo
12:00:42,278 INFO packaging: Enabled 'updates'
12:00:42,289 INFO packaging: Trying to download '.treeinfo'
12:00:43,701 Level 8 dnf: repo: downloading from remote: anaconda, _Handle: metalnk: None, mlist: None, urls ['http://dl.fedoraproject.org/pub/fedora/linux/releases/26/Everything/x86_64/os/'].
12:01:04,011 INFO packaging: added repo: 'anaconda' - http://dl.fedoraproject.org/pub/fedo...ing/x86_64/os/
12:01:04,025 Level 8 dnf: repo: downloading from remote: fedora-everything, _Handle: metalnk: None, mlist: https://ftp.heanet.ie/mirrors/fedora...ing/x86_64/os/, urls [].
12:01:06,046 DEBUG dnf: error: Curl error (1): Unsupported protocol for "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">/repodata/repomd.xml [Protocol ""http" not supported or disabled in libcurl] ("http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">/repodata/repomd.xml).
12:01:06,076 DEBUG dnf: error: Curl error (6): Couldn't resolve host name for http://<html xmlns="http://www.w3.org/1999/xhtml">/repodata/repomd.xml [Could not resolve host: <html xmlns="http] (http://<html xmlns="http://www.w3.org/1999/xhtml">/repodata/repomd.xml).
12:01:06,113 DEBUG dnf: error: Curl error (6): Couldn't resolve host name for http://<p>Powered by:  <a href="http://www.apache.org/">Apache</a>,/repodata/repomd.xml [Could not resolve host: <p>Powered by:  <a href="http] (http://<p>Powered by:  <a href="http://www.apache.org/">Apache</a>,/repodata/repomd.xml).
12:01:06,117 DEBUG dnf: error: Curl error (1): Unsupported protocol for <a href="http://www.ubuntu.com/">Ubuntu</a></p>/repodata/repomd.xml [Protocol "<a href="http" not supported or disabled in libcurl] (<a href="http://www.ubuntu.com/">Ubuntu</a></p>/repodata/repomd.xml).
12:01:06,122 DEBUG dnf: Cannot download 'https://ftp.heanet.ie/mirrors/fedora/fedora/linux/releases/26/Everything/x86_64/os/': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried.
12:01:06,123 ERR packaging: PayloadError: Failed to synchronize cache for repo 'fedora-everything'
12:01:06,146 Level 8 dnf: Getting group metadata
12:01:06,148 Level 8 dnf: timer: loading comps: 2 ms
Reply With Quote
  #5  
Old 8th August 2017, 01:49 PM
antikythera Offline
Administrator
 
Join Date: Dec 2013
Location: United Kingdom
Posts: 4,778
linuxchrome
Re: Fedora 26 Kickstart - Error Setting Up Software Source

these are the 'normal' urls for fedora to use in kickstarts. the mirrorlist url should be as below. the heanet url can only be used as a baseurl and not a mirrorlist address.

Code:
repo --name=fedora --baseurl=https://dl.fedoraproject.org/pub/fedora/linux/releases/26/Everything/x86_64/os/
repo --name=updates --baseurl=https://dl.fedoraproject.org/pub/fedora/linux/updates/26/x86_64/
#repo --name=updates-testing --baseurl=https://dl.fedoraproject.org/pub/fedora/linux/updates/testing/26/x86_64/
url --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-26&arch=x86_64
__________________
Download, Install and Share Fedora - Official ISO Torrents | Live ISO Respins containing post-release updates
Reply With Quote
  #6  
Old 8th August 2017, 01:53 PM
antikythera Offline
Administrator
 
Join Date: Dec 2013
Location: United Kingdom
Posts: 4,778
linuxchrome
Re: Fedora 26 Kickstart - Error Setting Up Software Source

in my own kickstarts I use these
Code:
repo --name=fedora --baseurl=http://mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/26/Everything/x86_64/os/
repo --name=updates --baseurl=http://mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/updates/26/x86_64/
#repo --name=updates-testing --baseurl=http://mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/updates/testing/26/x86_64/
url --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-26&arch=x86_64
__________________
Download, Install and Share Fedora - Official ISO Torrents | Live ISO Respins containing post-release updates
Reply With Quote
  #7  
Old 8th August 2017, 03:18 PM
Malicaly Offline
Registered User
 
Join Date: Aug 2017
Location: Ireland
Posts: 4
linuxubuntuchrome
Re: Fedora 26 Kickstart - Error Setting Up Software Source

Thanks for sharing the repos you use in your kickstart, it has solved my problem! Sorry pretty new to this and mixed up the baseurl and mirrorlist parameters

It seems as if the repo given in the default Foreman kickstart template is incorrect, I will mention something over on their IRC.

Thanks a million for solving the problem antikythera!

Regards,

Mal
Reply With Quote
  #8  
Old 8th August 2017, 04:08 PM
antikythera Offline
Administrator
 
Join Date: Dec 2013
Location: United Kingdom
Posts: 4,778
linuxchrome
Re: Fedora 26 Kickstart - Error Setting Up Software Source

you're welcome.historically their 'meta' formatting of the url was correct. there's an issue with the way kickstart urls are handled in F25 and F26 which means meta entries no longer work. it's a known issue affecting all kickstart files which I hope the lorax and anaconda maintainers can get on top of before long.
__________________
Download, Install and Share Fedora - Official ISO Torrents | Live ISO Respins containing post-release updates
Reply With Quote
Reply

Tags
error, fedora, kickstart, setting, software, source

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fedora 25 - DNF error during Kickstart install jkissane Installation, Upgrades and Live Media 1 18th January 2017 10:36 AM
Fedora 20 Kickstart Bug: An unknown error has occurred RichBuck89 Installation, Upgrades and Live Media 0 6th June 2014 05:51 PM
Fedora 14 Custom Kickstart prefdm error majorlinux Fedora Spins & Remixes 2 9th April 2011 10:34 PM


Current GMT-time: 22:35 (Saturday, 19-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat