Could not remove a protected system package

This happened when I tried to update automatically. Tried using zypper too and failed:

Subprocess failed. Error: RPM failed: error: package krb5-1.7-6.3.1.x86_64 is not installed

What is wrong here? How do i remove a protected system package?
Thanks in advance.

You don’t, unless you want to destabilize your system on purpose.

Point now is, that you have to find out which package throws the error.

return results of


zypper lr -d

and, what “protected system package” are you trying to remove as part
of an ‘update’?


palladium

Here’s the output of zypper lr -d

#  | Alias                 | Name                  | Enabled | Refresh | Priority | Type   | URI                                                                      | Service
---+-----------------------+-----------------------+---------+---------+----------+--------+--------------------------------------------------------------------------+--------
1  | Compiz                | Compiz                | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/X11%3a/XGL/openSUSE_11.2/      |        
2  | Java                  | Java                  | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Java:/packages/openSUSE_11.2/  |        
3  | Wine                  | Wine                  | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_11.2/ |        
4  | google-chrome         | google-chrome         | No      | Yes     |   99     | rpm-md | http://dl.google.com/linux/rpm/stable/x86_64                             |        
5  | mozilla               | mozilla               | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/mozilla/openSUSE_11.2/         |        
6  | openSUSE 11.2 Mozilla | openSUSE 11.2 Mozilla | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/mozilla/openSUSE_11.2/         |        
7  | openSUSE 11.2-0       | openSUSE 11.2-0       | No      | Yes     |   99     | yast2  | cd:///                                                                   |        
8  | packman               | packman               | Yes     | Yes     |   99     | rpm-md | http://packman.jacobs-university.de/suse/11.2/                           |        
9  | repo-debug            | openSUSE-11.2-Debug   | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/debug/distribution/11.2/repo/oss/           |        
10 | repo-non-oss          | openSUSE-11.2-Non-Oss | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.2/repo/non-oss/             |        
11 | repo-oss              | openSUSE-11.2-Oss     | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.2/repo/oss/                 |        
12 | repo-source           | openSUSE-11.2-Source  | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/11.2/repo/oss/          |        
13 | repo-update           | openSUSE-11.2-Update  | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.2/                                |        

On the contrary, I’m trying to stabilize my system. And this automatic update is not working right. By the way, I’m not trying to remove any protected system package, just following the stated instruction error.

And just for the record, here’s my list of needed patches.

Repository           | Name                       | Version | Category    | Status
---------------------+----------------------------+---------+-------------+-------
openSUSE-11.2-Update | compiz-fusion-plugins-main | 1990    | security    | needed
openSUSE-11.2-Update | krb5                       | 2188    | security    | needed
openSUSE-11.2-Update | mcelog                     | 2180    | recommended | needed
openSUSE-11.2-Update | perl                       | 2185    | recommended | needed
openSUSE-11.2-Update | yast2-pam                  | 2186    | recommended | needed

Thanks for the quick reply!

Can someone help me here?
Thanks.

What do you get from

rpm -qi krb5

The output for

rpm -qi krb5

is

Name        : krb5                         Relocations: (not relocatable)
Version     : 1.7                               Vendor: openSUSE
Release     : 6.4.1                         Build Date: Thu 25 Mar 2010 01:04:07 AM MYT
Install Date: Sat 27 Mar 2010 03:24:17 PM MYT      Build Host: build21
Group       : Productivity/Networking/Security   Source RPM: krb5-1.7-6.4.1.src.rpm
Size        : 1631355                          License: MIT License (or similar)
Signature   : RSA/8, Thu 25 Mar 2010 01:04:50 AM MYT, Key ID b88b2fd43dbdc284
Packager    : http://bugs.opensuse.org
URL         : http://web.mit.edu/kerberos/www/
Summary     : MIT Kerberos5 Implementation--Libraries
Description :
Kerberos V5 is a trusted-third-party network authentication system,
which can improve your network's security by eliminating the insecure
practice of clear text passwords.



