Bug 25886 - libmojolicious-plugin-openapi-perl and libnet-oauth2-authorizationserver-perl unable to install
Summary: libmojolicious-plugin-openapi-perl and libnet-oauth2-authorizationserver-perl...
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Packaging (show other bugs)
Version: 20.05
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-28 16:46 UTC by Samanvitha Sateesha
Modified: 2022-12-12 21:23 UTC (History)
5 users (show)

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


Attachments
script File showing steps that I followed (159.13 KB, text/plain)
2020-08-04 21:24 UTC, Phantom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samanvitha Sateesha 2020-06-28 16:46:49 UTC
I am trying to install koha on linux and I get this bug when I enter the command 
>  sudo apt-get install koha-common

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



Please help me resolve this bug as I have to work with koha for a project.

Regards
Samanvitha
Comment 1 Katrin Fischer 2020-06-28 22:11:02 UTC
Can you please tell us the OS you are trying to install Koha on and what you have added to your sources (or the link to the instructions you have been following)?
Comment 2 Phantom 2020-08-01 12:19:53 UTC
Hello, 
   Trying to install Koha-common and get the same issue as previous user (Samanvitha) has mentioned. Can you please help. 

The OS I am ON is :  

user@user123:~/work$ uname -a
Linux ubuntu1604 4.15.0-72-generic #81~16.04.1-Ubuntu SMP Tue Nov 26 16:34:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

I am using the instructions from this link: 

https://community.spiceworks.com/how_to/135184-installing-koha-ubuntu-16-04

and it fails at STEP 3.

Please advise. 

[ It took me a long time to get Ubuntu 1604 appliance for my Virtual box, so please dont tell me to get Ubuntu 180xxx ]

Thanks, 
Phantom.
Comment 3 Phantom 2020-08-01 14:37:23 UTC
Sorry, I left out the actual error  >>>  so here it is >>>>>>>>>>>>>>>>>>>>>

user@user123:~/work$ 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: libmojolicious-plugin-openapi-perl but it is not going to be installed
               Depends: libnet-oauth2-authorizationserver-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Comment 4 David Cook 2020-08-03 02:03:32 UTC
Follow the official community instructions at https://wiki.koha-community.org/wiki/Koha_on_Debian
Comment 5 Mason James 2020-08-03 13:32:48 UTC
(In reply to David Cook from comment #4)
> Follow the official community instructions at
> https://wiki.koha-community.org/wiki/Koha_on_Debian

specifically here...
 https://wiki.koha-community.org/wiki/Koha_on_Debian#Support_for_Koha_on_older_versions_of_Debian.2FUbuntu_.28Debian_8.2C_Ubuntu_18.04.2C_Ubuntu_16.04.29

assuming you want to upgrade to koha stable on ubuntu 16.04, you should run the following command...

$ echo 'deb http://debian.koha-community.org/koha stable main xenial' | sudo tee /etc/apt/sources.list.d/koha.list
Comment 6 Phantom 2020-08-04 21:24:55 UTC
Created attachment 107805 [details]
script File showing steps that I followed

script File showing steps that I followed
Comment 7 Phantom 2020-08-04 21:27:50 UTC
Same error when tried the instructions as was pointed out. 

In addition, I also brought down Ubuntu 18.04 and tried to install Koha and got the same error. 
Atleast this time around I captured my complete commands list to a script file, that is attached. 

Please advise.  Appreciate your help. 

Thank you.
Comment 8 Mason James 2020-08-05 11:30:58 UTC
(In reply to Phantom from comment #7)
> Same error when tried the instructions as was pointed out. 
> 
> In addition, I also brought down Ubuntu 18.04 and tried to install Koha and
> got the same error. 
> Atleast this time around I captured my complete commands list to a script
> file, that is attached. 
> 
> Please advise.  Appreciate your help. 
> 
> Thank you.

assuming you want to upgrade to koha stable on ubuntu 18.04, you should run the following command...

$ echo 'deb http://debian.koha-community.org/koha stable main bionic' | sudo tee /etc/apt/sources.list.d/koha.list
Comment 9 Mason James 2020-08-06 04:45:08 UTC
(In reply to Mason James from comment #8)
> (In reply to Phantom from comment #7)
> > Same error when tried the instructions as was pointed out. 
> > 
> > In addition, I also brought down Ubuntu 18.04 and tried to install Koha and
> > got the same error. 

you can quickly verify that the install procedure works, using docker...


$ docker -v
Docker version 19.03.12, build 48a66213fe

$ docker run  -ti ubuntu:18.04 bash
root@23e24cb24a95:/# apt-get update
root@23e24cb24a95:/# apt-get -y install wget gnupg2
root@23e24cb24a95:/# wget -q -O- http://debian.koha-community.org/koha/gpg.asc | apt-key add - 
root@23e24cb24a95:/# echo 'deb http://debian.koha-community.org/koha stable main bionic' | tee /etc/apt/sources.list.d/koha.list 
root@23e24cb24a95:/# apt-get update

root@23e24cb24a95:/# apt-get -y install koha-common

root@23e24cb24a95:/# apt-cache policy koha-common
koha-common:
  Installed: 20.05.02-1  <<<<<<<<<<
  Candidate: 20.05.02-1  
  Version table:
 *** 20.05.02-1 500
        500 http://debian.koha-community.org/koha stable/main amd64 Packages
        100 /var/lib/dpkg/status
Comment 10 Phantom 2020-08-06 06:21:47 UTC
Hello, 
   Actually - per your previous recommendation- did this: 

echo 'deb http://debian.koha-community.org/koha stable main bionic' | tee /etc/apt/sources.list.d/koha.list 

and the install is complete successfully.  

Have gone past that step and trying to configure apache and sites config. I also got the Apache home page running. However not Koha ( niether staff, not admin page),  because the webpage recommends replacing the index.html. But I dont see which page to put in place of webservers index.html. 

So almost there, but not yet.

Thanks for recommendation of going with bionic -- that worked. Appreciate your help James.
Comment 11 David Cook 2020-08-07 03:53:54 UTC
Mason, did you figure out what the problem was there?

We had someone trying to install Koha 20.05 on Ubuntu 18.04 and they were getting these errors.

I originally installed Koha 19.11 on Ubuntu 18.04 with the following without that "bionic" component (as I wanted to track against 19.11):
deb http://debian.koha-community.org/koha 19.11 main
deb-src http://debian.koha-community.org/koha 19.11 main

I don't see any obvious changes to debian.koha-community.org, so this sounds a bit troubling
Comment 13 Mason James 2020-08-08 07:29:25 UTC
(In reply to David Cook from comment #11)
> Mason, did you figure out what the problem was there?
> 
> We had someone trying to install Koha 20.05 on Ubuntu 18.04 and they were
> getting these errors.
> 
> I originally installed Koha 19.11 on Ubuntu 18.04 with the following without
> that "bionic" component (as I wanted to track against 19.11):

hi David, if you want to install or update any version of koha on ubuntu 18.04, you should use 'bionic'
Comment 14 José Anjos 2020-11-03 12:59:02 UTC
Similar situation:

Description:	Ubuntu 16.04.7 LTS
Release:	16.04
Codename:	xenial


sudo apt list --upgradable
Listing... Pronto
koha-common/stable,stable 20.05.05-1 all [upgradable from: 19.05.03-1]
libcryptx-perl/stable 0.068-1 amd64 [upgradable from: 0.059-1~koha2]
libjson-validator-perl/stable,stable 3.25+dfsg-1+koha3 all [upgradable from: 0.97-1~kohadev1]
libmojolicious-perl/stable,stable 8.12+dfsg-1.2~koha1 all [upgradable from: 7.21+dfsg-1~kohadev1]
libmojolicious-plugin-openapi-perl/stable,stable 2.16-1+koha1 all [upgradable from: 1.15-1~kohadev1]


sudo apt upgrade
Serão mantidos em suas versões actuais os seguintes pacotes:
  libjson-validator-perl libmojolicious-perl libmojolicious-plugin-openapi-perl
0 pacotes actualizados, 0 pacotes novos instalados, 0 a remover e 3 não actualizados.


sudo apt install koha-common 

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 : Depende: libplack-middleware-logwarn-perl mas não é instalável
E: Unable to correct problems, you have held broken packages.
Comment 15 Mason James 2020-11-03 21:11:28 UTC
(In reply to José Anjos from comment #14)
> Similar situation:
> 
> Description:	Ubuntu 16.04.7 LTS
> Release:	16.04
> Codename:	xenial
> 

 
please follow the official community instructions at...
 https://wiki.koha-community.org/wiki/Koha_on_Debian

1.1.2.3 Support for Koha on older versions of Debian/Ubuntu
Comment 16 José Anjos 2020-11-05 10:09:07 UTC
I did it: $ echo 'deb http://debian.koha-community.org/koha stable main xenial' | sudo tee /etc/apt/sources.list.d/koha.list
$ sudo apt-get update
$ sudo apt-get install koha-common

Then a message says that libjson-validator-perl libmojolicious-perl libmojolicious-plugin-openapi-perl
were not upgraded.

Now when I go to:
koha/about.pl Ihave:
Internal Server Error

On Firefox Dev Tools I have:
The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature. about.pl

(In reply to Mason James from comment #15)
>  
> please follow the official community instructions at...
>  https://wiki.koha-community.org/wiki/Koha_on_Debian
> 
> 1.1.2.3 Support for Koha on older versions of Debian/Ubuntu
Comment 17 Mason James 2020-11-05 19:08:23 UTC
(In reply to José Anjos from comment #16)
> I did it: $ echo 'deb http://debian.koha-community.org/koha stable main
> xenial' | sudo tee /etc/apt/sources.list.d/koha.list
> $ sudo apt-get update
> $ sudo apt-get install koha-common
> 
> Then a message says that libjson-validator-perl libmojolicious-perl
> libmojolicious-plugin-openapi-perl
> were not upgraded.
> 

hi José
can you include the output from the following command... 

$ apt-cache policy koha-common libjson-validator-perl \
 libmojolicious-perl libmojolicious-plugin-openapi-perl
Comment 18 José Anjos 2020-11-06 09:34:10 UTC
> can you include the output from the following command... 
> 
> $ apt-cache policy koha-common libjson-validator-perl \
>  libmojolicious-perl libmojolicious-plugin-openapi-perl

koha-common:
  Instalado: 20.05.05-1
  Candidato: 20.05.05-1
  Tabela de Versão:
 *** 20.05.05-1 500
        500 http://debian.koha-community.org/koha stable/main amd64 Packages
        500 http://debian.koha-community.org/koha stable/main i386 Packages
        100 /var/lib/dpkg/status
libjson-validator-perl:
  Instalado: 0.97-1~kohadev1
  Candidato: 3.25+dfsg-1+koha3
  Tabela de Versão:
     3.25+dfsg-1+koha3 500
        500 http://debian.koha-community.org/koha stable/main amd64 Packages
        500 http://debian.koha-community.org/koha stable/main i386 Packages
 *** 0.97-1~kohadev1 100
        100 /var/lib/dpkg/status
     0.66+dfsg-1 500
        500 http://pt.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://pt.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
libmojolicious-perl:
  Instalado: 7.21+dfsg-1~kohadev1
  Candidato: 8.12+dfsg-1.2~koha1
  Tabela de Versão:
     8.12+dfsg-1.2~koha1 500
        500 http://debian.koha-community.org/koha stable/main amd64 Packages
        500 http://debian.koha-community.org/koha stable/main i386 Packages
 *** 7.21+dfsg-1~kohadev1 100
        100 /var/lib/dpkg/status
     6.15+dfsg-1ubuntu1 500
        500 http://pt.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://pt.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
libmojolicious-plugin-openapi-perl:
  Instalado: 1.15-1~kohadev1
  Candidato: 2.16-1+koha1
  Tabela de Versão:
     2.16-1+koha1 500
        500 http://debian.koha-community.org/koha stable/main amd64 Packages
        500 http://debian.koha-community.org/koha stable/main i386 Packages
 *** 1.15-1~kohadev1 100
        100 /var/lib/dpkg/status
Comment 19 Mark Rogers 2020-11-10 14:18:50 UTC
(In reply to Phantom from comment #10)
> did this: 
> 
> echo 'deb http://debian.koha-community.org/koha stable main bionic' | tee
> /etc/apt/sources.list.d/koha.list 
> 
> and the install is complete successfully.

I had the same issue with libmojolicious-plugin-openapi-perl being unable to update from 1.15-1~kohadev1 to 2.16-1+koha1.

My /etc/apt/sources.list.d/koha.list was also missing "bionic" at the end, and adding it fixed the issue.

I was missing "bionic" after following the instructions at https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages in my previous upgrades (from 18.05 to 18.11, 19.05, and 19.11). Those instructions are trying to cover Ubuntu installations since (and including) 16.04, but do not include any codename ("xenial" or "bionic") in the koha.list file.

Should the instructions on the wiki be updated to say the following? (I'm requesting an account on the Wiki so I can make the change.)

$ echo "deb http://debian.koha-community.org/koha stable main $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/koha.list
Comment 20 Mason James 2022-03-07 10:12:14 UTC
(In reply to Mark Rogers from comment #19)
> (In reply to Phantom from comment #10)
> > did this: 
> > 
> > echo 'deb http://debian.koha-community.org/koha stable main bionic' | tee
> > /etc/apt/sources.list.d/koha.list 
> > 
> > and the install is complete successfully.
> 
> I had the same issue with libmojolicious-plugin-openapi-perl being unable to
> update from 1.15-1~kohadev1 to 2.16-1+koha1.
> 
> My /etc/apt/sources.list.d/koha.list was also missing "bionic" at the end,
> and adding it fixed the issue.
> 
> I was missing "bionic" after following the instructions at
> https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages in my
> previous upgrades (from 18.05 to 18.11, 19.05, and 19.11). Those
> instructions are trying to cover Ubuntu installations since (and including)
> 16.04, but do not include any codename ("xenial" or "bionic") in the
> koha.list file.
> 
> Should the instructions on the wiki be updated to say the following? (I'm
> requesting an account on the Wiki so I can make the change.)

hi Mark,

the following page is now marked obsolete, so no need to update it
 https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages

we have combined both debian and ubuntu installation guides, as the install steps are identical
 https://wiki.koha-community.org/wiki/Koha_on_Debian