Problems with installing packages with zypper

Hi, I’m using openSUSE 11.4 KDE , once I used GNOME, now I’m a little bored with it :slight_smile: … It’s a great release and interesting environment … I am having this problem now:

linux-k6mm:/home/david # zypper in decibel
Refreshing service 'Packman'.
Unexpected exception.
Parse error: repoindex.xml[1] Document is empty
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions
linux-k6mm:/home/david# zypper se decibel
Refreshing service 'Packman'.
Unexpected exception.
Parse error: repoindex.xml[1] Document is empty
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions

So… I removed old Packman repo and even installed new one. I can Install programs through Yast, but can’t do almost anything with zypper. PLease help!

Show me what you get from

zypper ref

linux-k6mm:/home/david # zypper ref 
Repository 'Packman' is up to date.
Repository 'openSUSE-11.4-Non-Oss' is up to date.
Repository 'openSUSE-11.4-Oss' is up to date.
Repository 'openSUSE-11.4-Update' is up to date.
All repositories have been refreshed.

That is new - working Packman.

try

zypper in decibel-audio-player

Same problem again. There is no matter what I type in… it’s always the same output.

Switch to this packman url
Index of /suse/openSUSE_11.4

Try
zypper clean
zypper ref
zypper in “name of the package”

Jacob-University is my new packman repo, and no matter if there is or there is not some packman repo, error output is same. Clean command doesn’t help either.

could you please give me output of:
zypper ls -d

linux-k6mm:/home/david # zypper ls -d 
# | Alias             | Name                       | Enabled | Refresh | Priority | Type   | URI                                                            
--+-------------------+----------------------------+---------+---------+----------+--------+----------------------------------------------------------------
1 | service           | Packman                    | Yes     | Yes     |          | ris    | http://packman.inode.at/suse/11.4/packman.repo                 
2 | Packman           | Packman                    | Yes     | Yes     |   99     | rpm-md | http://packman.jacobs-university.de/suse/11.4/                 
3 | repo-debug        | openSUSE-11.4-Debug        | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/11.4/repo/oss/ 
4 | repo-debug-update | openSUSE-11.4-Update-Debug | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/11.4/                
5 | repo-non-oss      | openSUSE-11.4-Non-Oss      | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/   
6 | repo-oss          | openSUSE-11.4-Oss          | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss/       
7 | repo-source       | openSUSE-11.4-Source       | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/11.4/repo/oss/
8 | repo-update       | openSUSE-11.4-Update       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.4/                   

Yes… the first one gives me trouble…

1 | service | Packman | Yes | Yes | | ris | http://packman.inode.at/suse/11.4/packman.repo

but it’s listed only here … hm. When I type zypper rr service it says:

linux-k6mm:/home/david # zypper rr service
Repository 'service' not found by alias, number or URI.

We are close to solution :slight_smile:

ok…let’s see content of a repos.d:
ll /etc/zypp/repos.d/

zypper rr 1

Hm… zypper rr 1 deleted working Jacob-University Packman repo , not this ghost service ********

linux-k6mm:/home/david # zypper ls -d 
# | Alias             | Name                       | Enabled | Refresh | Priority | Type   | URI                                                            
--+-------------------+----------------------------+---------+---------+----------+--------+----------------------------------------------------------------
1 | service           | Packman                    | Yes     | Yes     |          | ris    | http://packman.inode.at/suse/11.4/packman.repo                 
2 | repo-debug        | openSUSE-11.4-Debug        | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/11.4/repo/oss/ 
3 | repo-debug-update | openSUSE-11.4-Update-Debug | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/11.4/                
4 | repo-non-oss      | openSUSE-11.4-Non-Oss      | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/   
5 | repo-oss          | openSUSE-11.4-Oss          | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss/       
6 | repo-source       | openSUSE-11.4-Source       | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/11.4/repo/oss/
7 | repo-update       | openSUSE-11.4-Update       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.4/ 

Than, the output of ll /etc/zypp/repos.d/ is:

linux-k6mm:/home/david # ll /etc/zypp/repos.d/ 
total 36
-rw-r--r-- 1 root root   165 Mar 25 11:06 repo-debug.repo
-rw-r--r-- 1 root root   164 Mar 25 11:06 repo-debug-update.repo
-rw-r--r-- 1 root root   161 Mar 25 11:06 repo-non-oss.repo
-rw-r--r-- 1 root root   149 Mar 25 11:06 repo-oss.repo
-rw-r--r-- 1 root root   168 Mar 25 11:06 repo-source.repo
-rw-r--r-- 1 root root   141 Mar 25 11:06 repo-update.repo
-rw------- 1 root root 12288 Mar 26 09:15 .swp

I don’t know what .swp is.
… and the error continues.

.swp looks like a temporary file from vi or something. Try moving it away (eg. move it to /tmp) and see if that fixes it.

Try again

zypper rr 1

And that repo ‘service’ was #1 before

Or use Yast > Software > Repos

I had this problem as well… doing zypper ls -d gets you a list of services. Then you have to use zypper rs ‘alias’ (eg. service) to remove the entry.

On 2011-03-25 12:36, Growlboy wrote:
> linux-k6mm:/home/david # zypper ref

You are using “su”. You must use “su -”.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 2011-03-25 11:36, Growlboy wrote:
> Parse error: repoindex.xml[1] Document is empty
> Please file a bug report about this.

Did you?


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)