ByteInternet / hypernode-docker

Fast and easy Docker for Magento development
https://community.hypernode.io/hypernode-docker
35 stars 8 forks source link

Cannot install Xdebug? #54

Closed Aquive closed 2 years ago

Aquive commented 2 years ago

How can I solve this?

root@ea0a078c0d8f ~/.ssh # apt-get update && apt-get install -y php-xdebug
Hit:1 http://security.debian.org buster/updates InRelease
Get:2 http://debian.hypernode.com buster InRelease [15.8 kB]
Get:3 http://debian.hypernode.com buster-updates InRelease [1,878 B]
Err:2 http://debian.hypernode.com buster InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
Err:3 http://debian.hypernode.com buster-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
Hit:4 http://packages.blackfire.io/debian any InRelease
Reading package lists... Done
W: GPG error: http://debian.hypernode.com buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
E: The repository 'http://debian.hypernode.com buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://debian.hypernode.com buster-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
E: The repository 'http://debian.hypernode.com buster-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
vdloo commented 2 years ago

@Aquive do you have the latest version of the container? if so, try this:

root@583d52c8a979 ~ # apt-get update
Get:1 http://security.debian.org buster/updates InRelease [65.4 kB]
Get:2 http://debian.hypernode.com buster InRelease [15.8 kB]             
Hit:3 http://debian.hypernode.com buster-updates InRelease
Get:4 http://debian.hypernode.com buster/hypernode amd64 Packages [91.2 kB]
Reading package lists... Done      
E: Repository 'http://security.debian.org buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

root@583d52c8a979 ~ # apt-get update --allow-releaseinfo-change
Get:1 http://security.debian.org buster/updates InRelease [65.4 kB]
Hit:2 http://debian.hypernode.com buster InRelease                        
Hit:3 http://debian.hypernode.com buster-updates InRelease
Get:4 http://security.debian.org buster/updates/main amd64 Packages [305 kB]
Fetched 305 kB in 0s (1,009 kB/s)
Reading package lists... Done
N: Repository 'http://security.debian.org buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'

root@583d52c8a979 ~ # apt-get update
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://debian.hypernode.com buster InRelease      
Hit:3 http://debian.hypernode.com buster-updates InRelease
Reading package lists... Done
root@583d52c8a979 ~ # apt-get install -y php-xdebug
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  php-xdebug
0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
Need to get 1,983 kB of archives.
After this operation, 11.9 MB of additional disk space will be used.
Get:1 http://debian.hypernode.com buster/hypernode amd64 php-xdebug amd64 2.9.6+2.8.1+2.5.5-3 [1,983 kB]
Fetched 1,983 kB in 0s (14.7 MB/s)   
Selecting previously unselected package php-xdebug.
(Reading database ... 79995 files and directories currently installed.)
Preparing to unpack .../php-xdebug_2.9.6+2.8.1+2.5.5-3_amd64.deb ...
Unpacking php-xdebug (2.9.6+2.8.1+2.5.5-3) ...
Setting up php-xdebug (2.9.6+2.8.1+2.5.5-3) ...
Aquive commented 2 years ago

@vdloo Thanks for your reply! I don't know if I have the latest version.

root@ea0a078c0d8f ~ # apt-get update
Hit:1 http://security.debian.org buster/updates InRelease
Get:2 http://debian.hypernode.com buster InRelease [15.8 kB]                 
Get:3 http://debian.hypernode.com buster-updates InRelease [1,878 B]         
Err:2 http://debian.hypernode.com buster InRelease         
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
Err:3 http://debian.hypernode.com buster-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
Hit:4 http://packages.blackfire.io/debian any InRelease
Reading package lists... Done
W: GPG error: http://debian.hypernode.com buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
E: The repository 'http://debian.hypernode.com buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://debian.hypernode.com buster-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
E: The repository 'http://debian.hypernode.com buster-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@ea0a078c0d8f ~ # apt-get update --allow-releaseinfo-change
Hit:1 http://security.debian.org buster/updates InRelease
Get:2 http://debian.hypernode.com buster InRelease [15.8 kB]                
Get:3 http://debian.hypernode.com buster-updates InRelease [1,878 B]        
Err:2 http://debian.hypernode.com buster InRelease         
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
Err:3 http://debian.hypernode.com buster-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
Hit:4 http://packages.blackfire.io/debian any InRelease
Reading package lists... Done
W: GPG error: http://debian.hypernode.com buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
E: The repository 'http://debian.hypernode.com buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://debian.hypernode.com buster-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDD9C61E909FC052
E: The repository 'http://debian.hypernode.com buster-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
vdloo commented 2 years ago

@Aquive:

docker pull docker.hypernode.com/byteinternet/hypernode-buster-docker-php74-mysql57:latest

to pull the latest container. then you have to:

docker run docker.hypernode.com/byteinternet/hypernode-buster-docker-php74-mysql57:latest

to start a fresh one from that new image