FedoraForum.org - Fedora Support Forums and Community
Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2017
    Location
    Ireland
    Posts
    4

    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

  2. #2
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,399

    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/

  3. #3
    Join Date
    Aug 2017
    Location
    Ireland
    Posts
    4

    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

  4. #4
    Join Date
    Aug 2017
    Location
    Ireland
    Posts
    4

    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

  5. #5
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,399

    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

  6. #6
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,399

    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

  7. #7
    Join Date
    Aug 2017
    Location
    Ireland
    Posts
    4

    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

  8. #8
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,399

    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.

Similar Threads

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •