Debian 10 can't enable php extensions
Hello I have installed LAMP on a Debian 10 via ssh.
I'm running php7.4 and I wan't to install imap extension.
I've tried installing it and I get an error. Then i tried to install another extension and every time i'm trying to install an another extension I'm getting the same error (mentioned bellow).
Any ideas how can i fix this?
Thanks in advance!
ERROR
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libc-client2007e mlock php7.4-imap
Suggested packages:
uw-mailutils
The following NEW packages will be installed:
libc-client2007e mlock php-imap php7.4-imap
0 upgraded, 4 newly installed, 0 to remove and 100 not upgraded.
Need to get 36.9 kB/676 kB of archives.
After this operation, 1633 kB of additional disk space will be used.
Err:1 https://packages.sury.org/php buster/main amd64 php7.4-imap amd64 7.4.14-1+0~20210112.34+debian10~1.gbpaa175a
404 Not Found [IP: 2606:4700:3037::6815:1294 443]
Err:2 https://packages.sury.org/php buster/main amd64 php-imap all 2:7.4+79+0~20201210.30+debian10~1.gbpedaf15
404 Not Found [IP: 2606:4700:3037::6815:1294 443]
E: Failed to fetch https://packages.sury.org/php/pool/main/p/php7.4/php7.4-imap_7.4.14-1+0~20210112.34+debian10~1.gbpaa175a_amd64.deb 404 Not Found [IP: 2606:4700:3037::6815:1294 443]
E: Failed to fetch https://packages.sury.org/php/pool/main/p/php-defaults/php-imap_7.4+79+0~20201210.30+debian10~1.gbpedaf15_all.deb 404 Not Found [IP: 2606:4700:3037::6815:1294 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
5 Replies
✓ Best Answer
@huntsman --
If you don't want to upgrade to Debian 11, you can edit your /etc/apt/sources.list file to remove your dependence on the https://packages.sury.org packages. The release Debian 10 packages will be installed in their place. I believe the sury.org packages are for Ubuntu anyway so it's not surprising that your update is failing…or maybe worked once and is now failing.
The IP address you reported belongs to Cloudflare.
Perhaps the question you need to answer first is why you are installing these 3rd-party packages in the first place.
@cyveris --
The sury.org packages are of pretty high quality. I don't like to use 3rd party packages either but I have used these in the past with great success (to get some critical bug fixes that were stuck on board the release train). I realize that my experience may not translate well to the OPs situation but I just thought I'd pass this along.
-- sw
Rather than using an older release of Debian with some third-party repo to get updated PHP libraries, why not just install the CURRENT Debian release?
Thank you for your reply how @cyveris.
How safe is to do this, i have already hosted some websites? how can i do this without any issues.