pistacheio / pistache

A high-performance REST toolkit written in C++
https://pistacheio.github.io/pistache/
Apache License 2.0
3.12k stars 690 forks source link

Install instructions don't work on Ubuntu focal #1087

Open sparky005 opened 1 year ago

sparky005 commented 1 year ago

From what I can see (and maybe I just did something weird) the install instructions do not work as specified on Ubuntu Focal

When I ran apt install libpistache-dev I got:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libpistache-dev 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 'libpistache-dev' has no installation candidate

I then specified a version apt install libpistache-dev=0.0.003+git20220805.4c54e8f~ubuntu20.04.1 and got a slightly different error:

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:
 libpistache-dev : Depends: libpistache0 (= 0.0.003+git20220805.4c54e8f~ubuntu20.04.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

Finally I specified versions for both and it installed without issue:

root@<machine>:/src# apt install libpistache-dev=0.0.003+git20220805.4c54e8f~ubuntu20.04.1 libpistache0=0.0.003+git20220805.4c54e8f~ubuntu20.04.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libpistache-dev libpistache0
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 701 kB of archives.
After this operation, 4463 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/pistache+team/unstable/ubuntu focal/main arm64 libpistache0 arm64 0.0.003+git20220805.4c54e8f~ubuntu20.04.1 [290 kB]
Get:2 http://ppa.launchpad.net/pistache+team/unstable/ubuntu focal/main arm64 libpistache-dev arm64 0.0.003+git20220805.4c54e8f~ubuntu20.04.1 [411 kB]
<etc>

Seems like installs might be broken on Focal?

kiplingw commented 1 year ago

Hey @sparky005. Welcome to the project. That's really strange. From what I can see in the PPA, there are packages built for focal.

What I suggest trying to do is using aptitude(1) to examine what apt is pulling from the PPA. Open aptitude and update your package list. Then hit 'f' to clear the list of new packages. Then remove the PPA. Update the package list with 'u'. Add the PPA again. Update the package list again. Then look through the list of new packages to see what it found.