Announcement

Collapse
No announcement yet.

Can't edit Sources

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

    Can't edit Sources

    Hi

    A little problem here: I don't know when it happened, but today I wanted to add a PPA to my source list and I cant edit it. I tried with Kpackage and with Adept. None of them worked. How can I edit the list again?

    Thanks

    #2
    Re: Can't edit Sources

    Do you get error messages if you start the sources editor at the konsole with a command:
    Code:
    kdesudo software-properties-kde

    software-properties-kde, manage the repositories that you install software from
    This software provides an abstraction of the used apt repositories.
    It allows you to easily manage your distribution and independent software
    vendor software sources.

    This package contains a QT/KDE based graphical interface.

    The sources list is a text file so you could edit it with a text editor. Backup it before you edit it !!

    Press ALT+F2 and type "kdesudo kate /etc/apt/sources.list"

    If a line starts with a # then the source is disabled (it is a comment line).


    man sources.list
    NAME
    sources.list - Package resource list for APT

    DESCRIPTION
    The package resource list is used to locate archives of the package distribution system in use on the system. At this time, this manual page documents only the packaging system used by the Debian GNU/Linux system. This control file is located in /etc/apt/sources.list

    The source list is designed to support any number of active sources and a variety of source media. The file lists one source per line, with the most preferred source listed first. The format of each line is: type uri args The first item, type determines the format for args uri is a Universal Resource Identifier (URI), which is a superset of the more specific and well-known Universal Resource Locator, or URL. The rest of the line can be marked as a comment by using a #.

    A safe way to add sources is to make a new sources list to the /etc/apt/sources.list.d directory.

    man sources.list
    SOURCES.LIST.D

    The /etc/apt/sources.list.d directory provides a way to add sources.list entries in separate files. The format is the same as for the regular sources.list file. File names need to end with .list and may only contain letters (a-z and A-Z), digits (0-9), underscore (_), hyphen (-) and period (.) characters. Otherwise they will be silently ignored.
    Example: Alt + F2 and "kdesudo kate /etc/apt/sources.list.d/my_ppa_repos.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


      #3
      Re: Can't edit Sources

      Thanks Rog131

      That way I can edit the list, but how can I solve the edit list on Kpackage or Adept??
      One other thing: what I wanted to add was the PPA of VBox. I added it, but no upgrade showed up... Why?

      Thanks

      Comment


        #4
        Re: Can't edit Sources

        but how can I solve the edit list on Kpackage or Adept??
        The "Edit Software Sources" on the KpackageKit/Adept should be a start button for the software-properties-kde.

        If you start the kpackagekit on the konsole. Settings > Edit Software Sources. Do you get error messages ?

        One other thing: what I wanted to add was the PPA of VBox. I added it, but no upgrade showed up... Why?
        Did you update/refresh ?

        man apt-get
        update

        update is used to resynchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list. For example, when using a Debian archive, this command retrieves and scans the Packages.gz files, so that information about new and updated packages is available. An update should always be performed before an upgrade or dist-upgrade.
        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


          #5
          Re: Can't edit Sources

          Thanks Rog131

          I'll try that.

          Comment


            #6
            Re: Can't edit Sources

            Hi Again

            Originally posted by Rog131
            but how can I solve the edit list on Kpackage or Adept??
            The "Edit Software Sources" on the KpackageKit/Adept should be a start button for the software-properties-kde.

            If you start the kpackagekit on the konsole. Settings > Edit Software Sources. Do you get error messages ?

            One other thing: what I wanted to add was the PPA of VBox. I added it, but no upgrade showed up... Why?
            Did you update/refresh ?

            This didn't solved

            man apt-get
            update

            update is used to resynchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list. For example, when using a Debian archive, this command retrieves and scans the Packages.gz files, so that information about new and updated packages is available. An update should always be performed before an upgrade or dist-upgrade.

            Comment


              #7
              Re: Can't edit Sources

              Sorry for my last post...

              The tips didn't worked..

              But I can edit the list with Synaptic, so it's a little solved.

              About the update for instance of VirtualBoxOSE, I still have 2.1.4. How can I update it to version 3??

              Thanks

              Comment


                #8
                Re: Can't edit Sources

                One other thing: what I wanted to add was the PPA of VBox. I added it, but no upgrade showed up... Why?
                ...
                About the update for instance of VirtualBoxOSE, I still have 2.1.4. How can I update it to version 3??
                Hmm - ?

                Are you using this: https://launchpad.net/~debfx/+archive/virtualbox

                Your sources.list (or /etc/apt/sources.list.d/my_ppa_repos.list) has line ?:
                Code:
                deb [url]http://ppa.launchpad.net/debfx/virtualbox/ubuntu[/url] jaunty main
                What is the output of the:
                Code:
                sudo apt-get update
                any errors ?

                If there are no errors - What tells:
                Code:
                apt-cache show virtualbox-ose
                The "PPA for VirtualBox" enabled there should be:
                Package: virtualbox-ose
                Version: 2.2.4-dfsg-1ubuntu1~jaunty0
                and
                Package: virtualbox-ose
                Version: 2.1.4-dfsg-1ubuntu3

                Other virtualbox-ose versions > Show PPAs matching: virtualbox-ose
                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


                  #9
                  Re: Can't edit Sources

                  But I can edit the list with Synaptic, so it's a little solved.
                  If you can edit it with Synaptic, stay with it, it's nowadays the best software for installing programs in Kubuntu, in my opinion. It can also help you in other cases, where other installers fail.
                  Sorry for my last post...
                  You can edit your posts (use button modify) after you post them and repair them untill you are satisfied with them.
                  Kubuntu 16.04 on two computers and Kubuntu 17.04 on DELL Latitude 13

                  Comment


                    #10
                    Re: Can't edit Sources

                    Originally posted by Rog131

                    Your sources.list (or /etc/apt/sources.list.d/my_ppa_repos.list) has line ?:
                    Code:
                    deb [url]http://ppa.launchpad.net/debfx/virtualbox/ubuntu[/url] jaunty main
                    I had an error on the PPA. At the end it was "non free" instead of main.

                    It's now updating. Thanks.

                    Comment

                    Working...
                    X