Bug ID | 1203327 |
---|---|
Summary | zypper as -f $URI openSUSE - specified path is not a directory |
Classification | openSUSE |
Product | openSUSE Distribution |
Version | Leap 15.4 |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | libzypp |
Assignee | zypp-maintainers@suse.de |
Reporter | lubos.kocman@suse.com |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
Hello I was experimeting with "zypper as" (add service) as part of https://code.opensuse.org/leap/features/issue/91 The initial experiment with a short service definition from ma@ worked. <repoindex ttl="0" disturl="https://download.opensuse.org" distsub="leap/" distver="${releasever}" debugenable="false" sourceenable="false"> <repo url="%{disturl}/distribution/%{distsub}%{distver}/repo/oss" alias="repo-oss" name="%{alias} (%{distver})" enabled="true" autorefresh="true"/> <repo url="%{disturl}/distribution/%{distsub}%{distver}/repo/non-oss" alias="repo-non-oss" name="%{alias} (%{distver})" enabled="true" autorefresh="true"/> <repo url="%{disturl}/update/%{distsub}%{distver}/oss" alias="update-oss" name="%{alias} (%{distver})" enabled="true" autorefresh="true"/> <repoindex/> However since I've altered the repoindex.xml by adding remaining repos (then tried to refresh, later remove/re-add) I was never able to get it working again. The error that I'm getting as part of zypper ref -s (force service refresh is) lkocman@lkocman:/etc/zypp/repos.d> sudo zypper rs openSUSE Removing service 'openSUSE': lkocman@lkocman:/etc/zypp/repos.d> sudo zypper as -f /Local/Service/repo/repoindex.xml openSUSE Setting new service openSUSEindeterminate true Service 'openSUSE' has been successfully added. lkocman@lkocman:/etc/zypp/repos.d> sudo zypper ref Repository 'AMDGPU 22.20 repository' is up to date. Repository 'Ruby base project (15.4)' is up to date. Retrieving repository 'Ruby Extensions (15.4)' metadata ................................................................................................[done] Building repository 'Ruby Extensions (15.4)' cache .....................................................................................................[done] Repository 'google-chrome' is up to date. Repository 'Branch project for package patterns-microos (15.4)' is up to date. Repository 'ROCm 5.2 repository' is up to date. Repository 'Software for Scientists and Engineers (15.4)' is up to date. All repositories have been refreshed. lkocman@lkocman:/etc/zypp/repos.d> sudo zypper ref -s Refreshing service 'leap'. Specified path '/Local/Service/repo/repoindex.xml' is not a directory: dir:/Local/Service/repo/repoindex.xml (content of file is attached) lkocman@lkocman:/etc/zypp/repos.d> ls -la /Local/Service/repo total 8 drwxr-xr-x 1 root root 26 Sep 11 22:37 . drwxr-xr-x 1 root root 8 Sep 11 16:08 .. -rw-r--r-- 1 root root 2658 Sep 11 22:37 repoindex.xml