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

    Fails to install on Raspbian 10

    Scheduled Pinned Locked Moved Help and Support
    installation
    8 Posts 2 Posters 1.7k 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.
    • L
      Lesezeichen
      last edited by

      Hey

      I am trying to get retropie installed on an already running 10.3 Raspbian on a rpi 3b.
      I did git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git and then ran the setup script which resulted in multiple package dependency error:

      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:
      
      The following packages have unmet dependencies:
       libasound2-dev : Depends: libasound2 (= 1.1.8-1)
       libavcodec-dev : Depends: libavcodec58 (= 7:4.1.4-1~deb10u1)
                        Depends: libavutil-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed
                        Depends: libswresample-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed
       libavdevice-dev : Depends: libavdevice58 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt7~deb10u1 is to be installed
                         Depends: libavfilter-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed
                         Depends: libavutil-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed
                         Depends: libpostproc-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed
                         Depends: libswscale-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed
                         Depends: libswresample-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed
       libavformat-dev : Depends: libavformat58 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt7~deb10u1 is to be installed
                         Depends: libavutil-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed
                         Depends: libswresample-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed
       libgles2-mesa-dev : Depends: libegl1-mesa-dev but it is not going to be installed
                           Depends: libglvnd-dev but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.
      Could not install package(s): libudev-dev libxkbcommon-dev libasound2-dev libusb-1.0-0-dev libgles2-mesa-dev libavcodec-dev libavformat-dev libavdevice-dev.
      

      That's a pretty default raspbian installation, should this have worked?

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @Lesezeichen
        last edited by

        @Lesezeichen said in Fails to install on Raspbian 10:

        That's a pretty default raspbian installation, should this have worked?

        Yes, but it doesn't look like a default Raspbian if you're unable to install basic packages. Did you add/modify the default APT repository sources ?

        1 Reply Last reply Reply Quote 0
        • L
          Lesezeichen
          last edited by

          I have some additional repositories but (docker and influx), the problem seems to be this:

          # apt-get install libasound2
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          libasound2 is already the newest version (1.1.8-1+rpt1).
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          

          but libasound2-dev wants the non "rpt1" packages, i can manually install the rpt1 version of libasound2-dev and all the other packages (i guess). All these come from the rapsbian repo.

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @Lesezeichen
            last edited by

            @Lesezeichen Is this a clean Raspbian Buster install or an upgraded system ? Run the following

            apt-cache policy libasound2 libasound2-dev
            

            and see where the packages get their version.

            1 Reply Last reply Reply Quote 0
            • L
              Lesezeichen
              last edited by

              @mitu said in Fails to install on Raspbian 10:

              apt-cache policy libasound2 libasound2-dev

              Thanks for your help, it's an updated version.

              This repo may have been the cause of all this, not sure
              "deb http://archive.raspberrypi.org/debian/ buster main ui"

              Now i am only using this one:
              "deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi"

              There seem to be 2 versions of "some?" packages and for some reason i had the +rpt1 version on some packages.
              After fixing this mess manually the setup script ran almost without an issue.

              The only remaining issue is this:

              apt-get install omxplayer
              Reading package lists... Done
              Building dependency tree
              Reading state information... Done
              Package omxplayer is not available, but is referred to by another package.
              This may mean that the package is missing, has been obsoleted, or
              is only available from another source
              
              E: Package 'omxplayer' has no installation candidate
              
              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @Lesezeichen
                last edited by mitu

                @Lesezeichen You need to have both. omxplayer is in http://archive.raspberrypi.org/debian/pool/main/o/omxplayer/.

                1. You main sources.conf should have
                  deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
                  
                2. You should have an additional file /etc/apt/sources.list.d/raspi.list with
                  deb http://archive.raspberrypi.org/debian/ buster main ui
                  

                Make sure you enable both repositories, then do an apt update and you should be able to install omxplayer.

                1 Reply Last reply Reply Quote 0
                • L
                  Lesezeichen
                  last edited by

                  That's what i had, that was what caused the version mismatch on the packages, that is where the "wrong" packages comes from:
                  http://archive.raspberrypi.org/debian/pool/main/a/alsa-lib/libasound2_1.1.8-1+rpt1_armhf.deb

                  Reenabled the second repo, omxplayer installs now and so does the rest of the stuff in the script.

                  Thanks for you time, appreciated.

                  1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator
                    last edited by

                    We don't recommend in-place upgrades, and neither Raspbian.

                    One thing to know is that the new Buster images have a larger boot partition to accomodate larger kernel sizes. It might not be a problem now, but in the future this might pose an issue.

                    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.