[09:45] <chenrano2002> I can't find the related "linux-headers-2.6.20-15.generic" on 64bit ubuntu server 7.04 CD, how to install the linux header?
[12:03] <kraut> moin
[04:23] <jeyries> hello !
[08:39] <DrFEAR> don't know if this is the channel for this...but...
[08:39] <DrFEAR> I have a problem with updating my kernel...
[08:40] <DrFEAR> anyone can help me?
[08:46] <DrFEAR> anyone?
[08:55] <JanC> DrFEAR: what problem?
[08:55] <JanC> DrFEAR: remember that this is a development channel though
[08:56] <JanC> for support, #ubuntu is a better choice
[09:00] <DrFEAR> i'm there...
[09:01] <DrFEAR> but they can't find the solution
[09:01] <DrFEAR> sorry
[09:01] <DrFEAR> I have Ubuntu 7.04 Feisty Fawn with kernel 2.6.20-15-generic
[09:02] <DrFEAR> it says that there are updates available
[09:02] <DrFEAR> when I try to update, it show an error with dependencies
[09:03] <DrFEAR> i can install programs and all
[09:03] <DrFEAR> but everytime i install one, it keep trying to install the same kernel
[09:04] <DrFEAR> JanC: Keep trying to update to version 2.6.20-16
[09:05] <geser> can you paste the error message in some pastebin?
[09:05] <DrFEAR> I think that isn't necessary, so if i can't update my kernel, i'm looking a way to avoid this updating
[09:05] <DrFEAR> it's in spanish...XD
[09:06] <DrFEAR> it tries to install 4 packages
[09:06] <DrFEAR> linux-image-2.6.20-16-generic
[09:06] <DrFEAR>  linux-image-generic
[09:06] <DrFEAR>  linux-restricted-modules-2.6.20-16-generic
[09:06] <DrFEAR>  linux-restricted-modules-generic
[09:06] <DrFEAR>  linux-generic
[09:06] <DrFEAR> well 5
[09:06] <DrFEAR> each one depends on the previous
[09:06] <JanC> DrFEAR: how do you try to upgrade ?
[09:07] <DrFEAR> I wasn't trying to upgrade, I only upgrade when the system shows me that there are new upgrades available
[09:08] <DrFEAR> in that list, there was the kernel update
[09:08] <DrFEAR> i thought that there wouldn't be any problems
[09:08] <DrFEAR> and here i am
[09:10] <JanC> and what does the error say?
[09:11] <DrFEAR> dpkg: error al procesar linux-generic (--configure):
[09:11] <DrFEAR>  problemas de dependencias - se deja sin configurar
[09:11] <JanC> it doesn't say which dependencies are missing?
[09:11] <DrFEAR> dependencies problem, left without configuring
[09:12] <DrFEAR> all the packages above
[09:12] <JanC> I just upgraded to 2.6.20-16.28
[09:12] <JanC> without any problems
[09:12] <DrFEAR> if I can't upgrade the kernel, I just want to make that upgrading stop
[09:13] <JanC> maybe you must update the package database
[09:13] <JanC> and then try again?
[09:14] <DrFEAR> how do i do that?
[09:14] <DrFEAR> with apt-get update?
[09:14] <DrFEAR> I already did that
[09:14] <JanC> that's one way yes
[09:14] <JanC> hm
[09:14] <DrFEAR> didn't work
[09:15] <DrFEAR> sorry
[09:15] <DrFEAR> :S
[09:16] <JanC> have you tried 'apt-get dist-upgrade' ?
[09:16] <DrFEAR> it tries to upgrade again...reaching the same error
[09:16] <DrFEAR> what if...
[09:16] <DrFEAR> I reinstall my ubuntu....:S
[09:16] <DrFEAR> ?
[09:17] <JanC> I'm sure there is a better solution
[09:17] <DrFEAR> I could't find it
[09:18] <geser> what happens when you try to install the five packages by hand with apt-get?
[09:18] <geser> sudo apt-get install linux-image-2.6.20-16-generic
[09:18] <geser> and so on for the other ones
[09:19] <geser> one of them should produce an error which might help further
[09:19] <JanC> I suspect something went wrong with an earlier install...
[09:20] <JanC> or upgrade
[09:21] <JanC> DrFEAR: you haven't pinned one of those packages to a certain version?
[09:21] <DrFEAR> don't know
[09:21] <DrFEAR> I've never touched the kernel...
[09:22] <DrFEAR> I'm too newbie to do it
[09:22] <DrFEAR> yet
[09:24] <JanC> DrFEAR: try what geser said  :)
[09:27] <DrFEAR> same thing...:S
[09:27] <DrFEAR> sorry, i'll try to reinstall 
[09:28] <DrFEAR> the winbugs way :S
[09:29] <johanbr> DrFEAR: You really shouldn't have to reinstall for something as simple as that.
[09:29] <DrFEAR> it's driving me @@
[09:30] <johanbr> DrFEAR: Try "sudo dpkg --configure -a".
[09:30] <DrFEAR> i'm gonna put all the error...sorry if its too long...
[09:31] <DrFEAR> two lines per time
[09:31] <JanC> DrFEAR: use a pastebin
[09:31] <JanC> paste.ubuntu-nl.org
[09:32] <DrFEAR> oh, well, I learned something new today :D
[09:33] <DrFEAR> I put the link here?
[09:33] <DrFEAR> http://paste.ubuntu-nl.org/24894/
[09:33] <DrFEAR> like that?
[09:34] <JanC> that looks like it might be useful  :)
[09:34] <DrFEAR> sorry, is in spanish...
[09:35] <DrFEAR> from Colombia, I'm Oscar by the way...thanks for the help :)
[09:36] <JanC> I can read a little bit of Spanish  :)
[09:37] <DrFEAR> lucky me! :)
[09:39] <JanC> my parents worked in Venezuela for 2-3 years before I was born, a friend of them worked in Colombia for about 20-25 years, another friend of them works in Guatemala for 30 years or so, etc.  :)
[09:39] <DrFEAR> many sources to learn a little bit of spanish
[09:39] <DrFEAR> :S
[09:39] <DrFEAR> oops
[09:39] <DrFEAR> :)
[09:40] <DrFEAR> i'm used to put that smiley
[09:40] <JanC> seems to be a problem with 'update-grub'
[09:40] <JanC> did you edit /boot/grub/menu.list by hand?
[09:41] <JanC> '/boot/grub/menu.lst'
[09:42] <DrFEAR> hmm
[09:42] <DrFEAR> let me see
[09:42] <DrFEAR> oops, yes
[09:42] <JanC> it might be that if you did that, you did something wrong   :)
[09:42] <DrFEAR> i have the grub like suse
[09:42] <JanC> ?
[09:42] <DrFEAR> a little bit more graphical
[09:43] <DrFEAR> XD
[09:43] <DrFEAR> but i remember what did i do...
[09:43] <JanC> "graphical" shouldn't be an issue in itself
[09:43] <JanC> as long as you don't change things inside the marked area for 'update-grub'
[09:44] <JanC> or break the menu.lst because of bad syntax
[09:45] <DrFEAR> I only added one line
[09:45] <DrFEAR> gfxmenu /boot/grub/message.ubugrey
[09:45] <DrFEAR> what if I remove it, reboot, and get back?
[09:49] <JanC> I don't think that's the issue
[09:49] <JanC> Running postinst hook script /sbin/update-grub.
[09:49] <JanC> [: 25: ==: unexpected operator
[09:49] <JanC> exec: 25: -a: not found
[09:50] <JanC> it's something about "25"  :)
[09:52] <DrFEAR> mmm
[09:52] <DrFEAR> maybe it's line # 25 on update-grub?
[09:53] <DrFEAR> I see a ==
[09:56] <JanC> possibly
[09:57] <DrFEAR> maybe it doen't found the operator -a
[09:57] <DrFEAR> in the line
[09:58] <DrFEAR> exec -a update-grub /usr/sbin/update-grub.real $*
[09:58] <DrFEAR> what if....I remove that -a
[09:58] <DrFEAR> ?
[09:58] <JanC> where do you see the '==' ?
[09:59] <DrFEAR> lol
[09:59] <DrFEAR> another pastebin
[10:00] <DrFEAR> http://paste.ubuntu-nl.org/24900/
[10:00] <DrFEAR> thanks for helping, man
[10:00] <DrFEAR> hope I'm not wasting your time
[10:03] <JanC> btw, unrelated, but you should use sudo instead of working as root  :)
[10:04] <DrFEAR> why?
[10:04] <JanC> it's safer
[10:05] <DrFEAR> oh, I thought that su were safer
[10:05] <DrFEAR> oops
[10:05] <JanC> depends on what you mean by "safer"
[10:05] <JanC> with sudo it's less likely that you accidentally break your system  :)
[10:07] <DrFEAR> well, that's true
[10:08] <DrFEAR> right now I'm looking for deactivating root pw
[10:08] <DrFEAR> to get back to sudo
[10:08] <JanC> it won't fix your problem though (AFAIK)
[10:08] <johanbr> DrFEAR: I know roughly what the problem is. Edit update-grub (the file you just put on pastebin) with a text editor. Put comments (#) on lines 17-21 and 23-25. 
[10:10] <DrFEAR> all set
[10:10] <DrFEAR> try again?
[10:10] <johanbr> Alright, try the "dpkg --configure -a" again.
[10:11] <JanC> johanbr: there are 2 update-grub on most systems
[10:11] <johanbr> JanC: Right. And it seems like on of them is a slightly broken shell script.
[10:11] <JanC> /sbin/update-grub & /usr/sbin/update-grub
[10:12] <DrFEAR> same error
[10:12] <DrFEAR> but changed 5 to 22
[10:12] <DrFEAR> in exec: 22 : -a not found
[10:12] <JanC> it seems like DrFEAR looks at an /sbin/update-grub that's different from the one I have though
[10:12] <DrFEAR> oops
[10:13] <JanC> DrFEAR: edit /etc/kernel-img.conf to have:
[10:13] <JanC> postinst_hook = /usr/sbin/update-grub
[10:13] <JanC> postrm_hook   = /usr/sbin/update-grub
[10:14] <JanC> maybe that will fix things
[10:14] <JanC> but I wonder how you got the wrong /sbin/update-grub script
[10:15] <johanbr> JanC: My guess is that the breakage is caused by the change of the default /bin/sh shell from bash to dash. 
[10:16] <JanC> johanbr: then still, why wasn't his system updated?
[10:16] <johanbr> DrFEAR: JanC's suggestion sounds good. Or you can try editing line 22 of the file you just changed to just say "exec -a /usr/sbin/update-grub.real $*".
[10:17] <johanbr> JanC: Oh, you mean that the update-grub script is an old version still? I don't know. Maybe he just hasn't updated the grub package yet?
[10:17] <JanC> @#$%?!
[10:17] <JanC> Seveas should fix his pastebin  :-(
[10:18] <DrFEAR> it already says exec -a /usr/sbin/update-grub.real $*
[10:19] <DrFEAR> in both of them...the one in /usr/... and the one in /sbin/...
[10:19] <JanC> exec /usr/sbin/update-grub "$@"
[10:19] <JanC> that's what it says here...
[10:19] <johanbr> DrFEAR: Oh, sorry. I meant "exec /usr/sbin/update-grub.real $*".
[10:20] <DrFEAR> ohh ok
[10:20] <DrFEAR> that's what I thought
[10:20] <DrFEAR> in both of them?
[10:20] <JanC> ( and for some reason, pastebins hate me :-( )
[10:20] <johanbr> DrFEAR: Yes. Did you try JanC's suggestion already?
[10:21] <JanC> changing /etc/kernel-img.conf should be enough, I think
[10:21] <DrFEAR> no, it don't say "$@", it says "$*"
[10:21] <DrFEAR> i think it's the -a
[10:22] <DrFEAR> wtf?
[10:22] <JanC> DrFEAR: the kernel-img.conf should be changed anyway  :)
[10:22] <DrFEAR> worst!
[10:22] <DrFEAR> already changed
[10:24] <DrFEAR> it says like a thousand times: [: 25: ==: unexpected operator
[10:24] <DrFEAR> mmm
[10:25] <DrFEAR> something changed: [: 25: ==: unexpected operator
[10:25] <DrFEAR> no
[10:25] <DrFEAR> oops
[10:25] <DrFEAR> exec: 22: update-grub: Argument list too long
[10:31] <johanbr> DrFEAR: Hmm. Another option: change both update-grub files back to what they were at the start, then change #!/bin/sh at the top to #!/bin/bash .
[10:34] <DrFEAR> THANK YOU1
[10:34] <DrFEAR> !!!!
[10:34] <DrFEAR> thanks everyone for your time
[10:35] <DrFEAR> thanks johanbr, thanks JanC
[10:35] <DrFEAR> hoping that I didn't waste too much of your time
[10:35] <johanbr> DrFEAR: You're welcome. Glad it worked. :)
[10:35] <DrFEAR> :)))
[10:35] <DrFEAR> thanks man
[10:36] <DrFEAR> JanC: Thanks too
[10:36] <DrFEAR> !
[10:37] <DrFEAR> gonna rebooy
[10:37] <DrFEAR> reboot
[10:38] <DrFEAR> thanks, thousand thanks and blessings
[10:38] <DrFEAR> good luck to everyone
[10:38] <DrFEAR> bye
[10:39] <JanC> DrFEAR: if the #!/bin/bash/ worked, you most likely will have more problems...