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

    Ubuntu 19.04 issues

    Scheduled Pinned Locked Moved Help and Support
    ubuntusdl2installiation
    28 Posts 6 Posters 6.2k 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.
    • mituM
      mitu Global Moderator @BuZz
      last edited by

      @BuZz I don't think there was anything besides the SDL2 dependency and the other posters confirmed it was working fine once that is fixed.
      I don't have the Debian Buster system that exhibited the problems at hand, but for the 19.04 I didn't get any errors during installation. I bumped the SDL2 version in sdl2.sh before starting the basic installation.

      BuZzB 1 Reply Last reply Reply Quote 0
      • BuZzB
        BuZz administrators @mitu
        last edited by

        @mitu I'd like to see the full log from any 2.0.8 SDL install fail as it's working here without bumping the version.

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        1 Reply Last reply Reply Quote 0
        • T
          tchuyev
          last edited by

          Hi,

          1./ Bumped from 2.0.8 to 2.0.9 using Ubuntu 19.04 and it does indeed solves this issue.

          However, when doing an 'sudo apt update', I get:

          The following packages have unmet dependencies:
          libsdl2-2.0-0 : Breaks: libsdl2-2.0-0:i386 (!= 2.0.9+1) but 2.0.9+dfsg1-1ubuntu1 is installed
          libsdl2-2.0-0:i386 : Breaks: libsdl2-2.0-0 (!= 2.0.9+dfsg1-1ubuntu1) but 2.0.9+1 is installed
          libsdl2-dev : Depends: libsdl2-2.0-0 (= 2.0.9+dfsg1-1ubuntu1) but 2.0.9+1 is installed
          E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

          Running 'sudo apt --fix-broken install' would NOT solve the issue:
          dpkg: error processing archive /var/cache/apt/archives/libsdl2-2.0-0_2.0.9+dfsg1-1ubuntu1_amd64.deb (--unpack):
          trying to overwrite shared '/usr/share/doc/libsdl2-2.0-0/copyright', which is different from other instances of package libsdl2-2.0-0:amd64
          Errors were encountered while processing:
          /var/cache/apt/archives/libsdl2-2.0-0_2.0.9+dfsg1-1ubuntu1_amd64.deb
          E: Sub-process /usr/bin/dpkg returned an error code (1)

          2./ Using latest Pop!_OS 19.04, I also get the following error messages at the end of a basic install:

          Could not install package(s): libxkbcommon-dev libusb-1.0-0-dev libvulkan-dev libavcodec-dev libavformat-dev libavdevice-dev nvidia-cg-toolkit libfreeimage-dev libfreetype6-dev libcurl4-openssl-dev cmake libvlc-dev libvlccore-dev vlc rapidjson-dev mc feh cmake libsamplerate0-dev libspeexdsp-dev libpng-dev libglew-dev libboost-filesystem-dev nasm flex bison libpng-dev libglew-dev nasm libpng-dev

          Any suggestions please?

          mituM BuZzB 2 Replies Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @tchuyev
            last edited by mitu

            @tchuyev said in Ubuntu 19.04 issues:

            Any suggestions please?

            Have you followed @buzz's advice to modify the /opt/retropie/configs/all/retropie.cfg file ? This should make use of the distro's packages for libSDL, so there shouldn't be any conflict.

            1 Reply Last reply Reply Quote 0
            • T
              tchuyev
              last edited by tchuyev

              Thanks, running this set of commands solved all of my issues:

              $ sudo sed --in-place 's/2.0.8/2.0.9/g' $HOME/Git/Retropie-Setup/scriptmodules/supplementary/sdl2.sh
              $ echo "own_sdl2=\"0"\" >> /opt/retropie/configs/all/retropie.cfg
              $ sudo rm /usr/share/doc/libsdl2-2.0-0/copyright
              $ sudo apt remove libsdl2-dev
              $ sudo apt --fix-broken install
              $ sudo apt autoremove
              $ sudo ./retropie_setup.sh (Basic install)
              ParabolaralusP 1 Reply Last reply Reply Quote 0
              • ParabolaralusP
                Parabolaralus @tchuyev
                last edited by

                I finally got around to installing this directly on my laptop (Kubuntu 19.04) last night and may tonight setup my desktop.

                To clarify on @tchuyev post listed above;

                If you're doing a clean install, setup your OS first and then run:
                echo "own_sdl2="0"" >> /opt/retropie/configs/all/retropie.cfg
                And everything should be hunky dory doing a basic install at that point.

                If you skip that step and start the basic install (which i lol did) youll need to run because retroarch will fail to compile:
                sudo apt remove libsdl2-dev
                then if you havnt already:
                echo "own_sdl2="0"" >> /opt/retropie/configs/all/retropie.cfg
                And your basic install, or retroarch itself should be ok.

                I didn't have to use the sed command at any point, nor did i have to --fix broken install. Im assuming that these may be required if you're upgrading?

                So far all normal cores work fine and even Dolphin as well as PCSX2 1.5.0 (dev) from the PPA.

                1 Reply Last reply Reply Quote 1
                • BuZzB
                  BuZz administrators @tchuyev
                  last edited by

                  @tchuyev please send me a full log as it's working on my 19.04. check logs folder under RetroPie-Setup

                  I can fix this with a full log without having to do a new install but no-one has provided one yet.

                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                  1 Reply Last reply Reply Quote 0
                  • BuZzB
                    BuZz administrators
                    last edited by

                    Ok. Actually I just worked it out from your snippet above and apt-cache.

                    So now libavdevice58 has a dependency on the SDL version included with Ubuntu. Probably overly strict to require that specific version. May report this upstream.

                    I will maybe just use 2.0.9 for x11 targets and default to off as mentioned earlier.

                    Imho this is a packaging error. Makes it impossible even to use a newer SDL2 too.

                    To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                    1 Reply Last reply Reply Quote 0
                    • BuZzB
                      BuZz administrators
                      last edited by

                      Please can you try this

                      https://github.com/RetroPie/RetroPie-Setup/pull/2696

                      I threw it together quickly but solves the issue with retroarch dependencies for me.

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      ParabolaralusP 1 Reply Last reply Reply Quote 0
                      • ParabolaralusP
                        Parabolaralus @BuZz
                        last edited by Parabolaralus

                        @BuZz Id love to help, but i have absolutely no idea what to do with that...It would be easy for me to set up a clean VM and test what you did, but im clueless as to what to do with that link.
                        Edit: Fail

                        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.