babluboy / bookworm

A simple ebook reader for Elementary OS
GNU General Public License v3.0
1.33k stars 101 forks source link

Installation procedure not working for Ubuntu 20.04 LTS #367

Open MWNautilus opened 2 years ago

MWNautilus commented 2 years ago

Following the installation procedure on the Bookworm website as follows

sudo add-apt-repository ppa:bookworm-team/bookworm sudo apt-get update sudo apt-get install com.github.babluboy.bookworm

just leads to an error message (some package termed "ninja" appears to be missing). I followed further instructions (in case of errors) from the website as follows:

sudo add-apt-repository ppa:elementary-os/stable sudo apt-get update sudo apt-get install com.github.babluboy.bookworm

But it simply won't work. -Michael.

babluboy commented 2 years ago

Try and install ninja with the following commands: sudo apt-get update -y sudo apt-get install -y ninja-build

MWNautilus commented 2 years ago

I tried it and the ninja paket gets installed, but the bookworm installation still fails afterwards with the same error message saying that ninja is missing.

AdrianoHeller commented 2 years ago

For me it's happening the same @babluboy. Even after installing ninja with your instructions: This is the shell output: The following packages have unmet dependencies: com.github.babluboy.bookworm : Depends: ninja but it is not installable E: Unable to correct problems, you have held broken packages.

babluboy commented 2 years ago

can you also try and install ninja: sudo apt-get install ninja

Can it be related to this issue: https://github.com/mesonbuild/meson/issues/6867

As per that issue, it will be great if you can try and install ninja using pip3: python3 -m pip install ninja

ghost commented 2 years ago

Hi @babluboy! I've also tried everything and get the same errors as @MWNautilus & @AdrianoHeller. Went through all the steps you suggest and while I already have the newest version of ninja when I try to install it using pip3 I get this /usr/bin/python3: No module named pip I am incapable of doing anything other than copy pasting as I am clueless re Linux so it could very well be that I am missing sth. My OS install is fresh (as of this afternoon).

Please, is there anything else you think we could try (I tried all the methods except for building it from source)? atm I'm stuck w/ Readium and it just ain't as cute as yours!

Wishing you a good day!

Nevermind, it worked after restarting I think it was the flatpack install that did the trick!

babluboy commented 2 years ago

Until I install Ubuntu 20.04 and try this out myself, consider using bookworm with flatpak: flatpak install --from https://flathub.org/repo/appstream/com.github.babluboy.bookworm.flatpakref

This is a workaround and not a solution - so keeping this issue open

matkoniecz commented 2 years ago

sudo apt-get install ninja

mateusz@grima:~$  sudo apt-get install ninja
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ninja 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 'ninja' has no installation candidate

As per that issue, it will be great if you can try and install ninja using pip3: python3 -m pip install ninja

I have python and pip installed so it will work for me.

But this will install ninja, but not as system package therefore install still fails even if ninja is now present on the system

mateusz@grima:~$  python3 -m pip install ninja
Defaulting to user installation because normal site-packages is not writeable
Collecting ninja
  Downloading ninja-1.10.2.3-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (108 kB)
     |████████████████████████████████| 108 kB 723 kB/s            
Installing collected packages: ninja
Successfully installed ninja-1.10.2.3
mateusz@grima:~$ sudo apt install com.github.babluboy.bookworm
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:
 com.github.babluboy.bookworm : Depends: ninja but it is not installable
E: Unable to correct problems, you have held broken packages.
matkoniecz commented 2 years ago

flatpak install --from https://flathub.org/repo/appstream/com.github.babluboy.bookworm.flatpakref

How I am supposed to run it after an install?

EDIT: flatpak run com.github.babluboy.bookworm

BTW, #325 is the same issue.

gauravagnihotristla commented 2 months ago

you need ninja from 16.04 for the installation to work correctly on 20.04

wget http://archive.ubuntu.com/ubuntu/pool/universe/n/ninja/ninja_0.1.3-2_amd64.deb
sudo apt-get install ./ninja_0.1.3-2_amd64.deb