web-dev-qa-db-ja.com

Ubuntu 16.04サーバーにphp-Zipをインストールできない

私はサーバーにphp7.0-Zipをインストールしようとしているので、PHPスクリプトでそれを利用できますが、大きなエラーが発生します。

Sudo apt-get install php-Zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libzip4 php7.0 php7.0-cgi php7.0-cli php7.0-common php7.0-curl php7.0-fpm php7.0-Gd php7.0-imap php7.0-intl php7.0-json php7.0-ldap php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-pspell php7.0-readline php7.0-soap
  php7.0-xml php7.0-Zip
The following NEW packages will be installed:
  libzip4 php-Zip php7.0-Zip
The following packages will be upgraded:
  php7.0 php7.0-cgi php7.0-cli php7.0-common php7.0-curl php7.0-fpm php7.0-Gd php7.0-imap php7.0-intl php7.0-json php7.0-ldap php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-pspell php7.0-readline php7.0-soap
  php7.0-xml
19 upgraded, 3 newly installed, 0 to remove and 128 not upgraded.
Need to get 5,865 kB/5,903 kB of archives.
After this operation, 242 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://mirrors.linode.com/ubuntu xenial-updates/universe AMD64 php7.0-soap AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:2 http://mirrors.linode.com/ubuntu xenial-updates/universe AMD64 php7.0-mcrypt AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:3 http://mirrors.linode.com/ubuntu xenial-updates/universe AMD64 php7.0-mbstring AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:4 http://mirrors.linode.com/ubuntu xenial-updates/universe AMD64 php7.0-intl AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:5 http://mirrors.linode.com/ubuntu xenial-updates/universe AMD64 php7.0-imap AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:6 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-json AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:7 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-opcache AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:8 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-readline AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:9 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-cli AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:10 http://mirrors.linode.com/ubuntu xenial-updates/universe AMD64 php7.0-fpm AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:11 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-xml AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:12 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-pspell AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:13 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-mysql AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:14 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-ldap AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:15 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-Gd AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:16 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-curl AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:17 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-cgi AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Ign:18 http://mirrors.linode.com/ubuntu xenial-updates/main i386 php7.0 all 7.0.18-0ubuntu0.16.04.1
Err:19 http://mirrors.linode.com/ubuntu xenial-updates/main AMD64 php7.0-common AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:20 http://mirrors.linode.com/ubuntu xenial-updates/universe AMD64 php7.0-Zip AMD64 7.0.18-0ubuntu0.16.04.1
  404  Not Found
Err:18 http://mirrors.linode.com/ubuntu xenial-updates/main i386 php7.0 all 7.0.18-0ubuntu0.16.04.1
  404  Not Found
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/universe/p/php7.0/php7.0-soap_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/universe/p/php7.0/php7.0-mcrypt_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/universe/p/php7.0/php7.0-mbstring_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/universe/p/php7.0/php7.0-intl_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/universe/p/php7.0/php7.0-imap_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-json_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-opcache_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-readline_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-cli_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/universe/p/php7.0/php7.0-fpm_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-xml_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-pspell_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-mysql_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-ldap_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-Gd_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-curl_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-cgi_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0_7.0.18-0ubuntu0.16.04.1_all.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/p/php7.0/php7.0-common_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/universe/p/php7.0/php7.0-Zip_7.0.18-0ubuntu0.16.04.1_AMD64.deb  404  Not Found

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

何が欠けていますか? -fix-missingは機能しますか?または、依存関係などをチェックせずにインストールするだけですか?

サーバーの詳細は次のとおりです。

PHP 7 Ubuntu 6.04

他に詳細が必要な場合は、私に知らせてください(そしてそれらを見つける場所:))。

2
Andrew Newby

必ず実行してくださいapt-get updateメタデータがインストールしたリポジトリと同期していることを確認します

2
Mike