zypper: error in a repo even if this repo doesn't exist!

When I try to do something with zypper, I always get this message:


linux-0e2i:~ # zypper dup
Warning: You are about to do a distribution upgrade with all enabled  repositories. Make sure these repositories are compatible before you  continue. See 'man zypper' for more information about this command.
Refreshing service 'packman-multimedia'.
Unexpected exception.
Parse error: repoindex.xml[3] Opening and ending tag mismatch: meta line 2 and noscript
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions.

More info:

linux-0e2i:~ # zypper lr -u
#  | Alias              | Name               | Enabled | Refresh | URI                                                                                       
---+--------------------+--------------------+---------+---------+------------------------------------------------------------------------------------       
 1 | DVD 11.4           | DVD 11.4           | No      | No      | dvd:///                                                                                   
 2 | KDE_4.7            | KDE 4.7            | Yes     | Yes     | http://download.opensuse.org/repositories/KDE%3a/Release%3a/47/openSUSE_11.4              
 3 | KDE_4.7_Extra      | KDE 4.7 Extra      | Yes     | Yes     | http://download.opensuse.org/repositories/KDE%3a/Extra/KDE_Release_47_openSUSE_11.4       
 4 | Local ISO 11.4     | ISO                | Yes     | No      | iso:///?iso=openSUSE-11.4-DVD-x86_64.iso&url=file:///                                     
 5 | Updates            | Updates            | Yes     | Yes     | http://download.opensuse.org/update/11.4/                                                 
 6 | libdvdcss          | libdvdcss          | Yes     | Yes     | http://opensuse-guide.org/repo/11.4/                                                      
 7 | non-oss            | Non-Oss            | Yes     | Yes     | http://download.opensuse.org/distribution/11.4/repo/non-oss/                              
 8 | oss                | Oss                | Yes     | Yes     | http://download.opensuse.org/distribution/11.4/repo/oss/                                  
 9 | packman            | packman            | Yes     | Yes     | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_11.4                              
10 | packman-essentials | packman-essentials | Yes     | Yes     | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_11.4/Essentials                   
11 | packman-multimedia | packman-multimedia | Yes     | Yes     | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_11.4/Multimedia/

linux-0e2i:~ # zypper refresh
Repository 'KDE 4.7' is up to date.
Repository 'KDE 4.7 Extra' is up to date.
Repository 'ISO' is up to date.
Repository 'Updates' is up to date.
Repository 'libdvdcss' is up to date.
Repository 'Non-Oss' is up to date.
Repository 'Oss' is up to date.
Repository 'packman' is up to date.
Repository 'packman-essentials' is up to date.
Repository 'packman-multimedia' is up to date.
All repositories have been refreshed.

But even if I remove the packman multimedia repo, the error persists


linux-0e2i:~ # zypper rr 11
Removing repository 'packman-multimedia' [done]
Repository 'packman-multimedia' has been removed.
linux-0e2i:~ # zypper lr -u
#  | Alias              | Name               | Enabled | Refresh | URI                                                                                
---+--------------------+--------------------+---------+---------+------------------------------------------------------------------------------------
 1 | DVD 11.4           | DVD 11.4           | No      | No      | dvd:///                                                                            
 2 | KDE_4.7            | KDE 4.7            | Yes     | Yes     | http://download.opensuse.org/repositories/KDE%3a/Release%3a/47/openSUSE_11.4       
 3 | KDE_4.7_Extra      | KDE 4.7 Extra      | Yes     | Yes     | http://download.opensuse.org/repositories/KDE%3a/Extra/KDE_Release_47_openSUSE_11.4
 4 | Local ISO 11.4     | ISO                | Yes     | No      | iso:///?iso=openSUSE-11.4-DVD-x86_64.iso&url=file:///                              
 5 | Updates            | Updates            | Yes     | Yes     | http://download.opensuse.org/update/11.4/                                          
 6 | libdvdcss          | libdvdcss          | Yes     | Yes     | http://opensuse-guide.org/repo/11.4/                                               
 7 | non-oss            | Non-Oss            | Yes     | Yes     | http://download.opensuse.org/distribution/11.4/repo/non-oss/                       
 8 | oss                | Oss                | Yes     | Yes     | http://download.opensuse.org/distribution/11.4/repo/oss/                           
 9 | packman            | packman            | Yes     | Yes     | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_11.4                       
10 | packman-essentials | packman-essentials | Yes     | Yes     | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_11.4/Essentials
linux-0e2i:~ # zypper dup
Warning: You are about to do a distribution upgrade with all enabled  repositories. Make sure these repositories are compatible before you  continue. See 'man zypper' for more information about this command.
Refreshing service 'packman-multimedia'.
Unexpected exception.
Parse error: repoindex.xml[3] Opening and ending tag mismatch: meta line 2 and noscript
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions.

Any idea about how to resolve this?

On 2011-11-08 16:16, wrbbt wrote:
> Any idea about how to resolve this?

You have services installed, which are different from repos. Check it.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Try

zypper clean --all

and

rpmdb --rebuilddb

Just a stab in the dark

Thanks for the quick reply.
As you can see the issue remains unsolved.

linux-0e2i:~ # zypper clean --all
All repositories have been cleaned up.
linux-0e2i:~ # rpmdb --rebuilddb
linux-0e2i:~ # zypper dup                                                                         
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Refreshing service 'packman-multimedia'.                                                          
Unexpected exception.                                                                             
Parse error: repoindex.xml[3] Opening and ending tag mismatch: meta line 2 and noscript           
Please file a bug report about this.                                                              
See http://en.opensuse.org/Zypper/Troubleshooting for instructions.

Is there any way of deleting the whole information about the repos and starting again from scratch?

I’d try deleting every repo and add only the ones you need for the ‘dup’

Before doing this, I tried what Carlos wrote in post #2, even if at the beginning I didn’t know how to do it.
I found in /etc/zypp/services.d a file called service.service whose content was related with the multimedia repo. I removed it, and that did the trick. Now zypper dup works normally.
Thanks again to both of you.

Anyway, I don’t know how that service was created…

Nice advice Carlos

On 2011-11-08 17:56, wrbbt wrote:
>
> caf4926;2401691 Wrote:
>> I’d try deleting every repo and add only the ones you need for the ‘dup’
> Before doing this, I tried what Carlos wrote in post #2, even if at the
> beginning I didn’t know how to do it.

It was obvious: zypper was complaining about errors when “Refreshing
service ‘packman-multimedia’.” Service, not repo.

> I found in /etc/zypp/services.d a file called service.service whose
> content was related with the multimedia repo. I removed it, and that did
> the trick. Now zypper dup works normally.
> Thanks again to both of you.
>
You did it the complex way. You only needed to request zypper help, read
it, and see that there are a few commands for services:


Service Management:
services, ls            List all defined services.
addservice, as          Add a new service.
modifyservice, ms       Modify specified service.
removeservice, rs       Remove specified service.
refresh-services, refs  Refresh all services.

Then a zypper ls followed by zypper rs would have done the trick.

> Anyway, I don’t know how that service was created…

We all have services about the same as repos.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Thanks again, Carlos.
You always learn something when you have a problem. Now, what you say about services.