Page 1 of 9 123 ... LastLast
Results 1 to 10 of 81

Thread: How to delete a repository.

  1. #1

    Question How to delete a repository.

    I have this error:
    zypper lr --details
    Unexpected exception.
    /etc/zypp/repos.d/Index_of__update_11.1

    Repository_Management_-_openSUSE_Forums.repo: Line 3 is missing '=' sign
    Please file a bug report about this.
    See Zypper - openSUSE for instructions.
    rosswmcgee@linux-6y9y:~>

    How do I delete this? I have tried this zypper removerepo
    Root privileges are required for modifying system repositories.
    rosswmcgee@linux-6y9y:~>

    Stumped?

  2. #2
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: How to delete a repository.

    try in YaST? Do you get the same error? if so, then delete the repo file from /etc/zypp/repos.d

    Also, you need to be root on console to modify/delete/add repos

  3. #3

    Default Re: How to delete a repository.

    I cannot get to software repositories or soft ware mangement, because of this error.

  4. #4
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: How to delete a repository.

    then delete the repo file in /etc/zypp/repos.d and try again? it even shows you which file, pay attention!

    /etc/zypp/repos.d/Index_of__update_11.1

  5. #5

    Question Re: How to delete a repository.

    rosswmcgee@linux-6y9y:~> removerepos /etc/zypp/repos.d/Index_of_update_11.1
    bash: removerepos: command not found
    rosswmcgee@linux-6y9y:~> /etc/zypp/repos.d
    bash: /etc/zypp/repos.d: is a directory
    rosswmcgee@linux-6y9y:~> dir

    What can I say please advise and thanks in advance.

  6. #6
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: How to delete a repository.

    first, list the available repo files in the zypp directory

    Code:
    ls /etc/zypp/repos.d
    login as root on console by typing su and providing the root password, then delete the repo that's giving problems with

    Code:
    rm -f /etc/zypp/repos.d/Index_of__update_11.1
    rm -f /etc/zypp/repos.d/Repository_Management_-_openSUSE_Forums.repo

  7. #7

    Default Re: How to delete a repository.

    rosswmcgee@linux-6y9y:~> su
    Password:
    linux-6y9y:/home/rosswmcgee # ls /etc/zypp/repos.d
    Index_of__update_11.1??Repository_Management_-_openSUSE_Forums.repo
    Libdvdcss repository.repo
    Packman Repository.repo
    repo-debug.repo
    repo-non-oss.repo
    repo-oss.repo
    repo-source.repo
    software.repo
    linux-6y9y:/home/rosswmcgee # rm -f /etc/zypp/repos.d/Index_of__update_11.1
    linux-6y9y:/home/rosswmcgee # rm -f /etc/zypp/repos.d/Repository_Management_-_openSUSE_Forums.repo
    linux-6y9y:/home/rosswmcgee # ls /etc/zypp/repos.d
    Index_of__update_11.1??Repository_Management_-_openSUSE_Forums.repo
    Libdvdcss repository.repo
    Packman Repository.repo
    repo-debug.repo
    repo-non-oss.repo
    repo-oss.repo
    repo-source.repo
    software.repo
    linux-6y9y:/home/rosswmcgee #

    It is still there! What now?

  8. #8
    Join Date
    Jun 2008
    Location
    Kansas City, MO
    Posts
    570

    Default Re: How to delete a repository.

    just a stab in the dark do this
    rm -f /etc/zypp/repos.d/Index_of__update_11.1??Repository_Management_-_openSUSE_Forums.repo

  9. #9

    Default Re: How to delete a repository.

    pp/repos.d/Index_of__update_11.1??Repository_Management_-_openSUSE_Forums.repo
    linux-6y9y:/home/rosswmcgee # Reply With Quote
    bash: Reply: command not found
    linux-6y9y:/home/rosswmcgee #

    Any other ideas are worth a try and thanks.

  10. #10
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: How to delete a repository.

    Open a terminal and switch to su. Copy and paste this in

    rm /etc/zypp/repos.d/Index_of_update_11.1

    at the request that follows type: y
    hit enter
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

Page 1 of 9 123 ... LastLast

Posting Permissions

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