Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: I ruined my Yast repositories

  1. #1

    Unhappy I ruined my Yast repositories

    I tried to add another repository to yast (Index of /repositories/mozilla/openSUSE_11.2) and when I was done, Yast gave me an error message and now no repositories show up.
    The error is: "/etc/zypp/repos.d/_mozilla_openSUSE_11.2.repo:Line 2 is missing '=' sign"

    How do I fix this? How do I get my repos back?

    I took a look in that directory and this is what is in it:
    Code:
    [_mozilla/openSUSE_11.2
    ]
    name= mozilla/openSUSE_11.2
    
    enabled=1
    autorefresh=1
    baseurl=http://download.opensuse.org/repositories/mozilla/openSUSE_11.2
    path=/
    type=rpm-md
    keeppackages=0
    Last edited by gymnart; 29-Jul-2010 at 09:23. Reason: directory info

  2. #2
    Join Date
    Jun 2008
    Location
    Germany
    Posts
    153

    Default Re: I ruined my Yast repositories

    You can export the repos and edit it with what you like and then re-import them.

    ---------------------------------------------------------------------------------------

    repos –export or lr -e

    You can export your complete repository list to a file and import it later or on another machine.

    zypper lr --export backups/repos/foo.repo
    zypper ar backups/repos/foo.repo

    zypper lr -u # to include also repo URI in the table
    zypper lr -d # to include several other repo properties in the table
    zypper lr -P # to include also repo priority and sort the list by it
    zypper lr -e my # export all repository definitions into file named 'my.repo'

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,733

    Default Re: I ruined my Yast repositories

    Quote Originally Posted by gymnart View Post
    I tried to add another repository to yast (Index of /repositories/mozilla/openSUSE_11.2) and when I was done, Yast gave me an error message and now no repositories show up.
    The error is: "/etc/zypp/repos.d/_mozilla_openSUSE_11.2.repo:Line 2 is missing '=' sign"

    How do I fix this? How do I get my repos back?

    I took a look in that directory and this is what is in it:
    Code:
    [_mozilla/openSUSE_11.2
    ]
    name= mozilla/openSUSE_11.2
    
    enabled=1
    autorefresh=1
    baseurl=http://download.opensuse.org/repositories/mozilla/openSUSE_11.2
    path=/
    type=rpm-md
    keeppackages=0
    I do not understand what you mean that this in a directory, because a directory contains files. It looks more like the text is in some file.

    In any case (and I never looked at these things) to me it looks that the stand alone ] on the second line should be at the end of the text of the first line. You could try if editing this helps (but make a backup of that file first). When it helps, the strange is is of courser: how did this happen?
    Henk van Velden

  4. #4

    Default Re: I ruined my Yast repositories

    I've just tried as root but root says it can't open this file in any editor ("KDEInit could not launch '/usr/bin/kwrite.' " - says the same thing about kate too.) I can open it as user and then edit it though, but I get a warning that "no backup copy could be created before saving. If an error occurs while saving, you might lose the data of this file. A reason could be that the media you write to is full or the directory of the file is read-only for you." So, I can't save it (it is read only for me as I thought). I did place a copy of it in my home folder though.

    Would I be able to just delete the _mozilla_openSUSE_11.2 file?

    All this just to try and update FireFox! (I'll tell you the whole story why later if you want)

    @ swannema:
    How would I just export one repo file to fix it and then re-import it?
    Do you have to give the whole path for that zypper command? (I'm very new at this.)

  5. #5

    Default Re: I ruined my Yast repositories

    Quote Originally Posted by gymnart View Post
    I've just tried as root but root says it can't open this file in any editor ("KDEInit could not launch '/usr/bin/kwrite.' " - says the same thing about kate too.) I can open it as user and then edit it though, but I get a warning that "no backup copy could be created before saving. If an error occurs while saving, you might lose the data of this file. A reason could be that the media you write to is full or the directory of the file is read-only for you." So, I can't save it (it is read only for me as I thought). I did place a copy of it in my home folder though.

    Would I be able to just delete the _mozilla_openSUSE_11.2 file?

    All this just to try and update FireFox! (I'll tell you the whole story why later if you want)

    @ swannema:
    How would I just export one repo file to fix it and then re-import it?
    Do you have to give the whole path for that zypper command? (I'm very new at this.)
    Easy now, slow down, slow down. Don't go deleting anything. There are many postings on using zypper in this forum. Do some more research first. You may be able to recreate the repo manually in Yast > Software Repositories

  6. #6

    Default Re: I ruined my Yast repositories

    recreate the repo manually in Yast > Software Repositories
    Like how? That is where I was when this all started.

    I am looking for info now but I'm unsure of what I need.

  7. #7

    Default Re: I ruined my Yast repositories

    I tried out the command, "zypper lr -d" and this is what I got:

    Unexpected exception.
    /etc/zypp/repos.d/_mozilla_openSUSE_11.2
    .repo: Line 2 is missing '=' sign
    Please file a bug report about this.
    See http://en.opensuse.org/Zypper/Troubleshooting for instructions.

    But when I go to that page, it says it has been moved (or will be moved.)

  8. #8
    Join Date
    Aug 2009
    Location
    Mountain View, CA
    Posts
    204

    Default Re: I ruined my Yast repositories

    Edit the file so that it looks like this:
    [_mozilla/openSUSE_11.2]
    name= mozilla/openSUSE_11.2

    enabled=1
    autorefresh=1
    baseurl=http://download.opensuse.org/repositories/mozilla/openSUSE_11.2
    path=/
    type=rpm-md
    keeppackages=0
    The only change is that the closing bracket is moved from 2nd line to the first line and I believe zypper/Yast expects the repo name in the first line and all other information or parameters (with an EQUAL sign) in the remaining lines.....

    Okay - I didn't see the other replies.... To edit the file as root enter this from the command line
    gnomesu gedit /etc/zypp/repos.d/_mozilla_openSUSE_11.2.repo

  9. #9
    Carlos E. R. NNTP User

    Default Re: I ruined my Yast repositories

    On 2010-07-30 02:36, gymnart wrote:
    >
    > I tried out the command, "zypper lr -d" and this is what I got:
    >
    > Unexpected exception.
    > /etc/zypp/repos.d/_mozilla_openSUSE_11.2
    > repo: Line 2 is missing '=' sign
    > Please file a bug report about this.
    > See http://en.opensuse.org/Zypper/Troubleshooting for instructions.
    >
    > But when I go to that page, it says it has been moved (or will be
    > moved.)


    Search for the tittle, or search in the old wiki. Then report the link error in Bugzilla, too.

    (' hate this...)


    Ok, here:

    <http://old-en.opensuse.org/Zypper/Troubleshooting>

    This page says it has been moved to:

    <http://en.opensuse.org/openSUSEypper_troubleshooting>

    But this other says it has been deleted.

    Using the search, I found that it maybe here:

    <http://en.opensuse.org/Portalypper>

    where they point to:

    <http://en.opensuse.org/SDBypper_usage>
    and
    <http://en.opensuse.org/SDBypper_troubleshooting>


    Now, please, will you report all these broken links as a bug against zypper itself, too? It is a bug
    in zypper if they point to the wrong link, even if it is not their fault.

    Then report your own bug.

    Please :-)

    I'm off to bed.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" GM (Elessar))

  10. #10
    Join Date
    Mar 2010
    Location
    Europe
    Posts
    657

    Default Re: I ruined my Yast repositories

    Quote Originally Posted by gymnart View Post
    I've just tried as root but root says it can't open this file in any editor ("KDEInit could not launch '/usr/bin/kwrite.' " - says the same thing about kate too.) I can open it as user and then edit it though, but I get a warning that "no backup copy could be created before saving. If an error occurs while saving, you might lose the data of this file. A reason could be that the media you write to is full or the directory of the file is read-only for you." So, I can't save it (it is read only for me as I thought). I did place a copy of it in my home folder though.
    If you must edit this file, hit alt+F2 and then:
    Code:
    kdesu kwrite /path/to/file
    This directly opens the specified file in Kwrite as root.


    Alternatively, launch Kwrite as root:
    Code:
    kdesu kwrite
    and then use drag-and-drop from Dolphin, or open the file from withing Kwrite.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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