Announcement

Collapse
No announcement yet.

Solved Can't use adept to add/remove applications.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Solved Can't use adept to add/remove applications.

    I;ve attempted to add Medibuntu repositories with command line (cut and pasted from another post), and failed miserably.
    Now I can.t open Adept, and I get the following error in Synaptic.

    E: Type ‘sudo’ is not known on line 54 in source list /etc/apt/sources.list
    E: The list of sources could not be read.
    Go to the repository dialogue to correct the problem.
    E: _cache->open() failed, please report.

    Any help welcome, although clearly I;m no command line expert...

    #2
    Re: Can't use adept to add/remove applications.

    You've corrupted your /etc/apt/sources.list file. Please post it so we can tell you what to remove (may be more than just the identified 'error').
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Can't use adept to add/remove applications.

      Where do I find the list?

      Comment


        #4
        Re: Can't use adept to add/remove applications.

        I;m hunting around in root and I;ve found an empty medibuntu folder in apt/sources list D.
        Is that it?

        Comment


          #5
          Re: Can't use adept to add/remove applications.

          You've corrupted your /etc/apt/sources.list
          That is the "address" of the file. Go to root>etc>apt and then open sources.list with a text editor such as kate.

          You can then copy the text and post it here for the clever folks to diagnose your problem.

          Comment


            #6
            Re: Can't use adept to add/remove applications.

            Open a console (K Menu > Applications > System > Konsole). Type:
            Code:
            cat /etc/apt/sources.list
            Copy and paste the output in you reply.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Re: Can't use adept to add/remove applications.

              OK Here goes.
              willie@Advent-laptop:~$ cat /etc/apt/sources.list
              deb cdrom:[Kubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.1)]/ intrepid main restricted
              # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
              # newer versions of the distribution.

              deb http://gb.archive.ubuntu.com/ubuntu/ intrepid main restricted
              deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid main restricted

              ## Major bug fix updates produced after the final release of the
              ## distribution.
              deb http://gb.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
              deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted

              ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
              ## team. Also, please note that software in universe WILL NOT receive any
              ## review or updates from the Ubuntu security team.
              deb http://gb.archive.ubuntu.com/ubuntu/ intrepid universe
              deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid universe
              deb http://gb.archive.ubuntu.com/ubuntu/ intrepid-updates universe
              deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid-updates universe

              ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
              ## team, and may not be under a free licence. Please satisfy yourself as to
              ## your rights to use the software. Also, please note that software in
              ## multiverse WILL NOT receive any review or updates from the Ubuntu
              ## security team.
              deb http://gb.archive.ubuntu.com/ubuntu/ intrepid multiverse
              deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid multiverse
              deb http://gb.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
              deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

              ## Uncomment the following two lines to add software from the 'backports'
              ## repository.
              ## N.B. software from this repository may not have been tested as
              ## extensively as that contained in the main release, although it includes
              ## newer versions of some applications which may provide useful features.
              ## Also, please note that software in backports WILL NOT receive any review
              ## or updates from the Ubuntu security team.
              # deb http://gb.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
              # deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

              ## Uncomment the following two lines to add software from Canonical's
              ## 'partner' repository. This software is not part of Ubuntu, but is
              ## offered by Canonical and the respective vendors as a service to Ubuntu
              ## users.
              deb http://archive.canonical.com/ubuntu intrepid partner
              # deb-src http://archive.canonical.com/ubuntu intrepid partner

              deb http://security.ubuntu.com/ubuntu intrepid-security main restricted
              deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted
              deb http://security.ubuntu.com/ubuntu intrepid-security universe
              deb-src http://security.ubuntu.com/ubuntu intrepid-security universe
              deb http://security.ubuntu.com/ubuntu intrepid-security multiverse
              deb-src http://security.ubuntu.com/ubuntu intrepid-security multiverse
              sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list --output-document=/etc/apt/sources.list.d/medibuntu.listwillie@Advent-laptop:~$

              Comment


                #8
                Re: Can't use adept to add/remove applications.

                Two 'issues' with the file. First, the 'bad' entry is the very last line:

                sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list --output-document=/etc/apt/sources.list.d/medibuntu.list
                It needs to be deleted.

                Second, you still have the cdrom enabled as a repository. This will prevent you from accessing the other 'on-line' repositories. You need to comment out that line (the first one).

                You will need to edit your /etc/apt/sources.list file. You need to do so as root. Comment out the first line - put a # and space in front of the line so it looks like this:
                # deb cdrom:[Kubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.1)]/ intrepid main restricted
                Then delete the last line. Save and close the file. In a console type:
                Code:
                sudo apt-get update
                to ensure your package cache is up to date.

                As to getting the medibuntu repository and key, in a console, type:
                Code:
                sudo wget -q [url]http://packages.medibuntu.org/medibuntu-key.gpg[/url] -O- | sudo apt-key add - && sudo apt-get update
                To ensure you don't type something wrong, just copy the above and paste it into the console.
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Re: Can't use adept to add/remove applications.

                  And from Synaptic:

                  E: Type ‘sudo’ is not known on line 54 in source list /etc/apt/sources.list
                  E: The list of sources could not be read.
                  Go to the repository dialogue to correct the problem.
                  E: _cache->open() failed, please report.

                  Comment


                    #10
                    Re: Can't use adept to add/remove applications.

                    I know that you are beginning to wish that I'd stuck to windows, but how do I get root access to edit the lines in the bash shell?

                    Comment


                      #11
                      Re: Can't use adept to add/remove applications.

                      From the console, you should only have to type:
                      Code:
                      kdesudo /usr/bin/kate /etc/apt/sources.list
                      This should launch the Kate editor as root and open the sources.list file for editing.
                      Windows no longer obstructs my view.
                      Using Kubuntu Linux since March 23, 2007.
                      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                      Comment


                        #12
                        Re: Can't use adept to add/remove applications.

                        YAY!!!!

                        You're a star, Mr. Snowhog sir.!!
                        Sorted.
                        Thank you for your help with my meatware problem.
                        All is working like it should.

                        Comment


                          #13
                          Re: Can't use adept to add/remove applications.

                          Glad to have been able to assist. For the benefit of others, please return to your initial post in this thread and click on the modify button and add SOLVED to the subject line.
                          Windows no longer obstructs my view.
                          Using Kubuntu Linux since March 23, 2007.
                          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                          Comment

                          Working...
                          X