# add-apt-repository ppa:ondrej/php
# apt update
# apt install php7.1-bcmath
Reinicie o apache e pronto:
# service apache2 restart
Estou tentando instalar um nome de pacote do Laravel bitwasp mas esse pacote depende de bcmath
. Sempre que eu tentei instalar ele me deu um erro. Também tentei instalá-lo usando este comando:
sudo apt-get install php7.1-bcmath
Mas sempre que faço isso, recebo o seguinte erro também meu 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?
Já executamos update
e fix-missing
e nada acontece, toda vez que recebo o mesmo erro.
# add-apt-repository ppa:ondrej/php
# apt update
# apt install php7.1-bcmath
Reinicie o apache e pronto:
# service apache2 restart
instale isto: link
adicione isto:
deb http://security.ubuntu.com/ubuntu artful-security main universe
para /etc/apt/sources.list
$ sudo apt update
$ sudo apt install php7.1-bcmath
Seu gerenciador de pacotes parece achar que esses pacotes estão no ppa que você parece usar, mas eles não estão.
Veja o lista de pacotes artísticos aqui
Parece que o seu gerenciamento de pacotes apt-get
quer instalar tudo a partir desse ppa.
A primeira coisa a fazer é removê-lo *:
sudo add-apt-repository --remove ppa:ondrej/php
e / ou
sudo add-apt-repository --remove ppa:ondrej/php
atualize os repos
sudo apt-get update
e este seria um bom local para limpar o apt com
sudo apt-get autoclean && sudo apt-get autoremove
depois, instale seus pacotes com
sudo apt-get install php7.1-bcmath
Isso deve funcionar - se não, você tem outros problemas com o seu sources.list
.
Se você olhar sua lista de fontes com seu editor favorito
sudo nano /etc/apt/sources.list
Você deve ver algo semelhante a isso.
deb http://de.archive.ubuntu.com/ubuntu artful main restricted universe multiverse
#deb-src http://de.archive.ubuntu.com/ubuntu artful main restricted universe multiverse
deb http://de.archive.ubuntu.com/ubuntu artful-updates main restricted universe multiverse
#deb-src http://de.archive.ubuntu.com/ubuntu artful-updates main restricted universe multiverse
deb http://de.archive.ubuntu.com/ubuntu artful-security main restricted universe multiverse
#deb-src http://de.archive.ubuntu.com/ubuntu artful-security main restricted universe multiverse
deb http://de.archive.ubuntu.com/ubuntu artful-backports main restricted universe multiverse
#deb-src http://de.archive.ubuntu.com/ubuntu artful-backports main restricted universe multiverse
# deb http://archive.canonical.com/ubuntu artful partner
# deb-src http://archive.canonical.com/ubuntu artful partner
Se não, copie / substitua esta lista de fontes e substitua o de
pelo código do seu país. Há também uma boa entrada wiki do Ubuntu sobre o manuseio de fontes de repositório.
(*) Você pode reativá-lo a qualquer momento com add-apt-repository ppa:ondrej/php && sudo apt-get update