Problem with apt-get upgrade on 3.0 beta

  • sydb
Posted: Tue, 04/14/2009 - 22:58
Hi, I've been waiting for a way to get linux-kbuild for a while. Without the nvidia proprietary drivers, my machine freezes with a blank screen. I've always had problems with the free drivers, but they seem worse now. So I was excited to see the relevant thread but I haven't had time until now to try it out.

Tonight I booted into rescue mode of my 3.0 beta install and got a wired ethernet connection. First thing I did was add the suggested source.list line, apt-get update and then, perhaps foolishly, apt-get upgrade. I get the following

Setting up linux-image-2.6.29-1-multimedia-amd64 (2.6.29-2) ...
Running depmod.
Running update-initramfs.
initrd.img(/boot/initrd.img-2.6.29-1-multimedia-amd64
) points to /boot/initrd.img-2.6.29-1-multimedia-amd64
 (/boot/initrd.img-2.6.29-1-multimedia-amd64) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.29-1-multimedia-amd64.postinst line 569.
vmlinuz(/boot/vmlinuz-2.6.29-1-multimedia-amd64
) points to /boot/vmlinuz-2.6.29-1-multimedia-amd64
 (/boot/vmlinuz-2.6.29-1-multimedia-amd64) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.29-1-multimedia-amd64.postinst line 569.
Running update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.29-1-multimedia-amd64
Found kernel: /boot/memtest86+.bin
User postinst hook script [update-grub] exited with value 20
dpkg: error processing linux-image-2.6.29-1-multimedia-amd64 (--configure):
 subprocess post-installation script returned error exit status 128
Errors were encountered while processing:
 linux-image-2.6.29-1-multimedia-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

So some kind of problem with update-grub? I ran it manually:

root@64studio:/var/cache/apt/archives# update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.29-1-multimedia-amd64
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

but linux-image-2.6.29-1-multimedia-amd64 remains unconfigured:

 root@64studio:/var/cache/apt/archives# dpkg -l linux-image-2.6.29\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                          Version                       Description
+++-=============================-=============================-==========================================================================
iF  linux-image-2.6.29-1-multimed 2.6.29-2                      Linux 2.6.29 image on AMD64

Try configuring again I still get the "[update-grub] exited with value 20" error.

So I stuck -x on the #! line in /usr/sbin/update-grub and ran dpkg --configure again. I won't put the whole ouput here unless someone asks, but here's the last few lines showing the "return 20":

+ sed -n '-e/## ## End Default Options ##/,/### END DEBIAN AUTOMAGIC KERNELS LIST/p'
+ db_x_loadtemplatefile /var/lib/dpkg/info/grub.templates grub
+ _db_cmd 'X_LOADTEMPLATEFILE /var/lib/dpkg/info/grub.templates' grub
+ IFS=' '
+ printf '%s\n' 'X_LOADTEMPLATEFILE /var/lib/dpkg/info/grub.templates grub'
+ IFS='
'
+ read -r _db_internal_line
+ RET='20 Unsupported command "update-initramfs:" (full line was "update-initramfs: Generating /boot/initrd.img-2.6.29-1-multimedia-amd64") received from confmodule.'
+ case ${_db_internal_line%%[ 	]*} in
+ return 20

Any ideas? I'd rather not reinstall if I can fix this.

--

Michael Pacey

kernel-img.conf

  • skullnotions
  • 09/29/07
  • Wed, 04/15/2009 - 08:52
Once you've backed up the original. Replace the contents of /etc/kernel-img.conf with these from paste.ubuntu $ sudo apt-get upgrade (The kernel now completes installing) $ sudo update-grub You may have to undo the changes you've made to your config files earlier. The nVidia binary driver install is usually straightforward here but every method tried here is failing at the minute with the new testing kernel. Cheers! Dave. Update: Method 2: $ sudo apt-get install kernel-package $ sudo cp /usr/share/doc/kernel-package/examples/sample.kernel-img.conf /etc/kernel-img.conf $ sudo apt-get upgrade (The kernel now completes installing) $ sudo update-grub

Hi Michael, Dave submitted

  • Quentin Harley
  • 05/24/07
  • Wed, 04/15/2009 - 05:35
Hi Michael, Dave submitted a fix to the little problem in on of the other threads here (looking for it) Think this is it...

Worked around?

  • sydb
  • 06/05/07
  • Tue, 04/14/2009 - 23:36
So I edited /var/lib/dpkg/status changing half-configured to installed and it's stopped complaining, but this probably isn't good. However it did let me install linux-kbuild, the headers, and the nvidia driver! However I still get a blank screen and my network interface dies :o( -- Michael Pacey

Woah!

  • sydb
  • 06/05/07
  • Tue, 04/14/2009 - 23:03
How do I fix what the style sheet did to my post? It doesn't even have an edit link. -- Michael Pacey