Não consigo atualizar o PHP

1. Não consigo atualizar o PHP

Antonio Augusto
aapa_05

(usa CentOS)

Enviado em 15/10/2018 - 14:36h

Boa tarde

Srs.

Estou tentando atualizar o meu PHP da versão 5.4.16 para a 7.x mas todos os repositórios que configuro dá erro 404 não há nada para fazer.
Tentei com o EPEL:
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Tentei com o REMI:
http://rpms.remirepo.net/enterprise/remi-release-7.rpm
E por ultimo com o WEBTATIC:
https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Alguém pode me indicar algum outro mirror ou tutorial?

Obrigado pela ajuda



  


2. Re: Não consigo atualizar o PHP

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 15/10/2018 - 16:50h

aapa_05 escreveu:

Boa tarde

Srs.

Estou tentando atualizar o meu PHP da versão 5.4.16 para a 7.x mas todos os repositórios que configuro dá erro 404 não há nada para fazer.
Tentei com o EPEL:
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Tentei com o REMI:
http://rpms.remirepo.net/enterprise/remi-release-7.rpm
E por ultimo com o WEBTATIC:
https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Alguém pode me indicar algum outro mirror ou tutorial?

Obrigado pela ajuda


te serve isso aí ?? https://www.if-not-true-then-false.com/2010/install-apache-php-on-fedora-centos-red-hat-rhel/

A propósito ... quando solicitar ajuda, poste ao menos qual a distro que vc usa !!!

------------------------------------------| Linux User #621728 |-----------------------------------------

" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"

------------------------------------------| Linux User #621728 |-----------------------------------------



3. Re: Não consigo atualizar o PHP

Antonio Augusto
aapa_05

(usa CentOS)

Enviado em 16/10/2018 - 11:19h


Bom dia

Não rolou não.
Veja abaixo o passo a passo:
[root@localhost yum.repos.d]# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Obtendo https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
aviso: /var/tmp/rpm-tmp.yJkoTy: Cabeçalho V3 RSA/SHA256 Signature, ID da chave 352c64e5: NOKEY
Preparando... ################################# [100%]
Updating / installing...
1:epel-release-7-11 ################################# [100%]
[root@localhost yum.repos.d]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Obtendo http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
aviso: /var/tmp/rpm-tmp.65dEbJ: Cabeçalho V4 DSA/SHA1 Signature, ID da chave 00f97f56: NOKEY
Preparando... ################################# [100%]
Updating / installing...
1:remi-release-7.5-2.el7.remi ################################# [100%]
[root@localhost yum.repos.d]

Consultando os repositórios
[root@localhost yum.repos.d]# ll
total 80
-rw-r--r--. 1 root root 1269 Jan 24 2017 CentOS-Base.repo
-rw-r--r--. 1 root root 1310 Jan 24 2017 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Jan 24 2017 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 186 Jan 24 2017 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Jan 24 2017 CentOS-Media.repo
-rw-r--r--. 1 root root 1333 Jan 24 2017 CentOS-Sources.repo
-rw-r--r--. 1 root root 2009 Jan 24 2017 CentOS-Vault.repo
-rw-r--r-- 1 root root 4 Out 16 09:45 composer.json
-rw-r--r-- 1 root root 951 Out 2 2017 epel.repo
-rw-r--r-- 1 root root 1050 Out 2 2017 epel-testing.repo
-rw-r--r-- 1 root root 446 Jun 19 05:28 remi-glpi91.repo
-rw-r--r-- 1 root root 446 Jun 19 05:28 remi-glpi92.repo
-rw-r--r-- 1 root root 446 Jun 19 05:28 remi-glpi93.repo
-rw-r--r-- 1 root root 456 Jun 19 05:28 remi-php54.repo
-rw-r--r-- 1 root root 1314 Jun 19 05:28 remi-php70.repo
-rw-r--r-- 1 root root 1314 Jun 19 05:28 remi-php71.repo
-rw-r--r-- 1 root root 1314 Jun 19 05:28 remi-php72.repo
-rw-r--r-- 1 root root 1314 Jun 19 05:28 remi-php73.repo
-rw-r--r-- 1 root root 2605 Jun 19 05:28 remi.repo
-rw-r--r-- 1 root root 750 Jun 19 05:28 remi-safe.repo
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# yum --enablerepo=remi,remi-php72 install httpd php php-common
Plugins carregados: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/i386/metalink | 47 kB 00:00
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&; arch=i386 error was
No repomd file



One of the configured repositories failed (Desconhecido),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...

4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:

yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

No repomd file
[root@localhost yum.repos.d]#

Isso acontece com qualquer repositório que tento.

A propósito, uso Centos (7).




4. Re: Não consigo atualizar o PHP

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 16/10/2018 - 11:27h

aapa_05 escreveu:
One of the configured repositories failed (Desconhecido),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...

4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:

yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

No repomd file
[root@localhost yum.repos.d]#


Ele te deu essas sugestões de possíveis soluções .. vc fez ???

------------------------------------------| Linux User #621728 |-----------------------------------------

" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"

------------------------------------------| Linux User #621728 |-----------------------------------------



5. Re: Não consigo atualizar o PHP

Antonio Augusto
aapa_05

(usa CentOS)

Enviado em 16/10/2018 - 13:56h



Tentei o que pude e sabia, exemplo, desabilitei o Centos.base e tentei instalar.
O erro persistia, neste momento eu não sabia se deveria desativar outros repos.
O que parece ser problema é que não está encontrando um metalink (Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&; arch=i386 error was), . Ainda sobre esse metalink parece apontar para uma versão de 32 bits e o meu OS é de 64.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts