Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33

Thread: Command to remove repository from sources.list

  1. #1
    Join Date
    Nov 2009
    Beans
    34

    Command to remove repository from sources.list

    Very simple question but i cant seem to find the command for it or enough documentation for me to figure it out. So on a side note some docs on repo lists or useful stuff would be appreciated.


    Short version:

    add-apt-repository ppa:sun-java-community-team/sun-java6

    Is the command i used to add a repository. Whats the command to remove said repository?

    'remove/release-apt-repository ppa:sun-java-community-team/sun-java6'?








    Long version:

    Basically the context is I'm trying to install and update sun-jre so i can play minecraft again. Seemed to work before the 1.8.


    add-apt-repository ppa:sun-java-community-team/sun-java6
    apt-get update
    apt-get install sun-java6-jdk
    update-java-alternatives -s java-6-sun

    Figured this would work but it seems that the community java 6 ppa isnt live anymore. So the ppa was added fine but when I go to update i get the usual response of:




    W: Failed to fetch http://ppa.launchpad.net/sun-java-co...-i386/Packages 404 Not Found
    W: Failed to fetch http://ppa.launchpad.net/sun-java/pp...source/Sources 404 Not Found
    W: Failed to fetch http://ppa.launchpad.net/sun-java/pp...-i386/Packages 404 Not Found




    A bit more investigation revealed that it had been moved to natty partners.

    So now I'm trying to remove the ppa that i added but cant figure out how.
    The command I used to add was
    'add-apt-repository ppa:sun-java-community-team/sun-java6'
    I figured something like
    'remove/release-apt-repository ppa:sun-java-community-team/sun-java6'
    would work. Any ideas?

    ********************************************
    etc/apt/sources.list

    Is this where the ppas are added?

  2. #2
    Join Date
    Feb 2008
    Beans
    5,636

    Re: Command to remove repository from sources.list

    Code:
    gksu gedit /etc/apt/sources.list
    Remove the offending line(s), save, exit.

  3. #3
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,815

    Re: Command to remove repository from sources.list

    Quote Originally Posted by overtone View Post
    Very simple question but i cant seem to find the command for it or enough documentation for me to figure it out. So on a side note some docs on repo lists or useful stuff would be appreciated.


    Short version:

    add-apt-repository ppa:sun-java-community-team/sun-java6

    Is the command i used to add a repository. Whats the command to remove said repository?

    'remove/release-apt-repository ppa:sun-java-community-team/sun-java6'?Long version:

    Basically the context is I'm trying to install and update sun-jre so i can play minecraft again. Seemed to work before the 1.8.


    add-apt-repository ppa:sun-java-community-team/sun-java6
    apt-get update
    apt-get install sun-java6-jdk
    update-java-alternatives -s java-6-sun

    Figured this would work but it seems that the community java 6 ppa isnt live anymore. So the ppa was added fine but when I go to update i get the usual response of:




    W: Failed to fetch http://ppa.launchpad.net/sun-java-co...-i386/Packages 404 Not Found
    W: Failed to fetch http://ppa.launchpad.net/sun-java/pp...source/Sources 404 Not Found
    W: Failed to fetch http://ppa.launchpad.net/sun-java/pp...-i386/Packages 404 Not Found




    A bit more investigation revealed that it had been moved to natty partners.

    So now I'm trying to remove the ppa that i added but cant figure out how.
    The command I used to add was
    'add-apt-repository ppa:sun-java-community-team/sun-java6'
    I figured something like
    'remove/release-apt-repository ppa:sun-java-community-team/sun-java6'
    would work. Any ideas?

    ********************************************
    etc/apt/sources.list

    Is this where the ppas are added?

    use your update manager and choose settings and then in the various tabs untick the one that corresponds to your PPA usually the other software tab.

    or you can :

    Code:
    gksudo gedit etc/apt/sources.list
    and then place a # at the front of the line you dont want it to use, best to place a # there incase you want to use it again in the future, the # comments the line out.

    Easier to use the GUI though, and if you use gedit then make sure you use gksudo and not sudo.

    cheers
    Feel Free to Bitcoin Tip: 135Rp4pwwYTHEJ4u8bxKaDQiC91N9LUoV2

    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

  4. #4
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Command to remove repository from sources.list

    If you used add-apt then it' more than likely the repo is in /etc/apt/sources.list.d

    Code:
    ls /etc/apt/sources.list.d/
    IF you can see it

    Code:
    sudo rm /etc/apt/sources.list.d/nameofrepo.list
    You can also do so from software sources in the software centre settings - look in the other software tab

    Edit - you can also use the ppa purge
    http://www.webupd8.org/2010/08/ppa-p...untu-1010.html
    Last edited by Elfy; September 16th, 2011 at 04:14 PM.
    Forum Social IRC Channel
    Xubuntu IRC Support
    Xubuntu Support

    Please do not PM me about Registration issues without having been asked to. I will tell you to post here

  5. #5
    Join Date
    Nov 2009
    Beans
    34

    Re: Command to remove repository from sources.list

    lol. Software sources. So used to being in the mindset of trying to do everything in the console.

  6. #6
    Join Date
    Feb 2008
    Beans
    5,636

    Re: Command to remove repository from sources.list

    Quote Originally Posted by overtone View Post
    lol. Software sources. So used to being in the mindset of trying to do everything in the console.
    Of course you can, if you want to that is (it's the manly way anyway )
    Code:
    sudo nano /etc/apt/sources.list

  7. #7
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Command to remove repository from sources.list

    Which will still be of little help as all the ppa's I add get put in their own list in the sources.d folder

    At least you said nano


    Code:
    ls /etc/apt/sources.list.d/
    me-davidsansome-clementine-dev-natty.list
    me-davidsansome-clementine-dev-natty.list.save
    me-davidsansome-clementine-natty.list
    me-davidsansome-clementine-natty.list.save
    medibuntu.list
    medibuntu.list.save
    Forum Social IRC Channel
    Xubuntu IRC Support
    Xubuntu Support

    Please do not PM me about Registration issues without having been asked to. I will tell you to post here

  8. #8
    Join Date
    Nov 2009
    Beans
    34

    Re: Command to remove repository from sources.list

    Quote Originally Posted by TeoBigusGeekus View Post
    Code:
    gksu gedit /etc/apt/sources.list
    Remove the offending line(s), save, exit.
    I actually tried this already. I couldn't find the lines that had anything to do with Java or sun.

  9. #9
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Command to remove repository from sources.list

    As I've said twice - look in /etc/apt/sources.list.d/
    Forum Social IRC Channel
    Xubuntu IRC Support
    Xubuntu Support

    Please do not PM me about Registration issues without having been asked to. I will tell you to post here

  10. #10
    Join Date
    Feb 2008
    Beans
    5,636

    Re: Command to remove repository from sources.list

    Oops, sorry, I've forgotten me apt!
    Ubuntu's getting trickier and trickier...

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •