Bug 20808 - I cant install Koha on Ubuntu 18.04 LTS (Bionic Beaver) - Unmet dependences
Summary: I cant install Koha on Ubuntu 18.04 LTS (Bionic Beaver) - Unmet dependences
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Installation and upgrade (command-line installer) (show other bugs)
Version: 19.11
Hardware: All All
: P5 - low major (vote)
Assignee: Mason James
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-23 18:09 UTC by Paul
Modified: 2020-11-30 21:45 UTC (History)
6 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 Paul 2018-05-23 18:09:31 UTC
Hello,

I am installing Koha on Ubuntu 18.04 LTS Bionic Beaver (Fresh Installation). However, I have experienced the following error when I run "sudo apt-get install koha-common"

The following packages have unmet dependencies:
 koha-common : Depends: libmarc-charset-perl but it is not installable
               Depends: libmarc-xml-perl but it is not installable
E: Unable to correct problems, you have held broken packages.

Workaround:

sudo apt-get install libmarc-record-perl
sudo apt-get install libxml-sax-perl
wget http://ftp.br.debian.org/debian/pool/main/libm/libmarc-charset-perl/libmarc-charset-perl_1.35-2_amd64.deb
wget http://ftp.br.debian.org/debian/pool/main/libm/libmarc-xml-perl/libmarc-xml-perl_1.0.3-1_all.deb
sudo dpkg -i libmarc-charset-perl_1.35-2_amd64.deb libmarc-xml-perl_1.0.3-1_all.deb
sudo apt-get install koha-common
Comment 1 Mirko Tietgen 2018-05-28 08:29:25 UTC
The files are missing in Ubuntu 18.04, but they are in the Koha community repository and should be pulled automatically during installation. Could you please give the output of

apt-cache policy libmarc-charset-perl

and

apt-cache policy libmarc-xml-perl
Comment 2 Mirko Tietgen 2018-05-28 08:44:46 UTC
Which version of Koha are you trying to install?
Comment 3 Paul 2018-05-28 13:36:58 UTC
I tried to install koha-common:all/stable 17.11.05-1
Comment 4 Mirko Tietgen 2018-05-28 14:24:31 UTC
This is not a bug then but user error.

Right now

- Koha stable    is 18.05.00
- Koha oldstable is 17.11.06

You have likely not done

apt-get update

before trying to upgrade. Your package sources are out of date.

If you update the source list and apt config contains stable, you will get 18.05.00. If you wish to stay on 17.11 branch, check your apt configuration to use 'oldstable' or '17.11'.

Closing this as it is not a bug.
Comment 5 Bernardo Gonzalez Kriegel 2019-12-10 16:42:18 UTC
It's still valid.

Selecting 'stable' or '19.11' those packages are not found.
Using oldstable yes.
Comment 6 Katrin Fischer 2019-12-10 22:51:48 UTC
(In reply to Bernardo Gonzalez Kriegel from comment #5)
> It's still valid.
> 
> Selecting 'stable' or '19.11' those packages are not found.
> Using oldstable yes.
Comment 7 Bernardo Gonzalez Kriegel 2019-12-10 23:47:23 UTC
> > Selecting 'stable' or '19.11' those packages are not found.
> > Using oldstable yes.

My workaround was to configure 'olstable' first and install, then configure 'stable' or '19.11' and upgrade. 
I suppose those files are missing on the new 'stable' repo.
Comment 8 Martin Renvoize 2019-12-11 08:43:18 UTC
Any chance you might be able to take a look at this one Mason.. I'm still struggling to get hold of Mirko at the moment.. hope he's OK.
Comment 9 Paris Finley 2019-12-13 17:39:01 UTC
As of 12/13/2019, this bug (20808) is keeping me from completing a new installation of "stable" on Ubuntu 18.04 LTS (Bionic Beaver).  I am new to installing Koha; is the best solution to modify the source to an older version, then get *just* the missing dependencies, and then re-modify the source back to "stable"?  What file and location contains the source info?
Comment 10 Paris Finley 2019-12-13 18:04:25 UTC
For the record, changing the source does allow updating and installing the missing files, but the installation of "stable" will still not proceed.  I have installed oldstable successfully and will try to update that, as suggested above.
Comment 11 Bernardo Gonzalez Kriegel 2019-12-13 18:35:49 UTC
On a clean (vagrant) Ubuntu 18.04 I did (as root)

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

and finished with (dpkg -l | egrep koha)

ii  koha                                   19.11.00-1                        all          integrated (physical) library management system
ii  koha-common                            19.11.00-1                        all          integrated (physical) library management system
ii  koha-deps                              19.11.00-1                        all          Other dep. for koha
ii  koha-perldeps                          19.11.00-1                        all          Perl dep. for koha


Searching for missing modules gives

PERL5LIB=/usr/share/koha/lib perl koha_perl_deps.pl -m -u

                                              Installed         Required          Module is
Module Name                                   Version           Version            Required
--------------------------------------------------------------------------------------------
HTTPD::Bench::ApacheBench                     0 *               0.73                    No
Net::OAuth2::AuthorizationServer              0 *               0.16                    No
Selenium::Remote::Driver                      0 *               1.27                    No
Test::DBIx::Class                             0 *               0.42                    No
Text::CSV::Unicode                            0 *               0.40                    No

--------------------------------------------------------------------------------------------
Total modules reported: 5                      * Module is missing or requires an upgrade

So seems to be Ok
Comment 12 Mason James 2019-12-16 00:40:21 UTC
(In reply to Paul from comment #0)
> Hello,
> 
> I am installing Koha on Ubuntu 18.04 LTS Bionic Beaver (Fresh Installation).
> However, I have experienced the following error when I run "sudo apt-get
> install koha-common"
> 
> The following packages have unmet dependencies:
>  koha-common : Depends: libmarc-charset-perl but it is not installable
>                Depends: libmarc-xml-perl but it is not installable
> E: Unable to correct problems, you have held broken packages.
> 

hi folks
i've fixed this issue on the new 19.11 branch

run 'sudo apt update' to pull the new changes


some further info from a fresh Ubuntu 18.04.3 system below...

---------------------------
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"

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

# apt-cache policy  koha-common
koha-common:
  Installed: (none)
  Candidate: 19.11.00-1
  Version table:
 *** 19.11.00-1 500
        500 http://debian.koha-community.org/koha stable/main amd64 Packages
        100 /var/lib/dpkg/status

# apt-cache policy libmarc-charset-perl
libmarc-charset-perl:
  Installed: (none)
  Candidate: 1.35-2~koha+1
  Version table:
     1.35-2~koha+1 500
        500 http://debian.koha-community.org/koha stable/main amd64 Packages

# apt-cache policy libmarc-xml-perl
libmarc-xml-perl:
  Installed: (none)
  Candidate: 1.0.3-1~koha+1
  Version table:
     1.0.3-1~koha+1 500
        500 http://debian.koha-community.org/koha stable/main amd64 Packages