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

    the list of sources could not be read

    Scheduled Pinned Locked Moved Help and Support
    sourceserrorpython3-pyudev
    21 Posts 3 Posters 6.9k 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
      last edited by

      @asianchinaboi said in the list of sources could not be read:

      E: Malformed line 9 in source list /etc/apt/sources.list (type)

      The error is pretty obvious - fix the apt sources file (at line 9). Without it, you will not be able to install or update anything.

      asianchinaboiA 3 Replies Last reply Reply Quote 0
      • asianchinaboiA
        asianchinaboi @mitu
        last edited by

        @mitu How do you do that?

        1 Reply Last reply Reply Quote 0
        • asianchinaboiA
          asianchinaboi @mitu
          last edited by

          @mitu oh wait found out how to do it myself but now it gives me another error

          asianchinaboiA 1 Reply Last reply Reply Quote 0
          • asianchinaboiA
            asianchinaboi @asianchinaboi
            last edited by

            @asianchinaboi its now unable to install package python3-pydev
            it says it cannot locate the package

            1 Reply Last reply Reply Quote 0
            • asianchinaboiA
              asianchinaboi @mitu
              last edited by

              @mitu
              Did not find needed dependencies: python3-pyudev. Trying to install them now.
              Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
              Hit:2 http://pipplware.pplware.pt/pipplware/dists/stretch/main/binary ./ InRelease
              Ign:3 https://repo.fury.io/rydra InRelease
              Ign:4 https://repo.fury.io/rydra Release
              Ign:5 https://repo.fury.io/rydra Packages
              Ign:6 https://repo.fury.io/rydra Translation-en
              Ign:7 https://repo.fury.io/rydra Translation-en_GB
              Get:5 https://repo.fury.io/rydra Packages [634 B]
              Hit:5 https://repo.fury.io/rydra Packages
              Ign:5 https://repo.fury.io/rydra Packages
              Ign:6 https://repo.fury.io/rydra Translation-en
              Ign:7 https://repo.fury.io/rydra Translation-en_GB
              Ign:5 https://repo.fury.io/rydra Packages
              Ign:6 https://repo.fury.io/rydra Translation-en
              Ign:7 https://repo.fury.io/rydra Translation-en_GB
              Get:5 https://repo.fury.io/rydra Packages [550 B]
              Hit:5 https://repo.fury.io/rydra Packages
              Ign:6 https://repo.fury.io/rydra Translation-en
              Ign:7 https://repo.fury.io/rydra Translation-en_GB
              Ign:6 https://repo.fury.io/rydra Translation-en
              Ign:7 https://repo.fury.io/rydra Translation-en_GB
              Ign:6 https://repo.fury.io/rydra Translation-en
              Ign:7 https://repo.fury.io/rydra Translation-en_GB
              Reading package lists... Done
              Reading package lists... Done
              Building dependency tree
              Reading state information... Done
              E: Unable to locate package python3-pyudev
              Unable to install packages required by /home/pi/RetroPie-Setup/retropie_packages.sh - Could not install package(s): python3-pyudev.
              new error

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

                You've modified the apt source list and it doesn't find the package. Add to the list

                deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
                

                and the re-run apt update before re-trying the install.

                asianchinaboiA 1 Reply Last reply Reply Quote 0
                • asianchinaboiA
                  asianchinaboi @mitu
                  last edited by

                  @mitu how do you add that to the list

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

                    @asianchinaboi Edit the file and add the line at the end, similar to how you fixed the broken file in the first place.

                    asianchinaboiA 1 Reply Last reply Reply Quote 0
                    • asianchinaboiA
                      asianchinaboi @mitu
                      last edited by

                      @mitu Is the file supposed to be a folder?

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

                        @asianchinaboi No, it a text format file - how exactly did you fix the first error ?

                        You can use the nanoe text editor from the command line (exit EmulationStation first and plug in a keyboard) and edit the file, adding a line at the end with the contents I posted earlier

                        sudo nano /etc/apt/sources.list
                        
                        asianchinaboiA 1 Reply Last reply Reply Quote 0
                        • asianchinaboiA
                          asianchinaboi @mitu
                          last edited by

                          @mitu
                          Did not find needed dependencies: python3-pyudev. Trying to install them now.
                          Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
                          Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
                          Hit:3 http://pipplware.pplware.pt/pipplware/dists/stretch/main/binary ./ InRelea se
                          Ign:4 https://repo.fury.io/rydra InRelease
                          Ign:5 https://repo.fury.io/rydra Release
                          Ign:6 https://repo.fury.io/rydra Packages
                          Ign:7 https://repo.fury.io/rydra Translation-en
                          Ign:8 https://repo.fury.io/rydra Translation-en_GB
                          Get:6 https://repo.fury.io/rydra Packages [634 B]
                          Hit:6 https://repo.fury.io/rydra Packages
                          Ign:6 https://repo.fury.io/rydra Packages
                          Ign:7 https://repo.fury.io/rydra Translation-en
                          Ign:8 https://repo.fury.io/rydra Translation-en_GB
                          Ign:6 https://repo.fury.io/rydra Packages
                          Ign:7 https://repo.fury.io/rydra Translation-en
                          Ign:8 https://repo.fury.io/rydra Translation-en_GB
                          Get:6 https://repo.fury.io/rydra Packages [550 B]
                          Hit:6 https://repo.fury.io/rydra Packages
                          Ign:7 https://repo.fury.io/rydra Translation-en
                          Ign:8 https://repo.fury.io/rydra Translation-en_GB
                          Ign:7 https://repo.fury.io/rydra Translation-en
                          Ign:8 https://repo.fury.io/rydra Translation-en_GB
                          Ign:7 https://repo.fury.io/rydra Translation-en
                          Ign:8 https://repo.fury.io/rydra Translation-en_GB
                          Reading package lists... Done
                          N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian stretch InRelease' doesn't support architecture 'i386'
                          N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian stretch InRelease' doesn't support architecture 'i386'
                          N: Skipping acquire of configured file 'non-free/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian stretch InRelease' doesn't support architecture 'i386'
                          N: Skipping acquire of configured file 'rpi/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian stretch InRelease' doesn't support architecture 'i386'
                          Reading package lists... Done
                          Building dependency tree
                          Reading state information... Done
                          You might want to run 'apt --fix-broken install' to correct these.
                          The following packages have unmet dependencies:
                          chromium-browser-l10n : Depends: chromium-browser (>= 72.0.3626.121-0+rpt3) but 56.0.2924.84-0ubuntu0.14.04.1.1011 is to be installed
                          python3-pyudev : Depends: python3-six but it is not going to be installed
                          rpi-chromium-mods : Depends: chromium-browser (>= 65) but 56.0.2924.84-0ubuntu0.14.04.1.1011 is to be installed
                          E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
                          Unable to install packages required by /home/pi/RetroPie-Setup/retropie_packages.sh - Could not install package(s): python3-pyudev.

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

                            I think your APT configuration is pretty broken at this point. How did you end up with this configuration ? I'd advise you to re-install.

                            asianchinaboiA 1 Reply Last reply Reply Quote 0
                            • asianchinaboiA
                              asianchinaboi @mitu
                              last edited by

                              @mitu I installed a new retropie script from retropie setup

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

                                You said:

                                Built From:SD image on retropie website

                                but those entries you have in the apt sources (and other packages you might have installed) are not from the RetroPie image - you probably added them yourself in order to install something else (?). Furthermore, you seem to have added i386 as an architecture on the system, to what purpose I don't know.

                                Fix your apt, the errors you get are not caused by RetroPie or its configuration.

                                1 Reply Last reply Reply Quote 0
                                • muldjordM
                                  muldjord @asianchinaboi
                                  last edited by

                                  @asianchinaboi Are you perhaps doing this on Ubuntu 20.04? I seem to recall reading that it has either removed or renamed that package python3-pyudev.

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

                                    @muldjord Actually it was the other way around :) The python-pyudev package doesn't exist anymore (in Ubuntu 20.04), being transitioned topython3-pyudev now.

                                    However, that's not the case here, since @asianchinaboi seems to have a Raspbian Stretch installation - according to both their account (SD image from RetroPie) and the contents of the apt sources list.

                                    asianchinaboiA 1 Reply Last reply Reply Quote 1
                                    • asianchinaboiA
                                      asianchinaboi @mitu
                                      last edited by

                                      @mitu could you send me a image of what /etc/apt is supposed to look like?

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

                                        My sources.list contains only the line I posted.
                                        /etc/apt/sources.list:

                                        deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
                                        

                                        In addition to that, there is also /etc/apt/sources.list.d/raspi.list with:

                                        deb http://archive.raspberrypi.org/debian/ stretch main ui
                                        
                                        asianchinaboiA 1 Reply Last reply Reply Quote 0
                                        • asianchinaboiA
                                          asianchinaboi @mitu
                                          last edited by

                                          @mitu thanks i ended up fixing it by doing
                                          sudo apt-get clean
                                          sudo apt-get update
                                          sudo apt-get upgrade
                                          sudo apt-get dist-upgrade

                                          asianchinaboiA 1 Reply Last reply Reply Quote 0
                                          • asianchinaboiA
                                            asianchinaboi @asianchinaboi
                                            last edited by

                                            @asianchinaboi I also got rid of i386

                                            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.