D
D
Deodatuss2016-06-12 12:30:06
linux
Deodatuss, 2016-06-12 12:30:06

How to defeat "dpkg was interrupted"?

Hello. I recently installed Ubuntu 16.04. Everything was fine, but every day she began to fail more and more. Today it was just the climax, I went to the toaster from 5 times, barely launching chrome. When I tried to install something, I started to throw out in the console:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

Well, of course, I did this business ... it runs for 20 minutes !!! and finally outputs:
Generating grub configuration file ...
error: cannot read `/dev/sda': Input/output error.

Подозреваю что за этим и скрываются все глюки. Но я в линуксах на уровне создать папочку и поменять на нее права. Гугление ничего толком не дало. Вот все что вывело после выполнения команды:
sudo dpkg --configure -a
Setting up linux-image-4.4.0-24-generic (4.4.0-24.43) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-4.4.0-24-generic
) points to /boot/initrd.img-4.4.0-24-generic
 (/boot/initrd.img-4.4.0-24-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.4.0-24-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-4.4.0-24-generic
) points to /boot/vmlinuz-4.4.0-24-generic
 (/boot/vmlinuz-4.4.0-24-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.4.0-24-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
Generating grub configuration file ...
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.

Заранее спасибо за помощь. Как бы ноут не сгорел)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Данил Бирюков-Романов, 2016-06-12
@Deodatuss

Бэкапь все что есть на внешний диск.
После покажи сюда вывод dmesg | grep sda
Скорее всего диск полностью под замену

S
sim3x, 2016-06-12
@sim3x

У тебя проблема с диском
Не перезагружайся
Забекапь все самое необходимое на внешний диск
Потом читай /var/log/syslog

Человек Человеков, 2016-06-13
@tenhi_shadow

я бы советовал установить после бэкапа smartmontools и сделать long-test.
Так бывает и при хреновом кабеле SATA и при дохлом диске.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question