Atualizar script do Ubuntu 14.04 para 16.04 e/ou Superiores

1. Atualizar script do Ubuntu 14.04 para 16.04 e/ou Superiores

Nilberto Cesar
Nilbertocs

(usa Debian)

Enviado em 25/06/2018 - 23:03h

Queria uma ajudinha para atualizar esse script...
#!/bin/bash
apt-get update
apt-get upgrade -y
apt-get install lsb-release nscd curl php5 php5-mysql php5-cli php5-curl unzip -y
apt-get install php5-mcrypt
php5enmod mcrypt
service apache2 restart

Tem mais coisa abaixo mas essa é a parte que da erro no 16.04 ou mais recentes novos sistemas


  


2. Re: Atualizar script do Ubuntu 14.04 para 16.04 e/ou Superiores

Marcelo Oliver
msoliver

(usa Debian)

Enviado em 25/06/2018 - 23:12h

Nilbertocs escreveu:

Queria uma ajudinha para atualizar esse script...
#!/bin/bash
apt-get update
apt-get upgrade -y
apt-get install lsb-release nscd curl php5 php5-mysql php5-cli php5-curl unzip -y
apt-get install php5-mcrypt
php5enmod mcrypt
service apache2 restart

Tem mais coisa abaixo mas essa é a parte que da erro no 16.04 ou mais recentes novos sistemas


Quais erros?
marcelo oliver


3. Re: Atualizar script do Ubuntu 14.04 para 16.04 e/ou Superiores

Nilberto Cesar
Nilbertocs

(usa Debian)

Enviado em 25/06/2018 - 23:26h

root@testeeeee:~# apt-get install lsb-release nscd curl php5 php5-mysql php5-cli php5-curl unzip -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nscd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
php7.0-cli

E: Package 'nscd' has no installation candidate
E: Package 'php5' has no installation candidate
E: Unable to locate package php5-mysql
E: Package 'php5-cli' has no installation candidate
E: Unable to locate package php5-curl
root@testeeeee:~#



4. Re: Atualizar script do Ubuntu 14.04 para 16.04 e/ou Superiores

Slackjeff
slackjeff

(usa Slackware)

Enviado em 26/06/2018 - 01:46h

Problema não está no seu script e sim nos pacotes!
Pelo que eu vi, o php5-cli precisa de ppa para está versão, tente procurar as versões que estão presentes no repositorio...estas versões do script já eras.


b]THE MAGIC SHELL PROGRAMMER.[/b]

Slackware user since ~2008
Meu canal no youtube:
https://www.youtube.com/SlackJeff

Meu Site:
http://www.slackjeff.com.br/

Meus Programas estão aqui:
https://notabug.org/jeffersonrocha

Meu PODCAST:
http://podcast.slackjeff.com.br/







5. Re: Atualizar script do Ubuntu 14.04 para 16.04 e/ou Superiores

Marcelo Oliver
msoliver

(usa Debian)

Enviado em 26/06/2018 - 13:09h

Nilbertocs escreveu:

root@testeeeee:~# apt-get install lsb-release nscd curl php5 php5-mysql php5-cli php5-curl unzip -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nscd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
php7.0-cli

E: Package 'nscd' has no installation candidate
E: Package 'php5' has no installation candidate
E: Unable to locate package php5-mysql
E: Package 'php5-cli' has no installation candidate
E: Unable to locate package php5-curl

root@testeeeee:~#


Os pacotes não estão disponíveis....
Tenta instalar o PHP7.0.

marcelo oliver




6. Re: Atualizar script do Ubuntu 14.04 para 16.04 e/ou Superiores

Nilberto Cesar
Nilbertocs

(usa Debian)

Enviado em 26/06/2018 - 13:32h

msoliver escreveu:

Nilbertocs escreveu:

root@testeeeee:~# apt-get install lsb-release nscd curl php5 php5-mysql php5-cli php5-curl unzip -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nscd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
php7.0-cli

E: Package 'nscd' has no installation candidate
E: Package 'php5' has no installation candidate
E: Unable to locate package php5-mysql
E: Package 'php5-cli' has no installation candidate
E: Unable to locate package php5-curl

root@testeeeee:~#


Os pacotes não estão disponíveis....
Tenta instalar o PHP7.0.

marcelo oliver



Eu substituiria tudo que é 5 por 7?






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts