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:

https://i.ibb.co/3FXzVY9/error.png

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/showthread.php/535681-Leap-15-system-broken-by-one-click-install 24 April
https://forums.opensuse.org/showthread.php/536096-Applied-recommended-updates-Now-can-only-reboot-into-command-line-mode 24 May
https://forums.opensuse.org/showthread.php/536162-2090-updates-Leap-15-0 28 May
https://forums.opensuse.org/showthread.php/536301-Tumbleweed-stuck-on-boot-after-upgrading-to-Linux-5-1-7-1 7 June
https://forums.opensuse.org/showthread.php/536343-new-to-openSuse-former-corporate-systems-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

sudo zypper lr -d

for more directed assistance.

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.

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

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

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

zypper remove --repo <ALIAS|#|URI>   

can only be done “as root”.

Thus many will say

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”.

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

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:

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:

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?

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:

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.

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:

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.

Never mind, when they are the result of the copy, then leave them as they are.

The man page

man zypper

says

removerepo (rr) [options] alias|name|#|URI…

Thus I do not understand why you tried

zypper remove --repo

To be very sure, can you just use e.g. the number, thus

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.

‘sudo zypper rr 8’ returns the exact same error as ‘sudo zypper rr <URL>’, the unexpected exception. No change, I’m afraid.

Please, please, please, do not tell those stories, copy/paste including the line with the prompt and command, up to and including the new prompt line between CODE tags in your post. Then we can exactly see what you saw.

I don’t use btrfs/snapper so can’t answer that, but it would help if another forum member could.

does look as if “'/etc/zypp/repos.d/” may be read-only

does this work?

sudo touch /etc/zypp/repos.d/test-write.txt
ri@linux-w5uv:~> sudo zypper rr 8
sudo: unable to open /var/lib/sudo/ts/ri: Read-only file system
[sudo] password for root: 
Unexpected exception.
[http-download.opensuse.org-f76cf933|http://download.opensuse.org/tumbleweed/repo/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.
ri@linux-w5uv:~> 

tannington–tried that line and it looks like it totally is read-only. I guess I should start digging into btrfs/snapper information, then, huh?

ri@linux-w5uv:~> sudo touch /etc/zypp/repos.d/test-write.txt
sudo: unable to open /var/lib/sudo/ts/ri: Read-only file system
[sudo] password for root: 
touch: cannot touch '/etc/zypp/repos.d/test-write.txt': Read-only file system
ri@linux-w5uv:~> 

[QUOTE=rmseeker;2906588tannington–tried that line and it looks like it totally is read-only. I guess I should start digging into btrfs/snapper information, then, huh?[/QUOTE]

Probably…

…as I wrote I’m not familiar with btrfs/snapper as I don’t use it, so can’t advise any further.

I also do not use Btrfs and thus am on foreign soil.
A few things I would check.

The talking is about a read-only file system. Thus check

mount

to see if there is/are indeed read-only file sysem(s) and when yes, which one(s).

The talking is alread about sudo, thus before zypper is even started. You could use

su -

instead. OTOH, the sudo message may only be a warning, because it asks and apparently validates your root password. But you could give it a try.

In post #3 @nrickert suggested that @rmseeker may have booted into a read-only snapshot, in which case (I assume) the “error” messages are probably “correct”.

Yes, quite possible (however you can tell me anything about about Btrfs snapshots and I will believe you ;)).

I realy hope that somebody with Btrfs knowledge will tune in and help the OP in providing the information needed to sort out his Btrfs.

Fresh Install Daily ISO BTRF Entire Disk 2019621-KDE-TW

How do we enable Factory Repo? Their website does not give a hint and how a Leap user ends there?

There was no update after the fresh install. Repo #8 does not exist, 7 only.

[FONT=monospace]sudo zypper rr 8
Removing repository 'openSUSE-Tumbleweed-Update' ........................................................................................................................................................................................................................[done]
Repository 'openSUSE-Tumbleweed-Update' has been removed.

[/FONT]

[FONT=monospace]No reading:[/FONT]

sudo touch /etc/zypp/repos.d/test-write.txt


su -
mount


[FONT=monospace]sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=3881220k,nr_inodes=970305,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
/dev/sda2 on / type btrfs (rw,relatime,ssd,space_cache,subvolid=268,subvol=/@/.snapshots/1/snapshot)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=15105)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
/dev/sda2 on /root type btrfs (rw,relatime,ssd,space_cache,subvolid=262,subvol=/@/root)
/dev/sda2 on /.snapshots type btrfs (rw,relatime,ssd,space_cache,subvolid=267,subvol=/@/.snapshots)
/dev/sda2 on /var type btrfs (rw,relatime,ssd,space_cache,subvolid=258,subvol=/@/var)
/dev/sda2 on /home type btrfs (rw,relatime,ssd,space_cache,subvolid=264,subvol=/@/home)
/dev/sda2 on /srv type btrfs (rw,relatime,ssd,space_cache,subvolid=261,subvol=/@/srv)
/dev/sda2 on /usr/local type btrfs (rw,relatime,ssd,space_cache,subvolid=259,subvol=/@/usr/local)
/dev/sda2 on /tmp type btrfs (rw,relatime,ssd,space_cache,subvolid=260,subvol=/@/tmp)
/dev/sda2 on /opt type btrfs (rw,relatime,ssd,space_cache,subvolid=263,subvol=/@/opt)
/dev/sda2 on /boot/grub2/i386-pc type btrfs (rw,relatime,ssd,space_cache,subvolid=266,subvol=/@/boot/grub2/i386-pc)
/dev/sda2 on /boot/grub2/x86_64-efi type btrfs (rw,relatime,ssd,space_cache,subvolid=265,subvol=/@/boot/grub2/x86_64-efi)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=780228k,mode=700,uid=1000,gid=100)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)[/FONT]

[FONT=monospace]rpm -qa | grep -i kernel
**kernel**-default-5.2.rc5-3.1.ga562f5a.x86_64
**kernel**-macros-5.2.rc5-3.1.ga562f5a.noarch
**kernel**-default-devel-5.2.rc5-3.1.ga562f5a.x86_64
**kernel**-syms-5.2.rc5-3.1.ga562f5a.x86_64
**kernel**-firmware-20190618-265.1.noarch
**kernel**-devel-5.2.rc5-3.1.ga562f5a.noarch
**kernel**-source-5.2.rc5-3.1.ga562f5a.noarch
patterns-devel-base-devel_**kernel**-20170319-8.4.x86_64
**kernel**-default-5.1.14-1.1.gf291042.x86_64
[/FONT]

Before there was Tumbleweed, there was Factory. Factory as a distribution had its name changed to Tumbleweed some years back. Some people still consider the two names equivalent. For certain situations, they are in a way. When someone gets Factory enabled by accident, it literally could be Factory rather than Tumbleweed that was accidentally enabled, as Factory is where Tumbleweed comes from - after it goes through QA. If you have a fresh TW installation, there’s no reason to seek any of the many repos that comprise Factory, unless you have a very specific need related to breakage in process of fixing, or very new hardware.