Announcement

Collapse
No announcement yet.

Problem with apt-get

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

    Problem with apt-get

    Hi, I am new to linux and have installed Kubuntu. I have tried using apt-get in Konsole and get this error:

    Code:
    E: Type '“deb' is not known on line 40 in source list /etc/apt/sources.list
    E: The list of sources could not be read.
    How can I get apt-get to work?

    Thanks, Luis Diego.

    #2
    Re: Problem with apt-get

    Hi,

    I would first run "sudo apt-get update" that will usually give you more infor about the errors your getting. But if I had to guess here, I would edit the sources.list file and make sure that there is either nothing in front of "deb" or there is a # sign in front to comment it out. After making any changes, rerun "sudo apt-get update" that validates your entries..

    Comment


      #3
      Re: Problem with apt-get

      Thanks ppberns, It worked.

      I can now enter the apt-get database.
      Now I have tried to install a lot of packages and none works...

      Code:
      Reading package lists... Done
      Building dependency tree... Done
      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.
      
      Since you only requested a single operation it is extremely likely that
      the package is simply not installable and a bug report against
      that package should be filed.
      The following information may help to resolve the situation:
      
      The following packages have unmet dependencies:
       automatix2: Depends: tango-icon-theme-common but it is not installable
             Depends: tango-icon-theme but it is not installable
             Depends: python2.4-gtk2 but it is not installable
             Depends: python2.4-glade2 but it is not installable
             Depends: python-vte but it is not installable
             Depends: gksu but it is not installable
             Depends: libgnomeui-0 but it is not installable
             Depends: python-gnome2-extras but it is not installable
             Depends: python-gtkhtml2 but it is not installable
      E: Broken packages

      Comment


        #4
        Re: Problem with apt-get

        This happens when I try to install MYSQL server...

        Code:
        Reading package lists... Done
        Building dependency tree... Done
        Package mysql-server 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 mysql-server has no installation candidate

        Comment


          #5
          Re: Problem with apt-get

          you need to enable universe and multiverse in your repositories it ssems
          https://help.ubuntu.com/community/Repositories/Kubuntu

          Also, you may have some badly formatted lines in your sources.list file, if you paste the contents here, we should be able to determine what needs to be fixed, as mysql-server definitely should be available to you.

          Comment


            #6
            Re: Problem with apt-get

            Hi claydoh,

            This is my sources.list file

            Code:
            # Line commented out by installer because it failed to verify:
            #deb [url]http://cr.archive.ubuntu.com/ubuntu/[/url] dapper main restricted
            # Line commented out by installer because it failed to verify:
            #deb-src [url]http://cr.archive.ubuntu.com/ubuntu/[/url] dapper main restricted
            
            ## Major bug fix updates produced after the final release of the
            ## distribution.
            # Line commented out by installer because it failed to verify:
            #deb [url]http://cr.archive.ubuntu.com/ubuntu/[/url] dapper-updates main restricted
            # Line commented out by installer because it failed to verify:
            #deb-src [url]http://cr.archive.ubuntu.com/ubuntu/[/url] dapper-updates main restricted
            
            ## Uncomment the following two lines to add software from the 'universe'
            ## repository.
            ## 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
            ## universe WILL NOT receive any review or updates from the Ubuntu security
            ## team.
            # deb [url]http://cr.archive.ubuntu.com/ubuntu/[/url] dapper universe
            # deb-src [url]http://cr.archive.ubuntu.com/ubuntu/[/url] dapper universe
            
            ## 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 [url]http://cr.archive.ubuntu.com/ubuntu/[/url] dapper-backports main restricted universe multiverse
            # deb-src [url]http://cr.archive.ubuntu.com/ubuntu/[/url] dapper-backports main restricted universe multiverse
            
            # Line commented out by installer because it failed to verify:
            #deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security main
            # Line commented out by installer because it failed to verify:
            #deb-src [url]http://security.ubuntu.com/ubuntu[/url] dapper-security main
            # deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security universe
            # deb-src [url]http://security.ubuntu.com/ubuntu[/url] dapper-security universe
            deb [url]http://www.getautomatix.com/apt[/url] edgy main
            deb [url]http://www.getautomatix.com/apt[/url] edgy main
            deb [url]http://www.getautomatix.com/apt[/url] edgy main
            deb [url]http://www.getautomatix.com/apt[/url] dapper main
            deb [url]http://www.getautomatix.com/apt[/url] dapper main
            deb [url]http://www.getautomatix.com/apt[/url] dapper main
            Thanks.

            Comment


              #7
              Re: Problem with apt-get

              you need to enable universe and multiverse in your repositories it ssems
              https://help.ubuntu.com/community/Repositories/Kubuntu
              claydoh is correct

              You only have Automatix repositories enabled.

              On your sources.list file,
              uncomment these lines (by removing the pound- # symbol):

              Code:
              #deb [url]http://cr.archive.ubuntu.com/ubuntu/[/url] dapper main restricted
              # deb [url]http://cr.archive.ubuntu.com/ubuntu/[/url] dapper universe
              #deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security main
              # deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security universe
              Then run sudo apt-get update.

              Otherwise, replace your sources.list file with the following text:

              Code:
              # Ubuntu supported packages
              # GPG key: 437D05B5
              deb [url]http://cr.archive.ubuntu.com/ubuntu[/url] dapper main restricted 
              deb [url]http://cr.archive.ubuntu.com/ubuntu[/url] dapper-updates main restricted
              deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security main restricted
              
              # Ubuntu community supported packages
              # GPG key: 437D05B5
              deb [url]http://cr.archive.ubuntu.com/ubuntu[/url] dapper universe multiverse 
              deb [url]http://cr.archive.ubuntu.com/ubuntu[/url] dapper-updates universe multiverse
              deb [url]http://security.ubuntu.com/ubuntu[/url] dapper-security universe multiverse

              Comment


                #8
                Re: Problem with apt-get

                it looks like either your country's repository is having problems
                First, comment out all the automatix lines by adding a '#' in front of each line, and then uncomment all the remaining lines beginning with 'deb' or 'deb-src'

                Then update again. If the issue still exists, you may want to change the repository locale from 'cr' to something else.
                for example:
                #deb http://cr.archive.ubuntu.com/ubuntu/ dapper main restricted
                you remove the '#' to make them look like this:
                deb http://cr.archive.ubuntu.com/ubuntu/ dapper main restricted
                and if that fails, edit any lines with 'cr' to something like this:
                deb http://us.archive.ubuntu.com/ubuntu/ dapper main restricted
                or just to
                deb http://archive.ubuntu.com/ubuntu/ dapper main restricted
                I think that will fix it for you. run apt-get update, and apt-get upgrade to get your system current.

                Then, you can try installing automatix if you wish, but you only need one line for it:
                (assuming you are running Dapper Drake 6.06):
                deb http://www.getautomatix.com/apt dapper main
                and if you are running Edgy:
                deb http://www.getautomatix.com/apt edgy main

                also read this
                http://ubuntuforums.org/announcement.php?f=13

                I agree with the stance taken in that post

                Comment


                  #9
                  Re: Problem with apt-get

                  Hi,

                  I changed the sources.list and it is working nice! Thanks to both of you.

                  Regards,
                  Luis Diego.

                  Comment


                    #10
                    Re: Problem with apt-get

                    Out of curiosity, did you have to change the country code (I am basically wondering if there is a problem with the Costa Rican mirror)?

                    Comment


                      #11
                      Re: Problem with apt-get

                      No. But I don't know maybe I should. For example, I am trying to
                      Code:
                      apt-get install phpmyadmin
                      but I recieve
                      root@Kunbuntu-Laptop1:/home/luisdiego# apt-get install phpmyadmin
                      Reading package lists... Done
                      Building dependency tree... Done
                      E: Couldn't find package phpmyadmin
                      . And BlueFish doesn't installs:
                      root@Kunbuntu-Laptop1:/home/luisdiego# apt-get install bluefish
                      Reading package lists... Done
                      Building dependency tree... Done
                      Package bluefish 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 bluefish has no installation candidate
                      Do you think I should change the country code?

                      Comment

                      Working...
                      X