Debian Wheeze,安装PHP扩展

时间:2020-02-24 14:50:05

标签: debian apt-get php-extension

是的,我知道Debian Wheeze已经过时了。

但是可以通过“ apt-get”安装PHP扩展吗?

也许我需要为过期的LTS使用其他来源列表吗?

 Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libdbd-mysql-perl libdbi-perl libhtml-template-perl
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libapache2-mod-php5 libtidy-0.99-0 php5-cli php5-common php5-curl php5-gd php5-imap php5-mcrypt php5-mysql
Suggested packages:
  php-pear
The following NEW packages will be installed:
  libtidy-0.99-0 php5-tidy
The following packages will be upgraded:
  libapache2-mod-php5 php5-cli php5-common php5-curl php5-gd php5-imap php5-mcrypt php5-mysql
8 upgraded, 2 newly installed, 0 to remove and 218 not upgraded.
Need to get 6,273 kB of archives.
After this operation, 535 kB of additional disk space will be used.
Do you want to continue [Y/n]?

WARNING: The following packages cannot be authenticated!
  php5-cli libapache2-mod-php5 php5-mysql php5-imap php5-mcrypt php5-curl php5-gd php5-common libtidy-0.99-0 php5-tidy
Install these packages without verification [y/N]?


Err http://security.debian.org/ wheezy/updates/main php5-cli i386 5.4.45-0+deb7u12
  404  Not Found
Err http://security.debian.org/ wheezy/updates/main libapache2-mod-php5 i386 5.4.45-0+deb7u12
  404  Not Found
Err http://security.debian.org/ wheezy/updates/main php5-mysql i386 5.4.45-0+deb7u12
  404  Not Found
Err http://security.debian.org/ wheezy/updates/main php5-imap i386 5.4.45-0+deb7u12
  404  Not Found
Err http://security.debian.org/ wheezy/updates/main php5-mcrypt i386 5.4.45-0+deb7u12
  404  Not Found
Err http://security.debian.org/ wheezy/updates/main php5-curl i386 5.4.45-0+deb7u12
  404  Not Found
Err http://security.debian.org/ wheezy/updates/main php5-gd i386 5.4.45-0+deb7u12
  404  Not Found
Err http://security.debian.org/ wheezy/updates/main php5-common i386 5.4.45-0+deb7u12
  404  Not Found
Err http://security.debian.org/ wheezy/updates/main libtidy-0.99-0 i386 20091223cvs-1.2+deb7u1
  404  Not Found
Err http://security.debian.org/ wheezy/updates/main php5-tidy i386 5.4.45-0+deb7u12
  404  Not Found
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-cli_5.4.45-0+deb7u12_i386.deb  404  Not Found
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/libapache2-mod-php5_5.4.45-0+deb7u12_i386.deb  404  Not Found
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-mysql_5.4.45-0+deb7u12_i386.deb  404  Not Found
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-imap_5.4.45-0+deb7u12_i386.deb  404  Not Found
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-mcrypt_5.4.45-0+deb7u12_i386.deb  404  Not Found
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-curl_5.4.45-0+deb7u12_i386.deb  404  Not Found
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-gd_5.4.45-0+deb7u12_i386.deb  404  Not Found
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-common_5.4.45-0+deb7u12_i386.deb  404  Not Found
Failed to fetch http://security.debian.org/pool/updates/main/t/tidy/libtidy-0.99-0_20091223cvs-1.2+deb7u1_i386.deb  404  Not Found
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-tidy_5.4.45-0+deb7u12_i386.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我的来源列表:

deb http://ftp.uk.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ wheezy main contrib non-free

deb http://ftp.uk.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ wheezy-updates main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

1 个答案:

答案 0 :(得分:0)

请注意,Debian 7 (wheezy) is an obsolete stable release(强调过时)。

我建议您不要继续使用它。

您得到的错误仅仅是由于发布已过时且存储库不再有效的结果。

社区已做出一些努力来提供Long Term SupportExtended Long Term Support,但是最好确保您的用例确实需要它。

Frexian协调社区为旧版本提供支持的工作。

您可以更新源列表以尝试获取LTS软件包,但这将要求您确切地确认所需的软件包以及软件包是否一直处于更新状态。

您是否有足够的理由不升级到最新版本?