RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Installation of RetroPie on Raspbian fails: es_system.cfg stays empty.

    Scheduled Pinned Locked Moved Help and Support
    retropie-setup
    4 Posts 1 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • taratorT
      tarator
      last edited by

      Hi, I had RetroPie running on my Raspberry Pi 2 and everything worked fine, until I tried to update my retro pie installation using the RetroPie-Setup Script.

      This is my system, cat /etc/*release* gives me:

      PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
      NAME="Raspbian GNU/Linux"
      VERSION_ID="8"
      VERSION="8 (jessie)"
      ID=raspbian
      ID_LIKE=debian
      

      I tried to uninstall and then reinstall retropie with sudo ./retropie_setup.sh. I’m using the latest version of the git repository (Version 4.0.6 2477bdb)

      This is the error I get, when trying to install (see last few lines of the snippet):

      = = = = = = = = = = = = = = = = = = = = =
      Installing 'retropiemenu' : RetroPie configuration menu for EmulationStation
      = = = = = = = = = = = = = = = = = = = = =
      
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/gamelist.xml“ -> „/home/pi/.emulationstation/gamelists/retropie/gamelist.xml“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons“ -> „/home/pi/RetroPie/retropiemenu/icons“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/audiosettings.png“ -> „/home/pi/RetroPie/retropiemenu/icons/audiosettings.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/bluetooth.png“ -> „/home/pi/RetroPie/retropiemenu/icons/bluetooth.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/configedit.png“ -> „/home/pi/RetroPie/retropiemenu/icons/configedit.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/esthemes.png“ -> „/home/pi/RetroPie/retropiemenu/icons/esthemes.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/filemanager.png“ -> „/home/pi/RetroPie/retropiemenu/icons/filemanager.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/raspiconfig.png“ -> „/home/pi/RetroPie/retropiemenu/icons/raspiconfig.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/retroarch.png“ -> „/home/pi/RetroPie/retropiemenu/icons/retroarch.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/retronetplay.png“ -> „/home/pi/RetroPie/retropiemenu/icons/retronetplay.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/rpsetup.png“ -> „/home/pi/RetroPie/retropiemenu/icons/rpsetup.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/runcommand.png“ -> „/home/pi/RetroPie/retropiemenu/icons/runcommand.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/showip.png“ -> „/home/pi/RetroPie/retropiemenu/icons/showip.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/splashscreen.png“ -> „/home/pi/RetroPie/retropiemenu/icons/splashscreen.png“
      „/home/pi/git/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/wifi.png“ -> „/home/pi/RetroPie/retropiemenu/icons/wifi.png“
      /home/pi/git/RetroPie-Setup/scriptmodules/helpers.sh: Zeile 795:  3369 Speicherzugriffsfehler  xmlstarlet sel -D -I -t -m "/" -e "systemList" -m "//system" -s A:T:U "$1" -c "." "/etc/emulationstation/es_systems.cfg.bak" > "/etc/emulationstation/es_systems.cfg"
      Unable to install binary for retropiemenu
      

      Somehow the install-script can’t create the file /etc/emulationstation/es_systems.cfg … it stays empty …

      xmlstarlet --version gives me:

      compiled against libxml2 2.9.1, linked with 20901
      compiled against libxslt 1.1.28, linked with 10128
      

      So emulationstation won’t start complaining, that there’s no configuration.

      Any suggestions?

      1 Reply Last reply Reply Quote 0
      • taratorT
        tarator
        last edited by

        Commenting the following lines out brings me one step further. The configuration file is now created. But emulationstation quits with a Segmentation fault now. I guess the problem is somewhere else not with the setup-script. I will dig further after I get some sleep.

        Here the corresponding snippet in the file /RetroPie-Setup/scriptmodules/helpers.sh and the lines I commented-out.

        ## @fn sortESSystems()
        ## @param field field to sort by (eg name / platform etc)
        ## @brief Sorts `/etc/emulationstation/es_systems.cfg` system list by specified field.
        function sortESSystems() {
            local field="$1"
            cp "/etc/emulationstation/es_systems.cfg" "/etc/emulationstation/es_systems.cfg.bak"
        #    xmlstarlet sel -D -I \
        #        -t -m "/" -e "systemList" \
        #        -m "//system" -s A:T:U "$1" -c "." \
        #        "/etc/emulationstation/es_systems.cfg.bak" >"/etc/emulationstation/es_systems.cfg"
        }
        
        1 Reply Last reply Reply Quote 0
        • taratorT
          tarator
          last edited by

          After some hours of sleep, I tried to reinstall RetroPie again.
          During the installation progress I get the following error:

          debconf: Perl may be unconfigured (Illegal declaration of subroutine Hash::Util::unlock at /usr/lib/arm-linux-gnueabihf/perl/5.20/Hash/Util.pm line 79.
          Compilation failed in require at /usr/share/perl/5.20/fields.pm line 122.
          Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
          Compilation failed in require at (eval 1) line 4.
          BEGIN failed--compilation aborted at (eval 1) line 4.
          ) -- aborting
          0 aktualisiert, 44 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
          

          So Perl might not be installed correctly… Will try to reinstall perl with sudo apt-get install --reinstall perl

          1 Reply Last reply Reply Quote 0
          • taratorT
            tarator
            last edited by

            I’m not sure why my perl installation got broken, but I was not able to fix it. I ended up with a fresh Raspbian installation. Now everything works fine egain.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.