Servidores Antigos para atualização [RESOLVIDO]

1. Servidores Antigos para atualização [RESOLVIDO]

Leonardo Rodrigues
leonardog50

(usa CentOS)

Enviado em 02/08/2018 - 16:47h

Ola, recentemente assumi alguns servidores de um ambiente antigo (de produção). Os mesmos não recebem mais manutenção a anos (meados de 2014). Um dos casos é um servidor ubuntu 12. Estou tentando atualizar o mesmo e recebo a seguinte mensagem:

root@dotProject:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
root@dotProject:~# update-manager -d
Traceback (most recent call last):
File "/usr/bin/update-manager", line 26, in <module>
from gi.repository import Gtk
File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 76, in load_module
dynamic_module._load()
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 224, in _load
overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 1533, in <module>
raise RuntimeError("Gtk couldn't be initialized")
RuntimeError: Gtk couldn't be initialized
root@dotProject:~#


Se alguém puder ajudar em saber como posso atualiza-lo.
Também quero instalar o agent-zabbix no mesmo, o repositório que achei foi apenas para versão 14.
No aguardo.
Abraço.


  


2. MELHOR RESPOSTA

skjdeecedcnfncvnrfcnrncjvnjrnfvjcnjrjvcjrvcj
Londreslondres

(usa Parabola)

Enviado em 02/08/2018 - 17:19h

Desculpe, tinha me confundido ls com cat

Esses repositórios não são os oficiais.

Para atualizar, siga esse tutorial: https://serverpilot.io/docs/how-to-upgrade-ubuntu-12.04-to-14.04

Depois de atualizar para o 14.04, você atualiza para o 16.04

3. Re: Servidores Antigos para atualização [RESOLVIDO]

Leonardo Rodrigues
leonardog50

(usa CentOS)

Enviado em 02/08/2018 - 17:01h

