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

Thread: Accidentally installed Factory repository

  1. #1

    Default Accidentally installed Factory repository

    First off, I apologize if this isn't the right location for this.

    I had a lot of updates queued at once and must not have been paying attention, so I've ended up with an entirely unwanted Factory repository that I think is causing me all kinds of issues. Restarting tries to boot to tumbleweed, but since I'm not actually running tumbleweed, it ends up at a black screen with a blinking cursor. I managed to boot through the last leap 43.2 snapshot, but I can't get rid of the repository.

    Here's the error I get when I try to delete it through YAST:


  2. #2
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,572

    Default Re: Accidentally installed Factory repository

    All the following are recent threads discussing the unfortunately common predicament of TW repos enabled in Leap installations, and their solutions:
    https://forums.opensuse.org/showthre...-click-install 24 April
    https://forums.opensuse.org/showthre...mand-line-mode 24 May
    https://forums.opensuse.org/showthre...ates-Leap-15-0 28 May
    https://forums.opensuse.org/showthre...-Linux-5-1-7-1 7 June
    https://forums.opensuse.org/showthre...ems-programmer 10 June

    The manifestation you describe, YaST refusing to do its job, is to me novel. I would login as root, identify any .repo file in /etc/zypp/repos.d/ that contains a reference to either tumbleweed or factory, and delete the file. That is all that YaST should do, just in a more convenient manner.

    If the above isn't enough information to get your problem solved, please paste here using code tags the output from
    Code:
    sudo zypper lr -d
    for more directed assistance.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,360
    Blog Entries
    3

    Default Re: Accidentally installed Factory repository

    That's just a file (in the directory "/etc/zypp/repos.d".

    If you cannot remove that file, then your root file system might be mounted as read-only. And perhaps your disk is full.

    But perhaps you booted to a read-only snapshot. After doing that, you need to do a rollback to that snapshot and reboot.

    I'm not using "btrfs" here, so I'm not sure of the details. I hope someone with more experience can provide further help.
    openSUSE Leap 15.1; KDE Plasma 5;

  4. #4
    Join Date
    Sep 2012
    Posts
    4,975

    Default Re: Accidentally installed Factory repository

    I finally submitted bug report not being able to find existing one.

    https://bugzilla.opensuse.org/show_bug.cgi?id=1138638

  5. #5
    Join Date
    Jun 2008
    Location
    Rural Australia
    Posts
    289

    Default Re: Accidentally installed Factory repository

    Did you at terminal

    try zypper remove --repo <ALIAS|#|URI>
    or sudo zypper remove --repo <ALIAS|#|URI>

    Example zypper remove --repo download.opensuse.org/distribution/leap/42.2/repo/oss/
    or
    Example sudo zypper remove --repo download.opensuse.org/distribution/leap/42.2/repo/oss/



    Self struggled to learn, until started using terminal ; -)
    .

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,863

    Default Re: Accidentally installed Factory repository

    Quote Originally Posted by paulparker View Post
    Did you at terminal

    try zypper remove --repo <ALIAS|#|URI>
    or sudo zypper remove --repo <ALIAS|#|URI>

    Example zypper remove --repo download.opensuse.org/distribution/leap/42.2/repo/oss/
    or
    Example sudo zypper remove --repo download.opensuse.org/distribution/leap/42.2/repo/oss/



    Self struggled to learn, until started using terminal ; -)
    .
    Sorry if I mis-assessed your understanding here. But

    The action you want to do
    Code:
    zypper remove --repo <ALIAS|#|URI>
    can only be done "as root".

    Thus many will say
    Code:
    sudo zypper remove --repo <ALIAS|#|URI>
    because they most often use sudo to run things as root.

    Any way to run the first "as root" will be OK, thus it is not the one or the other. It is just: do it "as root".
    Henk van Velden

  7. #7

    Default Re: Accidentally installed Factory repository

    First of all, thanks for the quick responses, guys.

    So I tried to tale a look at the repos.d file in Dolphin's sudo mode, which brought up an error reading
    Code:
    Configuration "file /root/.config/dolphinrc" not writable. Please contact your system administrator.
    Regular Dolphin works just fine, but upon navigating to repos.d, I couldn't find any file mentioning Factory or Tumbleweed.

    the lr -d command spits back the following:

    Code:
    Repository priorities are without effect. All enabled repositories share the sam
    e priority.
    
    #  | Alias                               | Name                                 
       | Enabled | GPG Check | Refresh | Priority | Type     | URI                  
                                                                         | Service
    ---+-------------------------------------+--------------------------------------
    ---+---------+-----------+---------+----------+----------+----------------------
    ---------------------------------------------------------------------+--------
     1 | Google-Chrome                       | Google-Chrome                        
       | Yes     | (r ) Yes  | No      |   99     | rpm-md   | http://dl.google.com/
    linux/chrome/rpm/stable/x86_64                                       |         
     2 | conky-manager-2.4-1.1.x86_64        | conky-manager-2.4-1.1.x86_64         
       | Yes     | ( p) Yes  | No      |   99     | plaindir | dir:///home/ri       
                                                                         |         
     3 | download.nvidia.com-leap            | nVidia Graphics Drivers              
       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | https://download.nvid
    ia.com/opensuse/leap/42.3                                            |         
     4 | google-chrome                       | google-chrome                        
       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://dl.google.com/
    linux/chrome/rpm/stable/x86_64                                       |         
     5 | http-download.opensuse.org-0fc85160 | devel:libraries:c_c++                
       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opens
    use.org/repositories/devel:/libraries:/c_c%2B%2B/openSUSE_Leap_42.3/ |         
     6 | http-download.opensuse.org-4dfadb51 | home:smarty12                        
       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opens
    use.org/repositories/home:/smarty12/openSUSE_Leap_42.3/              |         
     7 | http-download.opensuse.org-a893cbcc | home:smarty12:tools                  
       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opens
    use.org/repositories/home:/smarty12:/tools/openSUSE_Leap_42.3/       |         
     8 | http-download.opensuse.org-f76cf933 | openSUSE:Factory                     
       | Yes     | ( p) Yes  | Yes     |   99     | rpm-md   | http://download.opens
    use.org/tumbleweed/repo/oss/                                         |         
     9 | openSUSE-Leap-42.3-0                | openSUSE-Leap-42.3-0                 
       | No      | ----      | ----    |   99     | yast2    | hd:///?device=/dev/di
    sk/by-id/usb-SanDisk_Cruzer_Glide_200445301016AF52A7B3-0:0-part2     |         
    10 | packman.inode.at-suse               | Packman Repository                   
       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://packman.inode.
    at/suse/openSUSE_Leap_42.3/                                          |         
    11 | repo-debug                          | openSUSE-Leap-42.3-Debug             
       | No      | ----      | ----    |   99     | NONE     | http://download.opens
    use.org/debug/distribution/leap/42.3/repo/oss/                       |         
    12 | repo-debug-non-oss                  | openSUSE-Leap-42.3-Debug-Non-Oss     
       | No      | ----      | ----    |   99     | NONE     | http://download.opens
    use.org/debug/distribution/leap/42.3/repo/non-oss/                   |         
    13 | repo-debug-update                   | openSUSE-Leap-42.3-Update-Debug      
       | No      | ----      | ----    |   99     | NONE     | http://download.opens
    use.org/debug/update/leap/42.3/oss/                                  |         
    14 | repo-debug-update-non-oss           | openSUSE-Leap-42.3-Update-Debug-Non-O
    ss | No      | ----      | ----    |   99     | NONE     | http://download.opens
    use.org/debug/update/leap/42.3/non-oss/                              |         
    15 | repo-non-oss                        | openSUSE-Leap-42.3-Non-Oss           
       | Yes     | (r ) Yes  | Yes     |   99     | yast2    | http://download.opens
    use.org/distribution/leap/42.3/repo/non-oss/                         |         
    16 | repo-oss                            | openSUSE-Leap-42.3-Oss               
       | Yes     | (r ) Yes  | Yes     |   99     | yast2    | http://download.opens
    use.org/distribution/leap/42.3/repo/oss/                             |         
    17 | repo-source                         | openSUSE-Leap-42.3-Source            
       | No      | ----      | ----    |   99     | NONE     | http://download.opens
    use.org/source/distribution/leap/42.3/repo/oss/                      |         
    18 | repo-source-non-oss                 | openSUSE-Leap-42.3-Source-Non-Oss    
       | No      | ----      | ----    |   99     | NONE     | http://download.opens
    use.org/source/distribution/leap/42.3/repo/non-oss/                  |         
    19 | repo-update                         | openSUSE-Leap-42.3-Update            
       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opens
    use.org/update/leap/42.3/oss/                                        |         
    20 | repo-update-non-oss                 | openSUSE-Leap-42.3-Update-Non-Oss    
       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opens
    use.org/update/leap/42.3/non-oss/    


    You can see Factory there as the eighth line, so I feel like that's gotta be the problem, but I can't get to the file itself right now.

    I attempted to remove the repo through the command line and it returned the following error:
    Code:
    Unexpected exception.
    [http-download.opensuse.org-f76cf933|http://download.opensuse.org/tumbleweed/rep
    o/oss/] Can't delete '/etc/zypp/repos.d/http-download.opensuse.org-f76cf933.repo
    '                                                                               
    Please file a bug report about this.
    See http://en.opensuse.org/Zypper/Troubleshooting for instructions.
    Clearly I must be doing something very wrong. How do I tell if I've booted into a read-only snapshot?

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,863

    Default Re: Accidentally installed Factory repository

    Quote Originally Posted by rmseeker View Post


    I attempted to remove the repo through the command line and it returned the following error:
    Code:
    Unexpected exception.
    [http-download.opensuse.org-f76cf933|http://download.opensuse.org/tumbleweed/rep
    o/oss/] Can't delete '/etc/zypp/repos.d/http-download.opensuse.org-f76cf933.repo
    '                                                                               
    Please file a bug report about this.
    See http://en.opensuse.org/Zypper/Troubleshooting for instructions.
    A note on how to best show computer information of the forums.

    Please, include the command with your copy/paste. Now we have only the output and not the command, The only thing we have about the command is the vague "I attempted to remove the repo through the command line". Just one line more in the copy/paste and we see exactly what command you used.

    An example to make clear what I mean:
    Code:
    henk@boven:~> uname -a
    Linux boven 4.12.14-lp150.12.61-default #1 SMP Tue May 14 18:07:55 UTC 2019 (83c1242) x86_64 x86_64 x86_64 GNU/Linux
    henk@boven:~>
    Also, your post is full of FONT and COLOR tags. It may be that they are the result of some copy/paste, but I am not sure that you did not add them yourself. In that case, please don't.
    Henk van Velden

  9. #9

    Default Re: Accidentally installed Factory repository

    The font and color tags are entirely the result of copy/paste antics, I have no idea why anyone would add those voluntarily. My apologies, though, I'll be sure to make sure I strip the formatting after I paste going forward. I'd edit my previous post with the fixed info, but I seem to be missing the option to edit my post. As such, an updated version of my last paste:

    Code:
    linux-w5uv:/home/ri # zypper remove --repo http://download.opensuse.org/tumblewe
    ed/repo/oss/
    Too few arguments.
    At least one package name is required.
    remove (rm) [options] <capability> ...
    
    Remove packages with specified capabilities.
    A capability is NAME[.ARCH][OP<VERSION>], where OP is one
    of <, <=, =, >=, >.
    
      Command options:
    -r, --repo <alias|#|URI>    Load only the specified repository.
    -t, --type <type>           Type of package (package, patch, pattern, product).
                                Default: package.
    -n, --name                  Select packages by plain name, not by capability.
    -C, --capability            Select packages by capability.
    -u, --clean-deps            Automatically remove unneeded dependencies.
    -U, --no-clean-deps         No automatic removal of unneeded dependencies.
    -D, --dry-run               Test the removal, do not actually remove.
        --details               Show the detailed installation summary.
    -y, --no-confirm            Don't require user interaction. Alias for the
                                --non-interactive global option.
    
      Solver options:
    
        --debug-solver          Create a solver test case for debugging.
        --force-resolution      Force the solver to find a solution (even an
                                aggressive one) rather than asking.
        --no-force-resolution   Do not force the solver to find solution, let it
                                ask.
    
    linux-w5uv:/home/ri # zypper rr http://download.opensuse.org/tumbleweed/repo/oss
    /
    Unexpected exception.
    [http-download.opensuse.org-f76cf933|http://download.opensuse.org/tumbleweed/rep
    o/oss/] Can't delete '/etc/zypp/repos.d/http-download.opensuse.org-f76cf933.repo
    '                                                                                
    Please file a bug report about this.
    See http://en.opensuse.org/Zypper/Troubleshooting for instructions.
    I first tried the zypper remove --repo <URL>, but the terminal didn't seem to recognize that, so I tried the rr and that's what returned the error.

    Also, I am running all of these as root, so that's not an issue.
    Last edited by rmseeker; 20-Jun-2019 at 11:36. Reason: forgot detail

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,863

    Default Re: Accidentally installed Factory repository

    Quote Originally Posted by rmseeker View Post
    The font and color tags are entirely the result of copy/paste antics,
    Never mind, when they are the result of the copy, then leave them as they are.

    The man page
    Code:
    man zypper
    says
    removerepo (rr) [options] alias|name|#|URI...
    Thus I do not understand why you tried
    Code:
    zypper remove --repo
    To be very sure, can you just use e.g. the number, thus
    Code:
    zypper rr 8
    (please check and recheck that 8 is the correct one!).

    (BTW there are more strange things there. You have Google Chrome two times, so one can be removed. But better wait with that until you are sorted with the current problem.
    Last edited by hcvv; 20-Jun-2019 at 11:57.
    Henk van Velden

Page 1 of 4 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
  •