Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
julian516Offline
15 Post subject: dist-upgrade grub & kernel upgrades fail on 64 bit 2010  PostPosted: 25.01.2011, 20:32



Joined: 2010-10-29
Posts: 12
Location: Loveland, Colorado, USA
Status: Offline
I have just now installed aptosid-2010-3 "apate" AMD-64 to a nominal 16 Gigabyte USB drive. I did so as I would do it to any HD. This seemed to work just fine. Initial tests showed the system to work, though of course no non-free firmware was installed. Since I plan to travel with this jump-drive staying with free software is preferred.

The machine I used for the installation is a laptop running several different Linux distributions including Debian Squeeze. We should not have hardware compatibility problems.

The jump-drive is a Cruzer product. It also has worked with other distributions. Prior to installing 2010-3 it was reformatted to ext4.

I then did apt-get update and apt-get dist-upgrade as the manual instructs.

That process noted that grub would be upgraded and a new kernel would be installed, among other upgrades.

As the excerpts below show, there were problems with both the grub and the kernel upgrades.

      Quote:
Setting up aptosid-scripts (0.4.11) ...
Processing triggers for menu ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.37-0.slh.7-aptosid-amd64
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169
Errors were encountered while processing:
linux-image-2.6.37-0.slh.7-aptosid-amd64
linux-image-2.6-aptosid-amd64
grub-pc
fll-iso2usb
E: Sub-process /usr/bin/dpkg returned an error code (1)


If we go back up in the bash output to where grub is being upgraded we see this:

      Quote:
Setting up grub-pc (1.98+20100804-14) ...
Installing new version of config file /etc/grub.d/05_debian_theme ...
Removing update-grub hooks from /etc/kernel-img.conf in favour of
/etc/kernel/ hooks.
grub-probe: error: /boot/grub/device.map:1: No open parenthesis found.
grub-probe: error: /boot/grub/device.map:1: No open parenthesis found.
grub-probe: error: /boot/grub/device.map:1: No open parenthesis found.
/usr/sbin/grub-probe: error: /boot/grub/device.map:1: No open parenthesis found.
/usr/sbin/grub-probe: error: /boot/grub/device.map:1: No open parenthesis found.
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1


Still further up there is evidence that the upgrade evidently is having difficulty with both the grub and kernel upgrades:

      Quote:
Running /usr/sbin/update-grub.
/usr/sbin/grub-probe: error: /boot/grub/device.map:1: No open parenthesis found.
User postinst hook script [/usr/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.37-0.slh.7-aptosid-amd64 (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Setting up linux-headers-2.6-aptosid-amd64 (2.6.37-7) ...
dpkg: dependency problems prevent configuration of linux-image-2.6-aptosid-amd64:
linux-image-2.6-aptosid-amd64 depends on linux-image-2.6.37-0.slh.7-aptosid-amd64 (= 2.6.37-7); however:
Package linux-image-2.6.37-0.slh.7-aptosid-amd64 is not configured yet.
dpkg: error processing linux-image-2.6-aptosid-amd64 (--configure):
dependency problems - leaving unconfigured


If I attempt to do sux, then update-grub I get the following, which is consistent with the upgrade error messages.

      Quote:
root@aptoUSB:/home/beejay# update-grub
/usr/sbin/grub-probe: error: /boot/grub/device.map:1: No open parenthesis found.

These problems are new to me. For example, what does it mean to say "no open parentheses found." Can anyone tell me what I am seeing here?


Last edited by julian516 on 25.01.2011, 23:49; edited 2 times in total
 
 View user's profile Send private message  
Reply with quote Back to top
x-un-i
Post subject: RE: dist-upgrade grub & kernel upgrades fail on 64 bit 2  PostPosted: 25.01.2011, 21:13
Team Member


Joined: 2010-08-26
Posts: 170

post the contents of the file "/boot/grub/device.map"

_________________
Why do strong arms fatigue themselves with frivolous dumbbells?
To dig a vineyard is worthier exercise for men.
Marcus Valerius Martialis, römischer Satiriker und Epigrammdichter

Será que o diabo perdeu a virgindade?
 
 View user's profile Send private message  
Reply with quote Back to top
julian516Offline
Post subject: RE: dist-upgrade grub & kernel upgrades fail on 64 bit 2  PostPosted: 25.01.2011, 21:29



Joined: 2010-10-29
Posts: 12
Location: Loveland, Colorado, USA
Status: Offline
Thank you x-un-i. Here is the content of /boot/grub/device.map

/dev/disk/by-id/ata-Hitachi_HTS723225L9A360_080913FC1K00NEG33LWC
(hd1) /dev/disk/by-id/usb-SanDisk_Cruzer_Contour_4318520320A1D5A4-0:0
 
 View user's profile Send private message  
Reply with quote Back to top
x-un-i
Post subject: RE: dist-upgrade grub & kernel upgrades fail on 64 bit 2  PostPosted: 25.01.2011, 21:38
Team Member


Joined: 2010-08-26
Posts: 170

the file is corrupt you can rebuild a new one.

remove it and dpkg-reconfigure grub-pc

_________________
Why do strong arms fatigue themselves with frivolous dumbbells?
To dig a vineyard is worthier exercise for men.
Marcus Valerius Martialis, römischer Satiriker und Epigrammdichter

Será que o diabo perdeu a virgindade?
 
 View user's profile Send private message  
Reply with quote Back to top
julian516Offline
Post subject:   PostPosted: 25.01.2011, 23:47



Joined: 2010-10-29
Posts: 12
Location: Loveland, Colorado, USA
Status: Offline
We have it x-un-i! The problem appears to be solved.

I had not ever paid attention to device.map. For readers here is what my device.map looked like after it was repaired.


      Quote:
(hd0) /dev/disk/by-id/ata-Hitachi_HTS723225L9A360_080913FC1K00NEG33LWC
(hd1) /dev/disk/by-id/usb-SanDisk_Cruzer_Contour_4318520320A1D5A4-0:0


Doing the repair necessitated reinstalling grub. Apparently my grub was too damaged for dpkg-reconfigure to work.

I did the reinstall and then ran dpkg as x-un-i suggested. If grub still was hopeless dpkg should not run. It did.

I then checked device.map and found the contents posted above.

One last test; the problem had shown up when I attempted to upgrade grub and the kernel. That would mean that a kernel upgrade was still available. If it failed something still would be wrong.

So the upgrade was done per the manual at runlevel 3. Everything ran exactly as it should.

My thanks to x-un-i for responding so promptly.

Perhaps a backup copy of device.map is not a bad idea? I made one!
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio