apt-get -f install - Dúvida importante [RESOLVIDO]

1. apt-get -f install - Dúvida importante [RESOLVIDO]

Mateus Scheper
mateusscheper

(usa CentOS)

Enviado em 25/08/2018 - 20:34h

Pessoal, encontrei em um fórum uma dica dizendo que precisava substituir 55.archive.ubuntu.com/ubuntu/ por old-releases.ubuntu.com/ubuntu/.
Após isto, rodei apt-get dist-upgrade e apt-get -f install e me retornou isto:

 # apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
libnih1: Depends: libc6 (< 2.12) but 2.19-0ubuntu6.14 is installed
E: Unmet dependencies. Try using -f.

# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libedit2 libfile-copy-recursive-perl libx11-data bind9utils update-inetd xauth libbsd0 libxmuu1 libxcb1 libxau6 openssh-client libxdmcp6 ssl-cert libx11-6 libxext6 openbsd-inetd
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
bind9-host dnsutils libbind9-60 libdns64 libisc60 libisccfg60 liblwres60
Suggested packages:
rblcheck
The following packages will be REMOVED:
apparmor apparmor-utils apport at bind9 byobu console-setup cron dmsetup e2fsprogs friendly-recovery ftp hostname ifupdown initramfs-tools initscripts irqbalance kbd libnih-dbus1 libnih1 librpc-xml-perl libwww-perl libxml-parser-perl
libxml-sax-expat-perl linux-image-2.6.32-33-server linux-image-server linux-server logrotate module-init-tools mountall netbase ntfs-3g ntpdate openssh-server plymouth plymouth-theme-ubuntu-text powermgmt-base ppp pppconfig pppoeconf
procps proftpd-basic rsyslog screen squid telnet ubuntu-standard udev ufw upstart ureadahead util-linux wireless-crda
The following packages will be upgraded:
bind9-host dnsutils libbind9-60 libdns64 libisc60 libisccfg60 liblwres60
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
e2fsprogs util-linux (due to e2fsprogs) hostname upstart (due to hostname)
7 upgraded, 0 newly installed, 53 to remove and 37 not upgraded.
1 not fully installed or removed.
Need to get 1,263kB of archives.
After this operation, 165MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?]

Ali fala sobre squid, telnet, openssh-server e vários outros pacotes. Isto me parece muito importante para rodar sem saber o que está fazendo. Só quero atualizar meu Ubuntu até onde dá para poder instalar pacotes quando necessário (passei horas pesquisando sobre como arrumar meu apt-get).
Minha dúvida é: Se eu der continuidade, o que exatamente acontecerá?


  


2. Re: apt-get -f install - Dúvida importante [RESOLVIDO]

skjdeecedcnfncvnrfcnrncjvnjrnfvjcnjrjvcjrvcj
Londreslondres

(usa Parabola)

Enviado em 25/08/2018 - 20:53h

Qual é a versão do Ubuntu?


3. Re: apt-get -f install - Dúvida importante [RESOLVIDO]

Mateus Scheper
mateusscheper

(usa CentOS)

Enviado em 25/08/2018 - 21:14h

Londreslondres escreveu:

Qual é a versão do Ubuntu?


Uma bem antiga. 10.04.


4. Re: apt-get -f install - Dúvida importante [RESOLVIDO]

Matheus
pylm

(usa Gentoo)

Enviado em 25/08/2018 - 21:29h

Ainda bem que tu veio aqui antes, isso aí ia remover o init, progs do filesystem (creia, é importante), util-linux (algumas ferramentas) e essencialmente destruiria a instalação.

Posta aí o /etc/apt/sources.list que alguém deve saber como proceder.


5. Re: apt-get -f install - Dúvida importante [RESOLVIDO]

Mateus Scheper
mateusscheper

(usa CentOS)

Enviado em 25/08/2018 - 21:34h

Aqui:

# cat /etc/apt/sources.list

#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#


###### Ubuntu Main Repos
deb http://old-releases.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid main restricted universe multiverse

###### Ubuntu Update Repos
deb http://old-releases.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse



6. Re: apt-get -f install - Dúvida importante [RESOLVIDO]

skjdeecedcnfncvnrfcnrncjvnjrnfvjcnjrjvcjrvcj
Londreslondres

(usa Parabola)

Enviado em 25/08/2018 - 21:46h

Os repositórios estão OK

Poste o comando:

sudo apt-get update

Se tudo ocorrer bem, atualize:

sudo apt-get upgrade


7. Re: apt-get -f install - Dúvida importante

Mateus Scheper
mateusscheper

(usa CentOS)

Enviado em 25/08/2018 - 22:25h

Londreslondres escreveu:

Os repositórios estão OK

Poste o comando:

sudo apt-get update

Se tudo ocorrer bem, atualize:

sudo apt-get upgrade

Ele dá Hit etc etc e finaliza com Reading package lists... Done
Depois disso faz mais nada.

No apt-get upgrade:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
libnih1: Depends: libc6 (< 2.12) but 2.19-0ubuntu6.14 is installed
E: Unmet dependencies. Try using -f.
E é onde chego novamente na minha questão inicial.

# cat dpkg.log
2018-08-25 18:49:31 startup archives unpack
2018-08-25 18:49:31 upgrade lsb-base 4.0-0ubuntu8.1 4.1+Debian11ubuntu6.2
2018-08-25 18:49:31 status half-installed lsb-base 4.0-0ubuntu8.1
2018-08-25 18:50:46 startup archives unpack
2018-08-25 18:50:46 upgrade lsb-base 4.0-0ubuntu8.1 4.1+Debian11ubuntu6.2
2018-08-25 18:50:46 status half-installed lsb-base 4.0-0ubuntu8.1
2018-08-25 18:59:21 startup packages configure
2018-08-25 18:59:35 startup archives unpack
2018-08-25 18:59:35 upgrade lsb-base 4.0-0ubuntu8.1 4.1+Debian11ubuntu6.2
2018-08-25 18:59:35 status half-installed lsb-base 4.0-0ubuntu8.1
2018-08-25 18:59:45 startup archives unpack
2018-08-25 18:59:45 upgrade lsb-base 4.0-0ubuntu8.1 4.1+Debian11ubuntu6.2
2018-08-25 18:59:45 status half-installed lsb-base 4.0-0ubuntu8.1
2018-08-25 19:02:40 update-alternatives: run with --install /usr/bin/editor editor /bin/nano 40 --slave /usr/share/man/man1/editor.1.gz editor.1.gz /usr/share/man/man1/nano.1.gz
2018-08-25 19:02:40 update-alternatives: run with --install /usr/bin/pico pico /bin/nano 10 --slave /usr/share/man/man1/pico.1.gz pico.1.gz /usr/share/man/man1/nano.1.gz
2018-08-25 19:07:56 startup packages configure
2018-08-25 19:08:06 startup archives unpack
2018-08-25 19:08:06 upgrade lsb-base 4.0-0ubuntu8.1 4.1+Debian11ubuntu6.2
2018-08-25 19:08:06 status half-installed lsb-base 4.0-0ubuntu8.1



8. Re: apt-get -f install - Dúvida importante

skjdeecedcnfncvnrfcnrncjvnjrnfvjcnjrjvcjrvcj
Londreslondres

(usa Parabola)

Enviado em 25/08/2018 - 22:58h

O Ubuntu 10.04 não tem mais suporte desde 2013, portanto você não irá receber mais atualizações. A solução é atualizar para o 16.04 ou 18.04

Você pode atualizar do 10.04 para 12.04 >> 14.04 >> 16.04

O 12.04, assim como o 10.04, está sem suporte.

O 14.04 terá seu suporte encerrado em 2019

16.04 suporte até 2021

18.04 suporte até 2023

ps: o 16.04 é mais estável.


9. Re: apt-get -f install - Dúvida importante [RESOLVIDO]

skjdeecedcnfncvnrfcnrncjvnjrnfvjcnjrjvcjrvcj
Londreslondres

(usa Parabola)

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

Atualizar do 10.04 para 12.04 (ou superior) é arriscado, pois o init é diferente. O 10.04 usa Upstart, o 12.04 (ou superiores) usa SystemD.


10. Re: apt-get -f install - Dúvida importante [RESOLVIDO]

Mateus Scheper
mateusscheper

(usa CentOS)

Enviado em 25/08/2018 - 23:23h

Não tem uma maneira de eu corrigir sem ter que atualizar versão? Pois tenho um servidor produção com o mesmo problema e preciso atualizar o Mysql lá.


11. Re: apt-get -f install - Dúvida importante [RESOLVIDO]

Clodoaldo Santos
clodoaldops

(usa Linux Mint)

Enviado em 26/08/2018 - 09:48h

-Ubuntu-1004-lts está sem suporte desde abril/2005
-portanto será impossível atualizar e instalar novos programas
-se vc pretende usar mesmo linux por mais de 5 anos use centos ou uma distribuição rolling release




12. Re: apt-get -f install - Dúvida importante [RESOLVIDO]

Mateus Scheper
mateusscheper

(usa CentOS)

Enviado em 26/08/2018 - 16:53h

clodoaldops escreveu:

-Ubuntu-1004-lts está sem suporte desde abril/2005
-portanto será impossível atualizar e instalar novos programas
-se vc pretende usar mesmo linux por mais de 5 anos use centos ou uma distribuição rolling release


Entendo.

Bem, obrigado pela ajuda de vocês.
Vou meter meu CentOS e ser feliz.
Até mais!



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts