Problems with updating linux-image

3 replies [Last post]
oralfloss
Offline
Joined: 06/20/2013

For some reason using Synaptic Package Manager or Update Manager on even a clean version of Trisquel 6.0 will not configure the new linux-image-3.2.0-48-generic correctly.
The Package Manager and Update Manager both remove the old linux image to update it, but aren't successful in updating, which trashes the system so that it can't be booted correctly.

Here's where the errors begin in the updating log:
Setting up libxslt1.1 (1.1.26-8ubuntu1.3) ...
Setting up libxtst6 (2:1.2.0-4ubuntu0.1) ...
Setting up linux-image-3.2.0-48-generic (3.2.0-48.74+6.0trisquel1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.2.0-38-generic
The link /vmlinuz is a dangling linkto /boot/vmlinuz-3.2.0-38-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-48-generic /boot/vmlinuz-3.2.0-48-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-48-generic /boot/vmlinuz-3.2.0-48-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-48-generic
cryptsetup: WARNING: failed to detect canonical device of overlayfs
cryptsetup: WARNING: could not determine root device from /etc/fstab
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-48-generic /boot/vmlinuz-3.2.0-48-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-48-generic /boot/vmlinuz-3.2.0-48-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-48-generic /boot/vmlinuz-3.2.0-48-generic
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-48-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-48-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libglu1-mesa (8.0.4-0ubuntu0.5) ...
Setting up libsmbclient (2:3.6.3-2ubuntu2.6) ...

You can see everything is setting up correctly except for linux-image. It then continues setting up everything else, which for the most part work.
It only stumbles again when something has the linux-image listed as a dependency, in which case I get this error:

dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.2.0-48-generic; however:
Package linux-image-3.2.0-48-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.

This is a huge problem as it has trashed my system which I had many important files on. As I have said before, this is not a personal problem, as it also happens on a clean install of Trisquel 6.0, which is why this problem is very frustrating to me. If anyone can help find a solution to this or find a way to downgrade the image so that I can use the trashed partition again, that would be a great help to me and probably many new Trisquel users.

I have attached the full update log, if that is of any help.

AttachmentSize
Update log.odt20.75 KB
Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

The two lines that catch my attention are:
cryptsetup: WARNING: could not determine root device from /etc/fstab
(...)
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).

What does the following command output on your system (if it outputs anything)?
$ awk '$2 == "/"' /etc/fstab

oralfloss
Offline
Joined: 06/20/2013

Here's the result when I ran it on a USB stick with a clean install:

root@trisquel:~# $ awk '$2 == "/"' /etc/fstab
-su: $: command not found

root@trisquel:~# awk '$2 == "/"' /etc/fstab
overlayfs / overlayfs rw 0 0

Can you not upgrade the linux-image if you are running the OS on a USB device?

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

Have you installed the system (using the installer) or not? Given your problem, it looks like the kernel of the live medium cannot be upgraded. After a regular install (even on a USB device), there should not be any problem.