Announcement

Collapse
No announcement yet.

adept has error

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

    adept has error

    Hi everyone,


    As a newbie I hope you can help me.I tried to add deb http://wine.sourceforge.net/apt/binary/ to adept. Now I get a message saying.error on line 45 in source list /etc/apt/sources.list
    Something about cache open. Thanks.
    Mint-7 Gloria KDE                                                                                                        Mint-7 Gloria Gnome

    #2
    Re: adept has error

    Open a console. Type:
    Code:
    ls -l /etc/atp/sources.*
    You should see at least two files:
    /etc/apt/sources.list
    /etc/apt/sources.list~

    The date/time stamps should be very close. The file ending in .list~ is the backup copy before you made the change. If both files do exist, then type:
    Code:
    sudo mv /etc/apt/sources.list  /etc/apt/sources.list_BAD
    sudo mv /etc/apt/sources.list~  /etc/apt/sources.list
    The first command will rename the non-working file. The second command renames your backup. Then type:
    Code:
    sudo apt-get update
    This will refresh the package cache. It should function without any errors.
    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: adept has error

      Thank you:But didn't work I get
      -rw-r--r-- 1 root root 2419 2008-11-22 20:43 /etc/apt/sources.list
      -rw-r--r-- 1 root root 2793 2008-11-22 20:43 /etc/apt/sources.list.save

      /etc/apt/sources.list.d:
      total 0
      Mint-7 Gloria KDE                                                                                                        Mint-7 Gloria Gnome

      Comment


        #4
        Re: adept has error

        Still okay. In your case, the backup file is the .list.save

        Use my instructions and for the second command use:
        Code:
        sudo mv /etc/apt/sources.list.save  /etc/apt/sources.list
        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


          #5
          Re: adept has error

          E: Malformed line 48 in source list /etc/apt/sources.list (dist)
          This is what I get now.1st it was line 45.Now line 48.Well it is after midnight here.Going to bed.Deal with this in the morning.Thanks again for the advice.Would be nice to have access to my repository.I am using the new version of kubuntu 8.10 with kde4.10.My first linux.Gonna take some getting used too.
          Mint-7 Gloria KDE                                                                                                        Mint-7 Gloria Gnome

          Comment


            #6
            Re: adept has error

            No problem. When you get back on, post your sources.list file for a review:
            Code:
            cat /etc/apt/sources.list
            Copy and paste in your 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: adept has error


              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://ca.archive.ubuntu.com/ubuntu/ intrepid main restricted
              deb-src http://ca.archive.ubuntu.com/ubuntu/ intrepid restricted main multiverse universe #Added by software-properties

              ## Major bug fix updates produced after the final release of the
              ## distribution.
              deb http://ca.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
              deb-src http://ca.archive.ubuntu.com/ubuntu/ intrepid-updates restricted main multiverse universe #Added by software-properties

              ## 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://ca.archive.ubuntu.com/ubuntu/ intrepid universe
              deb http://ca.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://ca.archive.ubuntu.com/ubuntu/ intrepid multiverse
              deb http://ca.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://ca.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
              # deb-src http://ca.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 restricted main multiverse universe #Added by software-properties
              deb http://security.ubuntu.com/ubuntu intrepid-security universe
              deb http://security.ubuntu.com/ubuntu intrepid-security multiverse
              Sounds like an argument.lol
              Hope this helps
              Mint-7 Gloria KDE                                                                                                        Mint-7 Gloria Gnome

              Comment


                #8
                Re: adept has error

                I see no malformed lines in your file. I do note that the country location of the repositories appears to be Canada. Is that correct? If it is, I'm going to suggest that you replace every occurrence of //ca. with //us. (Not that I'm promoting the USA - you could use another country code, but the US is the closest Country)

                I've seen numerous reports of sporadic problems with repositories that were using Canada as the country. Make the changes (as root), save and close, then run from the console:
                Code:
                sudo apt-get update
                You should get no errors.
                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: adept has error

                  I am not certain how to change //ca. to //us. Adept has crashed with signal 6 (SIGABRT).
                  Mint-7 Gloria KDE                                                                                                        Mint-7 Gloria Gnome

                  Comment


                    #10
                    Re: adept has error

                    What version of Kubuntu are you running?
                    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


                      #11
                      Re: adept has error

                      The new release 8.1..kde4.1. Downloaded a couple weeks ago,my 1st linux.Not familiar with it yet.
                      Mint-7 Gloria KDE                                                                                                        Mint-7 Gloria Gnome

                      Comment


                        #12
                        Re: adept has error

                        Okay. Here's how you edit the file (as root):

                        Alt+F2 and type: kdesudo /usr/bin/kate /etc/apt/sources.list
                        (note the space between kdesudo and /usr/bin/kdate and /etc/apt/sources.list)
                        Enter you password when prompted. Kate will open the file "as root" and you can make the changes. Then save and close. You're done. Then open a console and run:
                        Code:
                        sudo apt-get update
                        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


                          #13
                          Re: adept has error


                          austin@wells-cp:~$ kdesudo /usr/bin/kate /etc/apt/sources.list
                          kate(11186): createDoc
                          kate(11186) KateSessionManager::KateSessionManager: LOCAL SESSION DIR: "/root/.kde/share/apps/kate/sessions"
                          kate(11186) KateApp::initKate: Setting KATE_PID: ' 11186 '
                          kate(11186) KateViewDocumentProxyModel::updateBackgrounds: false
                          kate(11186) KateMainWindow::KateMainWindow: ************************************************** ************************** 0x86fec68
                          kate(11186) KateViewDocumentProxyModel::updateBackgrounds: false
                          kate(11186) KateViewDocumentProxyModel::updateBackgrounds: false
                          kate(11186) KateDocManager::slotDocumentNameChanged: docname changed: "Untitled" -----> "Untitled"
                          kate(11186) KMimeTypeFactory:arseMagic: Now parsing "/usr/share/mime/magic"
                          kate(11186) KateDocManager::slotDocumentNameChanged: docname changed: "Untitled" -----> "sources.list"
                          kate(11186) KateViewDocumentProxyModel::updateBackgrounds: false
                          kate(11186) KateApp::startupKate: KateApplication::init finished successful
                          kate(11186) KateViewDocumentProxyModel::updateBackgrounds: true
                          kate(11186): Couldn't start knotify from knotify4.desktop: "KDEInit could not launch '/usr/bin/knotify4'."

                          kate(11186) KateDocManager::slotDocumentNameChanged: docname changed: "sources.list" -----> "root"
                          kate(11186) KateDocManager::slotDocumentNameChanged: docname changed: "root" -----> "Untitled"
                          kate(11186): deleting document with name: "Untitled"
                          kate(11186): QVariant(QString, "Untitled") REMOVING
                          kate(11186) KateViewDocumentProxyModel::updateBackgrounds: false
                          kate(11186) KateViewDocumentProxyModel::slotRowsAboutToBeRemov ed: **************
                          kate(11186): createDoc
                          kate(11186) KateViewDocumentProxyModel::updateBackgrounds: false
                          kate(11186) KateViewDocumentProxyModel::updateBackgrounds: false
                          kate(11186) KateViewDocumentProxyModel::updateBackgrounds: false
                          kate(11186) KateViewDocumentProxyModel::updateBackgrounds: true
                          QFSFileEngine:pen: No file name specified
                          QThreadStorage: Thread 0x865afa0 exited after QThreadStorage 2147483641 destroyed
                          QThreadStorage: Thread 0x865afa0 exited after QThreadStorage 2147483643 destroyed
                          austin@wells-cp:~$ sudo apt-get update
                          E: Malformed line 48 in source list /etc/apt/sources.list (dist)
                          austin@wells-cp:~$
                          Tried 3 or 4 times it doesn't work.Seems to have saved //ca. to //us. But not sure what happened to threads.Save&Close is not what it seems.
                          Mint-7 Gloria KDE                                                                                                        Mint-7 Gloria Gnome

                          Comment


                            #14
                            Re: adept has error

                            You've something else wrong with your system. Hmm. Let's approach editing using vi. Open a console and type:
                            Code:
                            cd /etc/apt
                            sudo cp sources.list  sources.list_SAVED
                            sudo vi sources.list
                            This will open the file "as root" for editing using the vi editor. Now type the following exactly:
                            Code:
                            :%s/ca./us.
                            (thats a colon, a percent sign, the letter s, a slash, the letters ca and a period, a slash, the letters us and a period)
                            then press Enter. This will replace all instances of ca. with us.
                            You will see xx substituted for xx lines where xx is the number found.

                            Now type:
                            :wq
                            (that's a colon and the letters wq)
                            to Save the changes to the file and Quit the vi editor. At the prompt type:
                            Code:
                            cat sources.list | grep '//us.'
                            to see the lines containing the changed lines.

                            Now run:
                            Code:
                            sudo apt-get update
                            You should get a successful update. If not, post the exact error/warning message in your 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


                              #15
                              Re: adept has error


                              bash: cd/etc/apt: No such file or directory

                              I guess it's not supposed to look like that.I will have to burn another CD maybe.
                              Mint-7 Gloria KDE                                                                                                        Mint-7 Gloria Gnome

                              Comment

                              Working...
                              X