Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install php-phplibsec #670

Closed
r3c4ll opened this issue Jun 16, 2018 · 3 comments
Closed

Can't install php-phplibsec #670

r3c4ll opened this issue Jun 16, 2018 · 3 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@r3c4ll
Copy link

r3c4ll commented Jun 16, 2018

I'm getting the following error running Osclass:

[Wed Jun 13 00:19:09.506823 2018] [php7:error] [pid 15] [client 172.18.0.2:51030] PHP Fatal error: Class ‘phpseclib\Crypt\Common\BlockCipher’ not found in /var/www/html/oc-includes/phpseclib/Crypt/Rijndael.php on line 66, referer: http://myosclass.reverse.com/

But even when the package is available for Debian Stretch https://packages.debian.org/stretch/php-phpseclib it can’t be installed:

In the web container (php:7.2.5-apache-stretch):

#aptitude install php-phpseclib
No candidate version found for php-phpseclib
Unable to apply some actions, aborting

Any advice?

More about the complete issue here https://forums.docker.com/t/php-7-2-5-apache-stretch-issue-with-php-phpseclib/52433

@wglambert
Copy link

Specifying the stable tag I'm able to download php-seclib which does require php-common as well

$ docker run --rm -d --name php php:7.2-apache
$ docker exec -it php bash
root@0c2b13c53beb:/var/www/html# apt update && apt install -y php-common/stable php-seclib/stable
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease                                                                                               
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease                                                                                       
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch Release                                                                                                 
Reading package lists... Done                                                                                                                                 
Building dependency tree                                                                                                                                      
Reading state information... Done                                                                                                                             
7 packages can be upgraded. Run 'apt list --upgradable' to see them.                                                                                          
Reading package lists... Done                                                                                                                                 
Building dependency tree       
Reading state information... Done
Selected version '1:49' (Debian:9.4/stable [all]) for 'php-common'
Selected version '1.0.5-1' (Debian:9.4/stable [all]) for 'php-seclib'
The following additional packages will be installed:
  psmisc
Suggested packages:
  php-mcrypt php-gmp php-compat
The following NEW packages will be installed:
  php-common php-seclib psmisc
0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
Need to get 317 kB of archives.
After this operation, 1947 kB of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 psmisc amd64 22.21-2.1+b2 [123 kB]
. . .
root@0c2b13c53beb:/var/www/html# apt search php-seclib
Sorting... Done
Full Text Search... Done
php-seclib/stable,now 1.0.5-1 all [installed]
  implementations of an arbitrary-precision integer arithmetic library

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Jun 18, 2018
@r3c4ll
Copy link
Author

r3c4ll commented Jun 19, 2018

Thank you very much @wglambert !

Do you know why if the image is based on the stable branch/distribution it needs to specify the branch/distribution in the apt command?

@yosifkit
Copy link
Member

That would be because of #542.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

3 participants