質問: ubuntu 7.10にphp7.1-bcmathをインストールできません laravelパッケージ名 bitwasp をインストールしようとしていますが、このパッケージはbcmathに依存しています。インストールしようとすると、エラーが発生しました。また、私はこのコマンドを使用してインストールしようとしました:sudo apt-get install php7.1-bcmath しかし、これを行うたびに、次のエラーが発生しました。ubuntuは17.10です。after this operation, 128 kb of additional disk space will be used. do you want to continue? [y/n] y err:1 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-gd amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:2 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-bz2 amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:3 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-opcache amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:4 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-json amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:5 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-mcrypt amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:6 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-zip amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:7 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-curl amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:8 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-xml amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:9 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-mbstring amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:10 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-mysql amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:11 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-readline amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:12 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 libapache2-mod-php7.1 amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:13 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-cli amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:14 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-common amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found err:15 http://ppa.launchpad.net/ondrej/php/ubuntu artful/main amd64 php7.1-bcmath amd64 7.1.12-2+ubuntu17.10.1+deb.sury.org+2 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-gd_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-bz2_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-opcache_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-json_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-mcrypt_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-zip_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-curl_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-xml_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-mbstring_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-mysql_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-readline_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/libapache2-mod-php7.1_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-cli_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-common_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.1/php7.1-bcmath_7.1.12-2+ubuntu17.10.1+deb.sury.org+2_amd64.deb 404 not found e: unable to fetch some archives, maybe run apt-get update or try with --fix-missing? すでにupdateとfix-missingを実行しても、同じエラーが発生するたびに何も起こりません。
回答: # add-apt-repository ppa:ondrej/php # apt update # apt install php7.1-bcmath apacheを再起動します。# service apache2 restart