Announcement

Collapse
No announcement yet.

package manager

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

    package manager

    I was trying to enable the repositories to universe/multiverse and I think I deleted the code lines

    The APT Database could not be opened! This may be caused by incorrect APT configuration or some similar problem. Try running apt-setup and apt-get update in terminal and see if it helps to resolve the problem.

    How do I repair this problem?

    #2
    Re: package manager

    The file in question is /etc/apt/sources.list which you assumedly have trashed ... you may post a (full) copy of this file to this forum to let us have a look and tell you how to restore it.

    Comment


      #3
      Re: package manager

      Or - make new sources.list:

      Ubuntu sources.list generator
      http://www.ubuntu-nl.org/source-o-matic/
      With this generator you can create your own custom sources.list from various available sources. It takes only two simple steps.
      Note:
      Did you use kate ? Kate makes backup file :
      sources.list -> sources.list~
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: package manager

        I can't even access the file.

        shockdennis@shockdennis1:~$ sudo apt-get install java-package
        E: Malformed line 18 in source list /etc/apt/sources.list (URI parse)
        E: The list of sources could not be read.
        shockdennis@shockdennis1:~$ ls /etc/apt/sources.list
        /etc/apt/sources.list
        shockdennis@shockdennis1:~$ cd /etc/apt/sources.list
        bash: cd: /etc/apt/sources.list: Not a directory
        shockdennis@shockdennis1:~$ ls /etc/apt/sources.list
        /etc/apt/sources.list
        shockdennis@shockdennis1:~$

        Line 18 seems to be the one that needs repair but I can't access it on the console.

        Comment


          #5
          Re: package manager

          G'day, penguinluvr

          Have a look at this link, it may help you.

          http://www.psychocats.net/ubuntu/sources

          Cheers

          Lowey
          I wish I was the man my dog thinks I am.<br /><br />Registered Linux User No. 402825

          Comment


            #6
            Re: package manager

            penguinluvr:

            You can't cd into /etc/apt/sources.list, because that sources.list is a file. you cd /etc/apt then access sources.list from there.

            I suggest you follow that guide that lowey23 gave. it's one of the best guides around.
            Jucato&#39;s Data Core

            Comment


              #7
              Re: package manager

              Thanks lowrey23. This looks like what I need to fix the problem. Thanks Jucardo for that cd tip. It explains the "command not found" that I got when I first tried it.

              Comment


                #8
                Re: package manager

                Sorry for the delay between posts. I'm trying to open a terminal and type in the first line using lowrey23 link below. Here's what I get:

                root@shockdennis1:/home/shockdennis# cd /etc/apt
                root@shockdennis1:/etc/apt# -l sources.list
                bash: -l: command not found
                root@shockdennis1:/etc/apt# sources.liost
                bash: sources.liost: command not found
                root@shockdennis1:/etc/apt# sources.list
                bash: sources.list: command not found
                root@shockdennis1:/etc/apt# sources
                bash: sources: command not found
                root@shockdennis1:/etc/apt# mv /etc/apt/sources.list/etc/apt/sources.list_backupkdesu kwrite /etc/apt/sources.list
                mv: target `/etc/apt/sources.list' is not a directory
                root@shockdennis1:/etc/apt# list
                bash: list: command not found
                root@shockdennis1:/etc/apt#

                where do I go from here?
                Thanks

                Comment


                  #9
                  Re: package manager

                  Right now you have these two jammed together as one command:
                  Code:
                  root@shockdennis1:/etc/apt# mv /etc/apt/sources.list/etc/apt/sources.list_backupkdesu kwrite /etc/apt/sources.list
                  They're actually two separate commands.

                  First this command:
                  Code:
                  sudo mv /etc/apt/sources.list /etc/apt/sources.list_backup
                  Then this command:
                  Code:
                  kdesu kwrite /etc/apt/sources.list
                  By the way, you also lacked a space in there. Your best bet with terminal commands is always to copy and paste rather than retype.

                  Translation:
                  With administrative privileges (sudo) move (mv) the sources.list file in the /etc/apt directory to be a backup copy called sources.list_backup. After that, with root privileges (kdesu) graphically edit (kwrite) a new file called sources.list in the /etc/apt directory.
                  Linux is ready for the desktop--but whose desktop?<br />How to install software in Kubuntu

                  Comment


                    #10
                    Re: package manager

                    Thanks Aysiu,
                    Here is what I get when I enter the 2 lines:

                    shockdennis@shockdennis1:/etc/apt$ sudo mv /etc/apt/sources.list /etc/apt/sources.list_backup
                    mv: cannot stat `/etc/apt/sources.list': No such file or directory
                    shockdennis@shockdennis1:/etc/apt$ kdesu kwrite /etc/apt/sources.list
                    X Error: BadDevice, invalid or uninitialized input device 166
                    Major opcode: 144
                    Minor opcode: 3
                    Resource id: 0x0
                    Failed to open device
                    X Error: BadDevice, invalid or uninitialized input device 166
                    Major opcode: 144
                    Minor opcode: 3
                    Resource id: 0x0
                    Failed to open device
                    X Error: BadDevice, invalid or uninitialized input device 166
                    Major opcode: 144
                    Minor opcode: 3
                    Resource id: 0x0
                    Failed to open device
                    X Error: BadDevice, invalid or uninitialized input device 166
                    Major opcode: 144
                    Minor opcode: 3
                    Resource id: 0x0
                    Failed to open device
                    X Error: BadDevice, invalid or uninitialized input device 166
                    Major opcode: 144
                    Minor opcode: 3
                    Resource id: 0x0
                    Failed to open device
                    X Error: BadDevice, invalid or uninitialized input device 166
                    Major opcode: 144
                    Minor opcode: 3
                    Resource id: 0x0
                    Failed to open device
                    kbuildsycoca running...
                    ScimInputContextPlugin()
                    ~ScimInputContextPlugin()
                    shockdennis@shockdennis1:/etc/apt$



                    A window opens for kwrite and I open the file with the text but nothing happens. What now?

                    Comment


                      #11
                      Re: package manager

                      G'day penguinluvr

                      Do this :-

                      Open konsole

                      Type kdesu kwrite /etc/apt/sources.list

                      Copy and paste the output.

                      This is what mine looks like.

                      Quote
                      ####################################
                      ### Official Ubuntu Repositories ###
                      ####################################

                      ## Uncomment the following two lines to fetch updated software from the network
                      deb http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
                      # deb-src http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse

                      deb http://archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiverse

                      ## MAJOR BUG FIX UPDATES produced after the final release
                      deb http://archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse
                      # deb-src http://archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse

                      ## UBUNTU SECURITY UPDATES
                      deb http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
                      # deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse

                      ##BACKPORTS
                      deb http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
                      # deb-src http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse

                      ##CANONICAL COMMERCIAL PACKAGES
                      deb http://archive.canonical.com/ubuntu edgy-commercial main

                      ## PLF Primary repo
                      # deb http://packages.freecontrib.org/plf edgy-plf free non-free
                      # deb-src http://packages.freecontrib.org/plf edgy-plf free non-free

                      ## PLF secondary repo. Use if primary repo is offline.
                      ## FTP mirror from http://free.fr (french ISP)
                      # deb ftp://ftp.free.fr/pub/Distributions_...lf/ubuntu/plf/ edgy free non-free
                      # deb-src ftp://ftp.free.fr/pub/Distributions_...lf/ubuntu/plf/ edgy free non-free

                      ## Amarok
                      deb http://kubuntu.org/packages/amarok-latest edgy main

                      ## KDE
                      deb http://kubuntu.org/packages/kde-latest edgy main

                      ## OpenOffice
                      # deb http://people.ubuntu.com/~doko/OOo2/ ./

                      ## Skype
                      # deb http://download.skype.com/linux/repos/debian/ stable non-free

                      Unquote

                      Copy and paste your output and we can see what is in your list which should make it easier for us to help you.

                      Cheers

                      Lowey
                      I wish I was the man my dog thinks I am.<br /><br />Registered Linux User No. 402825

                      Comment


                        #12
                        Re: package manager

                        When the window opens for KWrite, paste the appropriate text in, save, and then close the window.
                        Linux is ready for the desktop--but whose desktop?<br />How to install software in Kubuntu

                        Comment


                          #13
                          Re: package manager

                          Here you are lowrey23:

                          hockdennis@shockdennis1:/etc/apt$ kdesu kwrite /etc/apt/sources.list
                          X Error: BadDevice, invalid or uninitialized input device 166
                          Major opcode: 144
                          Minor opcode: 3
                          Resource id: 0x0
                          Failed to open device
                          X Error: BadDevice, invalid or uninitialized input device 166
                          Major opcode: 144
                          Minor opcode: 3
                          Resource id: 0x0
                          Failed to open device
                          X Error: BadDevice, invalid or uninitialized input device 166
                          Major opcode: 144
                          Minor opcode: 3
                          Resource id: 0x0
                          Failed to open device
                          X Error: BadDevice, invalid or uninitialized input device 166
                          Major opcode: 144
                          Minor opcode: 3
                          Resource id: 0x0
                          Failed to open device
                          Link points to "/tmp/ksocket-root"
                          Link points to "/tmp/kde-root"
                          X Error: BadDevice, invalid or uninitialized input device 166
                          Major opcode: 144
                          Minor opcode: 3
                          Resource id: 0x0
                          Failed to open device
                          X Error: BadDevice, invalid or uninitialized input device 166
                          Major opcode: 144
                          Minor opcode: 3
                          Resource id: 0x0
                          Failed to open device
                          kbuildsycoca running...
                          ScimInputContextPlugin()
                          ~ScimInputContextPlugin()
                          shockdennis@shockdennis1:/etc/apt$

                          I can't access the code list.

                          Comment

                          Working...
                          X