Outra coisa, quando digito o comando como:
apt-get update -y
Hit http://192.168.1.200 precise Release.gpg
Hit http://192.168.1.200 precise-updates Release.gpg
Hit http://192.168.1.200 precise-backports Release.gpg
Hit http://192.168.1.200 precise-security Release.gpg
Hit http://192.168.1.200 precise Release
Hit http://192.168.1.200 precise-updates Release
Hit http://192.168.1.200 precise-backports Release
Hit http://192.168.1.200 precise-security Release
Hit http://192.168.1.200 precise/main Sources
Hit http://192.168.1.200 precise/restricted Sources
Hit http://192.168.1.200 precise/universe Sources
Hit http://192.168.1.200 precise/multiverse Sources
Hit http://192.168.1.200 precise/main amd64 Packages
Hit http://192.168.1.200 precise/restricted amd64 Packages
Hit http://192.168.1.200 precise/universe amd64 Packages
Hit http://192.168.1.200 precise/multiverse amd64 Packages
Hit http://192.168.1.200 precise/main i386 Packages
Hit http://192.168.1.200 precise/restricted i386 Packages
Hit http://192.168.1.200 precise/universe i386 Packages
Hit http://192.168.1.200 precise/multiverse i386 Packages
Hit http://192.168.1.200 precise/main TranslationIndex
Hit http://192.168.1.200 precise/multiverse TranslationIndex
Hit http://192.168.1.200 precise/restricted TranslationIndex
Hit http://192.168.1.200 precise/universe TranslationIndex
Hit http://192.168.1.200 precise-updates/main Sources
Hit http://192.168.1.200 precise-updates/restricted Sources
Hit http://192.168.1.200 precise-updates/universe Sources
Hit http://192.168.1.200 precise-updates/multiverse Sources
Hit http://192.168.1.200 precise-updates/main amd64 Packages
Hit http://192.168.1.200 precise-updates/restricted amd64 Packages
Hit http://192.168.1.200 precise-updates/universe amd64 Packages
Hit http://192.168.1.200 precise-updates/multiverse amd64 Packages
Hit http://192.168.1.200 precise-updates/main i386 Packages
Hit http://192.168.1.200 precise-updates/restricted i386 Packages
Hit http://192.168.1.200 precise-updates/universe i386 Packages
Hit http://192.168.1.200 precise-updates/multiverse i386 Packages
Hit http://192.168.1.200 precise-updates/main TranslationIndex
Hit http://192.168.1.200 precise-updates/multiverse TranslationIndex
Hit http://192.168.1.200 precise-updates/restricted TranslationIndex
Hit http://192.168.1.200 precise-updates/universe TranslationIndex
Hit http://192.168.1.200 precise-backports/main Sources
Hit http://192.168.1.200 precise-backports/restricted Sources
Hit http://192.168.1.200 precise-backports/universe Sources
Hit http://192.168.1.200 precise-backports/multiverse Sources
Hit http://192.168.1.200 precise-backports/main amd64 Packages
Hit http://192.168.1.200 precise-backports/restricted amd64 Packages
Hit http://192.168.1.200 precise-backports/universe amd64 Packages
Hit http://192.168.1.200 precise-backports/multiverse amd64 Packages
Hit http://192.168.1.200 precise-backports/main i386 Packages
Hit http://192.168.1.200 precise-backports/restricted i386 Packages
Hit http://192.168.1.200 precise-backports/universe i386 Packages
Hit http://192.168.1.200 precise-backports/multiverse i386 Packages
Hit http://192.168.1.200 precise-backports/main TranslationIndex
Hit http://192.168.1.200 precise-backports/multiverse TranslationIndex
Hit http://192.168.1.200 precise-backports/restricted TranslationIndex
Hit http://192.168.1.200 precise-backports/universe TranslationIndex
Hit http://192.168.1.200 precise-security/main Sources
Hit http://192.168.1.200 precise-security/restricted Sources
Hit http://192.168.1.200 precise-security/universe Sources
Hit http://192.168.1.200 precise-security/multiverse Sources
Hit http://192.168.1.200 precise-security/main amd64 Packages
Hit http://192.168.1.200 precise-security/restricted amd64 Packages
Hit http://192.168.1.200 precise-security/universe amd64 Packages
Hit http://192.168.1.200 precise-security/multiverse amd64 Packages
Hit http://192.168.1.200 precise-security/main i386 Packages
Hit http://192.168.1.200 precise-security/restricted i386 Packages
Hit http://192.168.1.200 precise-security/universe i386 Packages
Hit http://192.168.1.200 precise-security/multiverse i386 Packages
Hit http://192.168.1.200 precise-security/main TranslationIndex
Hit http://192.168.1.200 precise-security/multiverse TranslationIndex
Hit http://192.168.1.200 precise-security/restricted TranslationIndex
Hit http://192.168.1.200 precise-security/universe TranslationIndex
Hit http://192.168.1.200 precise/main Translation-en
Hit http://192.168.1.200 precise/multiverse Translation-en
Hit http://192.168.1.200 precise/restricted Translation-en
Hit http://192.168.1.200 precise/universe Translation-en
Hit http://192.168.1.200 precise-updates/main Translation-en
Hit http://192.168.1.200 precise-updates/multiverse Translation-en
Hit http://192.168.1.200 precise-updates/restricted Translation-en
Hit http://192.168.1.200 precise-updates/universe Translation-en
Hit http://192.168.1.200 precise-backports/main Translation-en
Hit http://192.168.1.200 precise-backports/multiverse Translation-en
Hit http://192.168.1.200 precise-backports/restricted Translation-en
Hit http://192.168.1.200 precise-backports/universe Translation-en
Hit http://192.168.1.200 precise-security/main Translation-en
Hit http://192.168.1.200 precise-security/multiverse Translation-en
Hit http://192.168.1.200 precise-security/restricted Translation-en
Hit http://192.168.1.200 precise-security/universe Translation-en
Reading package lists... Done

Ele aponta para um ip local.
Não entendi isso.
Alguém sabe o motivo e como resolvo isso?




4. Re: Servidores Antigos para atualização [RESOLVIDO]

skjdeecedcnfncvnrfcnrncjvnjrnfvjcnjrjvcjrvcj
Londreslondres

(usa Parabola)

Enviado em 02/08/2018 - 17:04h

Poste a saída do comando:

ls /etc/apt/sources.list



5. Re: Servidores Antigos para atualização [RESOLVIDO]

Leonardo Rodrigues
leonardog50

(usa CentOS)

Enviado em 02/08/2018 - 17:11h

Londreslondres escreveu:

Poste a saída do comando:

ls /etc/apt/sources.list


Segue...

root@dotProject:~# ls /etc/apt/sources.list
/etc/apt/sources.list
root@dotProject:~#



6. Re: Servidores Antigos para atualização [RESOLVIDO]

Leonardo Rodrigues
leonardog50

(usa CentOS)

Enviado em 02/08/2018 - 17:12h

leonardog50 escreveu:

Londreslondres escreveu:

Poste a saída do comando:

ls /etc/apt/sources.list


Segue...

root@dotProject:~# ls /etc/apt/sources.list
/etc/apt/sources.list
root@dotProject:~#



root@dotProject:~# cat /etc/apt/sources.list
#

# deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ precise main restricted

#deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ dists/precise/main/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ dists/precise/restricted/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ precise main restricted

# See http://192.168.1.200:3142/help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise main restricted
deb-src http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise-updates main restricted
deb-src http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise universe
deb-src http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise universe
deb http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise-updates universe
deb-src http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise multiverse
deb-src http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise multiverse
deb http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise-updates multiverse
deb-src http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://192.168.1.200:3142/ubuntu-archive.locaweb.com.br/ubuntu/ precise-backports main restricted universe multiverse

deb http://192.168.1.200:3142/security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://192.168.1.200:3142/security.ubuntu.com/ubuntu precise-security main restricted
deb http://192.168.1.200:3142/security.ubuntu.com/ubuntu precise-security universe
deb-src http://192.168.1.200:3142/security.ubuntu.com/ubuntu precise-security universe
deb http://192.168.1.200:3142/security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://192.168.1.200:3142/security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://192.168.1.200:3142/archive.canonical.com/ubuntu precise partner
# deb-src http://192.168.1.200:3142/archive.canonical.com/ubuntu precise partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://192.168.1.200:3142/extras.ubuntu.com/ubuntu precise main
# deb-src http://192.168.1.200:3142/extras.ubuntu.com/ubuntu precise main
root@dotProject:~#







7. Re: Servidores Antigos para atualização [RESOLVIDO]

Leonardo Rodrigues
leonardog50

(usa CentOS)

Enviado em 02/08/2018 - 17:46h

Londreslondres escreveu:

Desculpe, tinha me confundido ls com cat

Esses repositórios não são os oficiais.

Para atualizar, siga esse tutorial: https://serverpilot.io/docs/how-to-upgrade-ubuntu-12.04-to-14.04

Depois de atualizar para o 14.04, você atualiza para o 16.04


Como coloco os repositórios oficiais?
Estou fazendo o update para versao 14.

Para fazer o da 14 para 16 posso seguir esse tutorial?
https://askubuntu.com/questions/779189/how-to-upgrade-a-server-from-12-04-to-16-04/779191

Grato.





8. Re: Servidores Antigos para atualização [RESOLVIDO]

skjdeecedcnfncvnrfcnrncjvnjrnfvjcnjrjvcjrvcj
Londreslondres

(usa Parabola)

Enviado em 02/08/2018 - 18:17h

leonardog50 escreveu:

Londreslondres escreveu:

Desculpe, tinha me confundido ls com cat

Esses repositórios não são os oficiais.

Para atualizar, siga esse tutorial: https://serverpilot.io/docs/how-to-upgrade-ubuntu-12.04-to-14.04

Depois de atualizar para o 14.04, você atualiza para o 16.04


Como coloco os repositórios oficiais?
Estou fazendo o update para versao 14.

Para fazer o da 14 para 16 posso seguir esse tutorial?
https://askubuntu.com/questions/779189/how-to-upgrade-a-server-from-12-04-to-16-04/779191

Grato.




Sim, você pode atualizar usando esse tutorial.

Mas antes, coloque os repositórios oficiais:
https://casadopinduvoz.wordpress.com/2013/07/27/lista-de-repositorios-fontes-do-ubuntu/
(Leia o texto todo)

Use um esitor de texto como o nano

nano /etc/apt/sources.list

Ctrl + X >> salvar





9. Re: Servidores Antigos para atualização [RESOLVIDO]

Leonardo Rodrigues
leonardog50

(usa CentOS)

Enviado em 03/08/2018 - 08:11h

Londreslondres escreveu:

leonardog50 escreveu:

Londreslondres escreveu:

Desculpe, tinha me confundido ls com cat

Esses repositórios não são os oficiais.

Para atualizar, siga esse tutorial: https://serverpilot.io/docs/how-to-upgrade-ubuntu-12.04-to-14.04

Depois de atualizar para o 14.04, você atualiza para o 16.04


Como coloco os repositórios oficiais?
Estou fazendo o update para versao 14.

Para fazer o da 14 para 16 posso seguir esse tutorial?
https://askubuntu.com/questions/779189/how-to-upgrade-a-server-from-12-04-to-16-04/779191

Grato.




Sim, você pode atualizar usando esse tutorial.

Mas antes, coloque os repositórios oficiais:
https://casadopinduvoz.wordpress.com/2013/07/27/lista-de-repositorios-fontes-do-ubuntu/
(Leia o texto todo)

Use um esitor de texto como o nano

nano /etc/apt/sources.list

Ctrl + X >> salvar




Obrigado.








Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts