Not able to install php 7.4

I am trying to install php but getting this error

sudo apt install php7.4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libapache2-mod-php7.4 php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline
The following NEW packages will be installed:
  libapache2-mod-php7.4 php7.4 php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline
0 upgraded, 7 newly installed, 0 to remove and 2733 not upgraded.
Need to get 4,055 kB of archives.
After this operation, 17.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://deb.parrotsec.org/parrot stable/main amd64 php7.4-common amd64 7.4.5-1
  404  Not Found [IP: 172.67.198.8 80]
Err:2 http://deb.parrotsec.org/parrot stable/main amd64 php7.4-json amd64 7.4.5-1
  404  Not Found [IP: 172.67.198.8 80]
Err:3 http://deb.parrotsec.org/parrot stable/main amd64 php7.4-opcache amd64 7.4.5-1
  404  Not Found [IP: 172.67.198.8 80]
Err:4 http://deb.parrotsec.org/parrot stable/main amd64 php7.4-readline amd64 7.4.5-1
  404  Not Found [IP: 172.67.198.8 80]
Err:5 http://deb.parrotsec.org/parrot stable/main amd64 php7.4-cli amd64 7.4.5-1
  404  Not Found [IP: 172.67.198.8 80]
Err:6 http://deb.parrotsec.org/parrot stable/main amd64 libapache2-mod-php7.4 amd64 7.4.5-1
  404  Not Found [IP: 172.67.198.8 80]
Ign:7 http://deb.parrotsec.org/parrot stable/main amd64 php7.4 all 7.4.5-1
Err:7 http://deb.parrotsec.org/parrot stable/main amd64 php7.4 all 7.4.5-1
  404  Not Found [IP: 172.67.198.8 80]
E: Failed to fetch http://deb.parrotsec.org/parrot/pool/main/p/php7.4/php7.4-common_7.4.5-1_amd64.deb  404  Not Found [IP: 172.67.198.8 80]
E: Failed to fetch http://deb.parrotsec.org/parrot/pool/main/p/php7.4/php7.4-json_7.4.5-1_amd64.deb  404  Not Found [IP: 172.67.198.8 80]
E: Failed to fetch http://deb.parrotsec.org/parrot/pool/main/p/php7.4/php7.4-opcache_7.4.5-1_amd64.deb  404  Not Found [IP: 172.67.198.8 80]
E: Failed to fetch http://deb.parrotsec.org/parrot/pool/main/p/php7.4/php7.4-readline_7.4.5-1_amd64.deb  404  Not Found [IP: 172.67.198.8 80]
E: Failed to fetch http://deb.parrotsec.org/parrot/pool/main/p/php7.4/php7.4-cli_7.4.5-1_amd64.deb  404  Not Found [IP: 172.67.198.8 80]
E: Failed to fetch http://deb.parrotsec.org/parrot/pool/main/p/php7.4/libapache2-mod-php7.4_7.4.5-1_amd64.deb  404  Not Found [IP: 172.67.198.8 80]
E: Failed to fetch http://deb.parrotsec.org/parrot/pool/main/p/php7.4/php7.4_7.4.5-1_all.deb  404  Not Found [IP: 172.67.198.8 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

This is always coming whenever I am trying to install almost any package. also I am not able to use sudo apt update.

1 Like

I am able to install php7.4 on my end

┌─[root@(redacted)]─[~]
└──╼ #apt install php7.4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  php7.4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 40.3 kB of archives.
After this operation, 75.8 kB of additional disk space will be used.
Get:1 https://ftp-stud.hs-esslingen.de/Mirrors/archive.parrotsec.org rolling/main amd64 php7.4 all 7.4.9-2 [40.3 kB]
Fetched 40.3 kB in 1s (29.9 kB/s)
Selecting previously unselected package php7.4.
(Reading database ... 489390 files and directories currently installed.)
Preparing to unpack .../php7.4_7.4.9-2_all.deb ...
Unpacking php7.4 (7.4.9-2) ...
Setting up php7.4 (7.4.9-2) ...

However, I feel that this is related to thread #15960, the repositories are apparently inconsistent and honestly, I’d advise against installing anything until an official answer is provided, in order to prevent accidentally breaking your system.

@Development @Development-Team can you check into this?

Hello!
Please make sure to do sudo apt update before doing any installations or
sudo parrot-upgrade
after that you can install any packages that is on official repo without any fetch issues

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.