sudo apt-get upgrade não funciona - Ubuntu Server 18.04

1. sudo apt-get upgrade não funciona - Ubuntu Server 18.04

Gabriel Santos
SantosGP

(usa Ubuntu)

Enviado em 29/01/2019 - 08:53h

Bom dia.

Solicito ajuda urgente...

Ao digitar o comando: sudo apt-get update ocorre tudo certo...

Porém, ao digitar: sudo apt-get upgrade aparece a seguinte mensagem:
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
parted : Depends: libparted2 (= 3.2-20) but 3.2-20ubuntu0.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


Logo, ao usar o comando sugerido no terminal (sudo apt --fix-broken install), a instalação inicia... e para pela metade aparecendo a seguinte mensagem de erro:
(Reading database ... 103112 files and directories currently installed.)
Preparing to unpack .../parted_3.2-20ubuntu0.1_amd64.deb ...
Unpacking parted (3.2-20ubuntu0.1) over (3.2-20) ...
dpkg: error processing archive /var/cache/apt/archives/parted_3.2-20ubuntu0.1_amd64.deb (--unpack):
unable to stat './sbin/parted' (which I was about to install): Input/output error
Errors were encountered while processing:
/var/cache/apt/archives/parted_3.2-20ubuntu0.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


COMO RESOLVO ISSO?


Grato...



  


2. Re: sudo apt-get upgrade não funciona - Ubuntu Server 18.04

Clodoaldo Santos
clodoaldops

(usa Linux Mint)

Enviado em 29/01/2019 - 09:01h

-dá uma olhada nisto
https://itsfoss.com/dpkg-returned-an-error-code-1/


3. Re: sudo apt-get upgrade não funciona - Ubuntu Server 18.04

4. Re: sudo apt-get upgrade não funciona - Ubuntu Server 18.04

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 29/01/2019 - 12:36h

Acompanhando o tópico !!!





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

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

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




5. Re: sudo apt-get upgrade não funciona - Ubuntu Server 18.04

Matheus
pylm

(usa Gentoo)

Enviado em 29/01/2019 - 12:53h

input/output é erro no HD
Veja os logs de selftest:


sudo smartctl -l selftest /dev/sda



6. Re: sudo apt-get upgrade não funciona - Ubuntu Server 18.04

Gabriel Santos
SantosGP

(usa Ubuntu)

Enviado em 30/01/2019 - 09:47h

pylm escreveu:

input/output é erro no HD
Veja os logs de selftest:


sudo smartctl -l selftest /dev/sda


Bom dia.

realizei o comando como me passou, mas aparece: command not found

Estaria algo errado?


7. Re: sudo apt-get upgrade não funciona - Ubuntu Server 18.04

Gabriel Santos
SantosGP

(usa Ubuntu)

Enviado em 30/01/2019 - 09:48h

clodoaldops escreveu:

-dá uma olhada nisto
https://itsfoss.com/dpkg-returned-an-error-code-1/


Bom dia.

Tentei realizar os passos do post, mas sem sucesso.


8. Erro apresentado após tentativas de resolver o problema

Gabriel Santos
SantosGP

(usa Ubuntu)

Enviado em 30/01/2019 - 09:58h

Após seguir alguns passos, parece-me que o erro apresentado agora é outro...

Irei copiar todos os passos do terminal e colocar em negrito os comandos que utilizei...

aparecida@aparecida_servidor:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Fetched 177 kB in 2s (76.7 kB/s)
Reading package lists... Done
aparecida@aparecida_servidor:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
parted
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic lxd lxd-client netplan.io
The following packages will be upgraded:
apt apt-utils bsdutils fdisk irqbalance krb5-locales libapt-inst2.0 libapt-pkg5.0 libblkid1 libfdisk1 libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0
libmount1 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libsmartcols1 libuuid1 linux-firmware linux-signed-generic mount policykit-1 util-linux
uuid-runtime
26 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 70.0 MB of archives.
After this operation, 3,092 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 bsdutils amd64 1:2.31.1-0.4ubuntu3.3 [60.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libuuid1 amd64 2.31.1-0.4ubuntu3.3 [20.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libblkid1 amd64 2.31.1-0.4ubuntu3.3 [124 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libfdisk1 amd64 2.31.1-0.4ubuntu3.3 [164 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmount1 amd64 2.31.1-0.4ubuntu3.3 [136 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsmartcols1 amd64 2.31.1-0.4ubuntu3.3 [83.8 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 fdisk amd64 2.31.1-0.4ubuntu3.3 [108 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 util-linux amd64 2.31.1-0.4ubuntu3.3 [902 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 libapt-pkg5.0 amd64 1.6.6ubuntu0.1 [801 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 libapt-inst2.0 amd64 1.6.6ubuntu0.1 [55.6 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 apt amd64 1.6.6ubuntu0.1 [1,166 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 apt-utils amd64 1.6.6ubuntu0.1 [208 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 mount amd64 2.31.1-0.4ubuntu3.3 [106 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 uuid-runtime amd64 2.31.1-0.4ubuntu3.3 [34.8 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 irqbalance amd64 1.3.0-0.1ubuntu0.18.04.1 [48.0 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 krb5-locales all 1.16-2ubuntu0.1 [13.5 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 libgssapi-krb5-2 amd64 1.16-2ubuntu0.1 [122 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 libkrb5-3 amd64 1.16-2ubuntu0.1 [279 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 libkrb5support0 amd64 1.16-2ubuntu0.1 [30.9 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 libk5crypto3 amd64 1.16-2ubuntu0.1 [85.6 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 policykit-1 amd64 0.105-20ubuntu0.18.04.4 [53.5 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 libpolkit-backend-1-0 amd64 0.105-20ubuntu0.18.04.4 [36.3 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 libpolkit-agent-1-0 amd64 0.105-20ubuntu0.18.04.4 [14.9 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 libpolkit-gobject-1-0 amd64 0.105-20ubuntu0.18.04.4 [36.4 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-firmware all 1.173.3 [65.3 MB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 linux-signed-generic amd64 4.15.0.44.46 [1,892 B]
Fetched 70.0 MB in 1min 20s (875 kB/s)
Preconfiguring packages ...
(Reading database ... 103109 files and directories currently installed.)
Removing parted (3.2-20) ...
dpkg: error processing package parted (--remove):
cannot remove '/sbin/partprobe': Input/output error
Errors were encountered while processing:
parted
E: Sub-process /usr/bin/dpkg returned an error code (1)
aparecida@aparecida_servidor:~$

Alguma nova sugestão?



9. Re: sudo apt-get upgrade não funciona - Ubuntu Server 18.04

Matheus
pylm

(usa Gentoo)

Enviado em 30/01/2019 - 10:35h


SantosGP escreveu:

pylm escreveu:

input/output é erro no HD
Veja os logs de selftest:


sudo smartctl -l selftest /dev/sda


Bom dia.

realizei o comando como me passou, mas aparece: command not found

Estaria algo errado?


Instala o smartmontools e faz de novo.



  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts