zypper not installing a package that is available in zypper se query

polrus:/home/polrus # zypper se apcu
Loading repository data...
Reading installed packages...

S | Name                       | Summary                                               | Type      
--+----------------------------+-------------------------------------------------------+-----------
  | apcupsd                    | APC UPS Daemon (Powerful Daemon for APC UPSs)         | package   
  | apcupsd                    | APC UPS Daemon (Powerful Daemon for APC UPSs)         | srcpackage
  | apcupsd-cgi                | Web interface for apcupsd                             | package   
  | apcupsd-gui                | APC UPS Monitor GUI (for APC UPSs)                    | package   
  | check_mk-agent-apcupsd     | Check_mk plugin for monitoring UPS managed by apcupsd | package   
  | check_mk-apcupsd           | Check_mk plugin monitoring UPS managed by apcupsd     | package   
  | check_mk-apcupsd           | Check_mk plugin monitoring UPS managed by apcupsd     | srcpackage
  | monitoring-plugins-apcupsd | Monitor APC Smart-UPSes using apcupsd                 | package   
  | monitoring-plugins-apcupsd | Monitor APC Smart-UPSes using apcupsd                 | srcpackage
  | **php5-apcu**                  | Userland caching for PHP                              | srcpackage


polrus:/home/polrus # zypper in php5-apcu
Loading repository data...
Reading installed packages...
**Package 'php5-apcu' not found.**
Resolving package dependencies...

Nothing to do.

How can i install this package? Yast does not show it at all.

Hi
It’s only seeing the src package not the x86_64 package… maybe your repos need forced refreshing;


zypper ref -f

It maybe the mirror your being directed to doesn’t have the file, which repo is it coming from?


zypper lr -d

As you can see in your list, the package php5-apcu is only found by the se function as scrpackage (source package).

When you want to intall a source package, you have to tell zypper, because by default it tries to install packages of type package (ordinary RPM package).
Thus you have to add

-t srcpackage

to your zypper command.

Thx for Your help guys, I totally overlooked that my machine is an old 32bit and most leap repos have only 64bit binaries.
I also confused this server with the other - I have 13.2 not leap on this particular one :slight_smile:

leap only come in 64 bit 32 bit has been dropped. tumbleweed is still available in32 bit