Bug 1185254

Summary: Error While Trying to Download VSCodium
Product: [openSUSE] openSUSE Distribution Reporter: Travis Engh <cmxretro>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: Andreas.Stieger, cmxretro
Version: Leap 15.2   
Target Milestone: ---   
Hardware: 64bit   
OS: openSUSE Leap 15.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Travis Engh 2021-04-24 01:46:17 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36
Build Identifier: 

I received this error after trying to download VSCodium:

Unexpected exception.
Invalid path name component '/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg[gitlab.com_paulcarroty_vscodium_repo]'
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions.


If I try to do any online updates, try to download it again, or if I go into software management or software repositories in YaST I receive this error:

Errors occurred while restoring the repository configuration.
Invalid path name component '/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg[gitlab.com_paulcarroty_vscodium_repo]'

Reproducible: Always

Steps to Reproduce:
1.enter sudo zypper install codium in Konsole
2.Click Online Update, Software Management, or Software Repositories in YaST
3.
Actual Results:  
Exactly what I described in the details section

Expected Results:  
An installation or for the programs to run normally without the error messages
Comment 1 Andreas Stieger 2021-04-24 04:46:53 UTC
(In reply to Travis Engh from comment #0)
> Steps to Reproduce:
> 1.enter sudo zypper install codium

Incomplete. Please give the repository used.
Comment 2 Travis Engh 2021-04-24 18:14:54 UTC
This is the website I went to: https://vscodium.com/

Below is how I tried to install it:

1st: sudo rpm --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg

2nd is the repository I tried to use: printf "[gitlab.com_paulcarroty_vscodium_repo]\nname=gitlab.com_paulcarroty_vscodium_repo\nbaseurl=https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg" |sudo tee -a /etc/zypp/repos.d/vscodium.repo

3rd: sudo zypper in codium
Comment 3 Andreas Stieger 2021-04-24 18:28:35 UTC
(In reply to Travis Engh from comment #2)
> [...] |sudo tee -a /etc/zypp/repos.d/vscodium.repo

Note that -a appends. So the file is probably broken. Remove it, run the command once and try again.

Alternatively edit it to have the following content exactly:

[gitlab.com_paulcarroty_vscodium_repo]
name=gitlab.com_paulcarroty_vscodium_repo
baseurl=https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/rpms/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg
metadata_expire=1h
Comment 4 Michael Andres 2021-04-26 10:16:16 UTC
Obviously a misspelled .repo file. Closing it.