Authors:
--------
    The MIT Kerberos Team
    Sam Hartman <hartmans@mit.edu>
    Ken Raeburn <raeburn@mit.edu>
    Tom Yu <tlyu@mit.edu>
Distribution: openSUSE 11.2

What puzzles me, is why you want to remove it?

I shoud have mentioned this earlier, but my thread title “Could not remove a protected system package” is an error that pops up after I tried to do the update.

So forget the auto updater, just quit it.

Now tell me what happens if you run

zypper up

ok zypper up got this

Failed to download /repodata/repomd.xml from http://download.opensuse.org/repositories/Java:/packages/openSUSE_11.2/
Abort, retry, ignore? [a/r/i/?] (a): a
Problem retrieving files from 'Java'.
 [AbstractCommand.cc:564] Failed to establish connection, cause: Connection refused
Please see the above error message for a hint.
Warning: Disabling repository 'Java' because of the above error.
Failed to download /repodata/repomd.xml from http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_11.2/
Abort, retry, ignore? [a/r/i/?] (a): a
Problem retrieving files from 'Wine'.
 [AbstractCommand.cc:564] Failed to establish connection, cause: Connection refused
Please see the above error message for a hint.
Warning: Disabling repository 'Wine' because of the above error.
Failed to download /content from http://download.opensuse.org/debug/distribution/11.2/repo/oss/
Abort, retry, ignore? [a/r/i/?] (a): a
Problem retrieving files from 'openSUSE-11.2-Debug'.
 [AbstractCommand.cc:564] Failed to establish connection, cause: Connection refused
Please see the above error message for a hint.
Warning: Disabling repository 'openSUSE-11.2-Debug' because of the above error.
Failed to download /content from http://download.opensuse.org/distribution/11.2/repo/non-oss/
Abort, retry, ignore? [a/r/i/?] (a): a
Problem retrieving files from 'openSUSE-11.2-Non-Oss'.
 [AbstractCommand.cc:564] Failed to establish connection, cause: Connection refused
Please see the above error message for a hint.
Warning: Disabling repository 'openSUSE-11.2-Non-Oss' because of the above error.
Failed to download /content from http://download.opensuse.org/distribution/11.2/repo/oss/
Abort, retry, ignore? [a/r/i/?] (a): a
Problem retrieving files from 'openSUSE-11.2-Oss'.
 [AbstractCommand.cc:564] Failed to establish connection, cause: Connection refused
Please see the above error message for a hint.
Warning: Disabling repository 'openSUSE-11.2-Oss' because of the above error.
Failed to download /repodata/repomd.xml from http://download.opensuse.org/update/11.2/
Abort, retry, ignore? [a/r/i/?] (a): a
Problem retrieving files from 'openSUSE-11.2-Update'.
 [AbstractCommand.cc:564] Failed to establish connection, cause: Connection refused
Please see the above error message for a hint.
Warning: Disabling repository 'openSUSE-11.2-Update' because of the above error.
Loading repository data...
Reading installed packages...

Nothing to do.



Never got this before though. What should I do?

I would delete ALL your repos
Add back only Oss, Non-Oss, Update, Packman

Then try zypper up again

It works fine now. Thanks!

Ok another question.
I ran

zypper ve

and this shows

Loading repository data...
Reading installed packages...

The following NEW packages are going to be installed:
  clucene-core dhcpcd hal-palm klogd libcdio10 libdns_sd libgnomeprintui 
  libgnutls26-32bit libgpgme11 libid3tag liblua5_1 libpixman-1-0-32bit librsvg 
  libsilc-1_1-2 libsmbclient0 libsoup-devel liburiparser1 libusb-1_0-0-32bit 
  Mesa-devel NetworkManager-vpnc pam-modules pstoedit sane-backends 
  silc-toolkit tcpd-32bit vpnc xdg-user-dirs xdg-utils xterm yast2-sysconfig 
  yast2-trans-stats yast2-xml 

