Bug 20826 - libnet-oauth2-authorizationserver-perl not installable on 32bit systems
Summary: libnet-oauth2-authorizationserver-perl not installable on 32bit systems
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Packaging (show other bugs)
Version: Main
Hardware: PC Linux
: P5 - low major (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
: 25981 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-05-27 21:34 UTC by Michael Rushizha
Modified: 2023-09-16 13:55 UTC (History)
11 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rushizha 2018-05-27 21:34:14 UTC
I am new to both Linux and Koha. I have been trying to install Koha on a new installation of Ubuntu Linux 16.04.4 LTS Desktop 32-bit. I ran the following preparation commands without any problem:

    sudo apt-get update
    sudo apt-get upgrade
    sudo echo deb http://debian.koha-community.org/koha stable main | sudo tee /etc/apt/sources.list.d/koha.list
    sudo wget -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add -
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get clean

I ran the install command and I never got passed it:

    sudo apt-get install koha-common

All I am getting is the following:

    diasha@DIASHA-UBUNTU:~$ sudo apt-get install koha-common
    [sudo] password for diasha: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    koha-common : Depends: libnet-oauth2-authorizationserver-perl but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

I have Googled this and and I also did a clean re-installation of Ubuntu and tried to install Koha to no avail.

I am looking forward to your response.

Regards,

Michael
Comment 1 Katrin Fischer 2018-05-28 06:07:14 UTC
Hi Michael, bugzilla is used to report bugs and enhancement requests, I think your question might be more related to setup/installation. Can you please ask on the mailing list instead? A lot more people will read it there and will hopefully be able to help you.
Comment 2 Mirko Tietgen 2018-05-28 08:32:55 UTC
The file is in the Koha community repository and should be pulled automatically during installation. Could you please give the output of

apt-cache policy libnet-oauth2-authorizationserver-perl
Comment 3 Jonathan Druart 2018-05-30 14:58:02 UTC
Lowering severity as it's not confirmed.
Comment 4 sowen 2018-06-15 14:31:54 UTC
as per Jonathan Druart <jonathan.druart@bugs.koha-community.org>


Please comment with your info on https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20826


root@Pine:~# sudo apt-get install koha-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 koha-common : Depends: libnet-oauth2-authorizationserver-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@Pine:~#


current server:

Server information
Koha version:	17.05.05.000
OS version ('uname -a'):	Linux Pine 3.16.0-4-686-pae #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19) i686
Perl interpreter:	/usr/bin/perl
Perl version:	5.020002
Perl @INC:	/usr/share/koha/lib 
/etc/perl 
/usr/local/lib/i386-linux-gnu/perl/5.20.2 
/usr/local/share/perl/5.20.2 
/usr/lib/i386-linux-gnu/perl5/5.20 
/usr/share/perl5 
/usr/lib/i386-linux-gnu/perl/5.20 
/usr/share/perl/5.20 
/usr/local/lib/site_perl 
. 
MySQL version:	mysql Ver 14.14 Distrib 5.5.60, for debian-linux-gnu (i686) using readline 6.3
Apache version:	Server version: Apache/2.4.10 (Debian)
Memcached:	Servers: undefined | Namespace: koha | Status: unknown | Config read from: Nowhere Note that the right place to define the memcached config is in your $KOHA_CONF file. Currently you do not have a valid memcached configuration defined. | Effective caching method: Cache::Memory
Zebra version:	Zebra 2.0.59 (C) 1994-2014, Index Data Zebra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. SHA1 ID: c00bfddbf0f3608340d61298acc61dafb167f9b2 Using ICU
Comment 5 Mirko Tietgen 2018-06-15 14:41:48 UTC
1. What version of Debian are you running?

2. Could you please give the output of

apt-cache policy libnet-oauth2-authorizationserver-perl
Comment 6 sowen 2018-06-15 14:48:44 UTC
Distributor ID: Debian
Description:    Debian GNU/Linux 8.10 (jessie)
Release:        8.10
Codename:       jessie


output:

root@Pine:~# apt-cache policy libnet-oauth2-authorizationserver-perl
N: Unable to locate package libnet-oauth2-authorizationserver-perl
root@Pine:~#
Comment 7 Mirko Tietgen 2018-06-15 15:01:53 UTC
What does your /etc/apt/sources.list* look like?
Comment 8 sowen 2018-06-15 17:29:21 UTC
/etc/apt/sources.list



# 

# deb cdrom:[Debian GNU/Linux 8.1.0 _Jessie_ - Official i386 NETINST Binary-1 20150606-12:58]/ jessie main

#deb cdrom:[Debian GNU/Linux 8.1.0 _Jessie_ - Official i386 NETINST Binary-1 20150606-12:58]/ jessie main

deb http://ftp.us.debian.org/debian/ jessie main
deb-src http://ftp.us.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ jessie-updates main
deb-src http://ftp.us.debian.org/debian/ jessie-updates main
Comment 9 Jonathan Druart 2018-07-23 17:55:00 UTC
(In reply to sowen from comment #8)
> /etc/apt/sources.list

Mirko was asking for /etc/apt/sources.list.d/*koha*.list
Comment 10 Narcis Garcia 2018-07-24 13:29:49 UTC
[[Current: Koha 17.11.06-1 on Debian 9]]

$ cat /etc/apt/sources.list.d/koha.list
deb http://debian.koha-community.org/koha stable main

$ apt update
$ apt-cache show koha-common | grep -ie version
Version: 18.05.01-2
Version: 17.11.06-1

$ apt full-upgrade
The following packages were automatically installed and are no longer
required:
[[400 packages listed]]
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  koha-common libhttp-oai-perl
The following NEW packages will be installed:
  libnet-libidn-perl libsub-quote-perl
The following packages will be upgraded:
apache2 [[...]]
44 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
Need to get 43.1 MB of archives.
After this operation, 461 MB disk space will be freed.
Do you want to continue? [Y/n] n

$ apt install koha-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 koha-common : Depends: libnet-oauth2-authorizationserver-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Comment 11 Narcis Garcia 2018-07-24 14:38:26 UTC
[[Current: Koha 17.11.06-1 on Debian 9]]

$ apt-cache policy libnet-oauth2-authorizationserver-perl
libnet-oauth2-authorizationserver-perl:
  Installed: (none)
  Candidate: 0.17-1~koha+1
  Version table:
     0.17-1~koha+1 500
        500 http://debian.koha-community.org/koha stable/main i386 Packages
Comment 13 Mirko Tietgen 2018-08-21 09:46:24 UTC
libnet-oauth2-authorizationserver-perl depends on libcryptx-perl.
Unlike koha-common and most dependencies, libcryptx-perl packages are arch-specific.

We had libcryptx-perl_0.059-1~koha2_amd64.deb in the repository, but no version for i386. I have uploaded libcryptx-perl_0.059-1~koha2_i386.deb and a few other modules with the same problem.

I assume everyone reporting this problem is using 32bit systems. And apparently all devs use 64bit, so nobody was able to reproduce it.
Comment 14 giacomo 2019-01-20 12:40:09 UTC
Hello,
I am fairly new to Koha and I'm currently trying to install Koha on a 32-bit Debian Stretch machine.
I have run into the same problem as described above, even though here it says it was fixed.
I'm trying to install the current stable version of Koha(18.11) and my sources.list file contains this:
  deb http://debian.koha-community.org/koha dists/stable/main/binary-i386/

Whenever I try to run 
  $ sudo apt-get install koha-common
this is the output:
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:

  The following packages have unmet dependencies:
   koha-common : Depends: libnet-oauth2-authorizationserver-perl but it is not going to be installed
  E: Unable to correct problems, you have held broken packages.
Am I missing something?
Regards,
Giacomo
Comment 15 David Cook 2019-01-21 01:49:14 UTC
I am curious why anyone would be running 32-bit Linux in this day and age.

Giacomo, can you explain why you're using 32-bit Linux and not 64-bit Linux? 

The only modern use case I can think of is using a Raspberry Pi with a 32-bit Raspbian OS. 

Maybe using really old hardware? But it would have to be very old at this point not to support a 64-bit OS...
Comment 16 giacomo 2019-01-21 22:48:39 UTC
Yes, I was trying to install Koha on a raspberry pi 3.
I found a workaround as in I installed an unofficial 64bit Os and it worked.
Still I don't understand why you would list it as compatible when it's not...
Giacomo
Comment 17 David Cook 2019-01-22 01:41:00 UTC
(In reply to giacomo from comment #16)
> Yes, I was trying to install Koha on a raspberry pi 3.
> I found a workaround as in I installed an unofficial 64bit Os and it worked.

Thanks for confirming that.

> Still I don't understand why you would list it as compatible when it's not...

Fair question. Mirko might be able to shed some light on it.
Comment 18 Mirko Tietgen 2019-01-22 08:29:18 UTC
(In reply to giacomo from comment #14)
> Hello,
> I am fairly new to Koha and I'm currently trying to install Koha on a 32-bit
> Debian Stretch machine.
> I have run into the same problem as described above, even though here it
> says it was fixed.
> I'm trying to install the current stable version of Koha(18.11) and my
> sources.list file contains this:
>   deb http://debian.koha-community.org/koha dists/stable/main/binary-i386/

The line should be
deb http://debian.koha-community.org/koha 18.11 main

Does this work? Or do you need armhf? Then it is not a problem of 32bit vs 64bit, but amd64 and i386 being supported but armhf being not.
Comment 19 Mirko Tietgen 2019-01-22 08:30:27 UTC
(In reply to David Cook from comment #15)
> The only modern use case I can think of is using a Raspberry Pi with a
> 32-bit Raspbian OS. 

Good catch, saves me a lot of headache :)
Comment 20 Geodirk 2019-04-17 11:08:08 UTC
Is there a final solution for this as I hit the same libnet-oauth2-authorizationserver-perl issue?  I went and changed the /etc/apt/sources.list.d/koha.list to become: deb http://debian.koha-community.org/koha 18.11 main

After an apt-get update, I get this:

root@connectbox:~# apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:3 http://debian.koha-community.org/koha 18.11 InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://debian.koha-community.org/koha 18.11 InRelease' doesn't support architecture 'armhf'

What am I missing? Also trying to install on a RPi 3B+ (32 bit).
Comment 21 Mason James 2019-11-25 05:22:10 UTC
(In reply to Geodirk from comment #20)
> Is there a final solution for this as I hit the same
> libnet-oauth2-authorizationserver-perl issue?  I went and changed the
> /etc/apt/sources.list.d/koha.list to become: deb
> http://debian.koha-community.org/koha 18.11 main
> 
> After an apt-get update, I get this:
> 
> root@connectbox:~# apt-get update
> Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
> Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
> Hit:3 http://debian.koha-community.org/koha 18.11 InRelease
> Reading package lists... Done
> N: Skipping acquire of configured file 'main/binary-armhf/Packages' as
> repository 'http://debian.koha-community.org/koha 18.11 InRelease' doesn't
> support architecture 'armhf'
> 
> What am I missing? Also trying to install on a RPi 3B+ (32 bit).

try prefixing your koha repo line with 'deb [arch=i386] ', like...
deb [arch=i386] http://debian.koha-community.org/koha stable main 

then run 'sudo apt-get update' again

fyi, some good info here...
http://avengingchicken.online/misc/installing_koha_on_raspberry-pi-4.pdf
Comment 22 Mason James 2019-11-25 05:29:02 UTC
> fyi, some good info here...
> http://avengingchicken.online/misc/installing_koha_on_raspberry-pi-4.pdf

here too..
https://wiki.koha-community.org/wiki/Koha_on_a_Raspberry_Pi_3_B%2B

------------
Add the Koha package source information
1. Add the source information for the Koha package:

echo deb [arch=i386] http://debian.koha-community.org/koha stable main | sudo tee /etc/apt/sources.list.d/koha.list
------------
Comment 23 Dwight Tuinstra 2020-02-25 21:57:42 UTC
I am also hitting this bug, on a fresh installation of 19.11 on a fully upgraded version of 64-bit Debian, while following the documentation at 
  - https://wiki.koha-community.org/wiki/Preparing_your_system and 
  - https://wiki.koha-community.org/wiki/Koha_on_Debian
Not sure if this is an installer bug or a documentation bug.

$ sudo apt-get install koha-common
[sudo] password for dwight: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 koha-common : Depends: libnet-oauth2-authorizationserver-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Other information:

$ apt-cache show koha-common
Package: koha-common
Source: koha
Version: 19.11.02-1

$ cat /etc/apt/sources.list.d/koha.list 
deb http://debian.koha-community.org/koha 19.11 main

$ sudo apt-get install build-essential ssh locate sudo make ntp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.3).
locate is already the newest version (4.6.0+git+20161106-2).
make is already the newest version (4.1-9.1).
ntp is already the newest version (1:4.2.8p10+dfsg-3+deb9u2).
ssh is already the newest version (1:7.4p1-10+deb9u7).
sudo is already the newest version (1.8.19p1-2.1+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ uname -a
Linux opac 4.9.0-12-686-pae #1 SMP Debian 4.9.210-1 (2020-01-20) i686 GNU/Linux
Comment 24 Dwight Tuinstra 2020-02-25 22:06:46 UTC
Here are the messages when trying to install the problem packages directly:

$ sudo apt-get install libnet-oauth2-authorizationserver-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libnet-oauth2-authorizationserver-perl : Depends: libcryptx-perl (>= 0.021) but it is not installable
E: Unable to correct problems, you have held broken packages.

$ sudo apt-get install libcryptx-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libcryptx-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libcryptx-perl' has no installation candidate
Comment 25 Jonathan Druart 2020-02-26 09:12:51 UTC
(In reply to Dwight Tuinstra from comment #23)
> I am also hitting this bug, on a fresh installation of 19.11 on a fully
> upgraded version of 64-bit Debian, while following the documentation at 

[...]

> $ uname -a
> Linux opac 4.9.0-12-686-pae #1 SMP Debian 4.9.210-1 (2020-01-20) i686
> GNU/Linux

64-bit vs i686? :)
Comment 26 Narcis Garcia 2020-02-26 19:37:32 UTC
Jonathan, a fully upgraded Debian (stable) comes with Linux 4.19 kernel.
Linux 4.9 is from oldstable Debian.
- Debian 10 (buster) is current one
- Debian 9 (stretch) is old one (it seems to be OS you are running)

But, at this time, I've read newest Debian version supported by Koha packages is 9 (stretch, oldstable). This means you are at right environment.

What repository lines do you have for Koha under /etc/apt/sources.list* ?
Comment 27 Dwight Tuinstra 2020-02-27 03:57:32 UTC
$ cat /etc/apt/sources.list.d/koha.list 
deb http://debian.koha-community.org/koha 19.11 main
Comment 28 Dwight Tuinstra 2020-02-27 17:31:31 UTC
I have found what may be a workaround, based on this comment from bug 23128 (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23128):

    "So far we have libcryptx-perl in the Koha repository, but it only works for Jessie, not Xenial, and it breaks Stretch without backports and Bionic.

    "I propose to remove libcryptx-perl from our repository. The result will be
        -Debian 10 and Ubuntu 18.04 work out of the box
        -Debian 9 needs backports enabled

This appears to work (at least, apt-get install koha-common is running now):
    1) Create /etc/apt/sources.list.d/stretch-backports.list with this line:
            deb http://deb.debian.org/debian stretch-backports main
    2) Run apt-get update

Since the workaround is known but not mentioned in the documentation, this appears to be a documentation bug. I will file a report there.
Comment 29 Jonathan Druart 2020-07-21 14:29:57 UTC
*** Bug 25981 has been marked as a duplicate of this bug. ***
Comment 30 Katrin Fischer 2023-09-16 13:55:08 UTC
Can someone tell if we still need to do something here? Is it worth adding documentation to the wiki or are the versions too old now?