The following packages are going to be REMOVED:
  vlc vlc-aout-pulse 

32 new packages to install, 2 to remove.
Overall download size: 9.2 MiB. After the operation, additional 29.3 MiB will 
be used.
Some of the dependencies of installed packages are broken. In order to fix these dependencies, the following actions need to be taken:
Continue? [y/n/?] (y): y
Removing vlc-aout-pulse-1.0.5-1.pm.3.19 [error]
Removal of (28424)vlc-aout-pulse-1.0.5-1.pm.3.19.x86_64(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: package vlc-aout-pulse-1.0.5-1.pm.3.19.x86_64 is not installed


Abort, retry, ignore? [a/r/i] (a): a
Problem occured during or after installation or removal of packages:
Installation aborted by user

How do I solve this?

Please try:

zypper dup

Nothing seems to be wrong. Thanks!

No worries. That’s good:)

Ok after zypper dup, I tried

zypper ve

again bcoz some of the random softwares such as pidgin and desktop effects couldn’t even start. And this happens,

Loading repository data...
Reading installed packages...

Problem: nothing provides libsoftokn3-32bit needed by mozilla-nss-32bit-3.12.6-3.1.x86_64
 Solution 1: deinstallation of mozilla-nss-32bit-3.12.6-3.1.x86_64
 Solution 2: break mozilla-nss-32bit by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): 1
Resolving dependencies...

The following NEW packages are going to be installed:
  clucene-core dhcpcd eject freeglut gstreamer-0_10 gstreamer-0_10-plugins-base hal-palm klogd libcdio10 libdns_sd libfarsight2_0 libfuse2 libgnomeprintui 
  libgnutls26-32bit libgpgme11 libid3tag liblua5_1 libpixman-1-0-32bit libpoppler-glib4 librsvg libselinux1 libsilc-1_1-2 libsmbclient0 libsoup-devel libtheora-devel 
  liburiparser1 libusb-1_0-0-32bit libvorbis-devel Mesa-devel mingetty NetworkManager-vpnc pam-modules pstoedit sane-backends silc-toolkit tcpd-32bit vpnc xdg-utils 
  xorg-x11-xauth yast2-sysconfig yast2-trans-stats yast2-xml 

The following packages are going to be REMOVED:
  mozilla-nss-32bit vlc vlc-aout-pulse 

42 new packages to install, 3 to remove.
Overall download size: 9.8 MiB. After the operation, additional 32.3 MiB will be used.
Some of the dependencies of installed packages are broken. In order to fix these dependencies, the following actions need to be taken:
Continue? [y/n/?] (y): y
Removing mozilla-nss-32bit-3.12.6-3.1 [error]
Removal of (29820)mozilla-nss-32bit-3.12.6-3.1.x86_64(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: package mozilla-nss-32bit-3.12.6-3.1.x86_64 is not installed


Abort, retry, ignore? [a/r/i] (a): i
Removing vlc-aout-pulse-1.0.5-1.pm.3.19 [error]
Removal of (28424)vlc-aout-pulse-1.0.5-1.pm.3.19.x86_64(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: package vlc-aout-pulse-1.0.5-1.pm.3.19.x86_64 is not installed


Abort, retry, ignore? [a/r/i] (a): i
Removing vlc-1.0.5-1.pm.3.19 [error]
Removal of (28555)vlc-1.0.5-1.pm.3.19.x86_64(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: package vlc-1.0.5-1.pm.3.19.x86_64 is not installed

It seems that im having stability problem. What should I do?
How is this possible?

Post result of

rpm -qa | grep vlc

and

uname -a

Looks like your rpm-database is dizzy. Try this command to rebuild it:

rpm --rebuilddb

…then check whether ‘zypper ve’ is still complaining.