Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Cannot find kernel sources

  1. #1

    Default Cannot find kernel sources

    Hi guys

    I just made new install of 64bit openSuse 11.3. I need to get kernel sources, but I cannot find them via yast2 sw management.

    The 'uname -r' command tells me, that my kernel is 2.6.34-12-desktop. The only version i can manage to install via yast is 2.6.34.7-0.7.1 (which, when used, results in error). I have looked at the list of repositories here and it seems i have added all relevant of them.

    any hints?
    thanks in advance
    inexperienced linux user level 1

  2. #2
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: Cannot find kernel sources

    What is the output of
    Code:
    zypper lr -d
    ?
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

  3. #3

    Default Re: Cannot find kernel sources

    Code:
    # | Alias                               | Name                                | Enabled | Refresh | Priority | Type   | URI                                                             | Service
    --+-------------------------------------+-------------------------------------+---------+---------+----------+--------+-----------------------------------------------------------------+--------
    1 | Updates for openSUSE 11.3 11.3-1.82 | Updates for openSUSE 11.3 11.3-1.82 | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.3/                       |
    2 | openSUSE-11.3 11.3-1.82             | openSUSE-11.3 11.3-1.82             | Yes     | No      |   99     | yast2  | cd:///?devices=/dev/sr0                                         |
    3 | repo-debug                          | openSUSE-11.3-Debug                 | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/debug/distribution/11.3/repo/oss/  |
    4 | repo-non-oss                        | openSUSE-11.3-Non-Oss               | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.3/repo/non-oss/    |
    5 | repo-oss                            | openSUSE-11.3-Oss                   | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.3/repo/oss/        |
    6 | repo-source                         | openSUSE-11.3-Source                | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/source/distribution/11.3/repo/oss/ |
    inexperienced linux user level 1

  4. #4
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: Cannot find kernel sources

    Have you done updates yet (YaST -> Online Update)? Your kernel should be 2.6.34.7-0.7-desktop which is available in updates
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

  5. #5
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: Cannot find kernel sources

    Once you have done that you can install kernel sources like this in the terminal as root (by first doing su -):
    Code:
    zypper in -t pattern devel_kernel
    That should do it.
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

  6. #6

    Default Re: Cannot find kernel sources

    I updated just before this reply. the 'uname -r' now tells 2.6.34.7-0-7-desktop, so i guess the update went OK.

    Now I see that the source and kernel version are the same... but I am bit puzzled. I am trying to do some installation, which in process wants to know where 'linux/version.h' file is located.

    Code:
    # find / -name version.h
    /usr/include/linux/dvb/version.h
    /usr/include/linux/version.h
    /usr/src/linux-2.6.34.7-0.7/drivers/net/cxgb3/version.h
    /usr/src/linux-2.6.34.7-0.7/fs/btrfs/version.h
    /usr/src/linux-2.6.34.7-0.7/include/sound/version.h
    /usr/src/linux-2.6.34.7-0.7/include/xen/interface/version.h
    /usr/src/linux-2.6.34.7-0.7/include/linux/dvb/version.h
    /usr/src/linux-2.6.34.7-0.7/arch/x86/math-emu/version.h
    /usr/src/linux-2.6.34.7-0.7-obj/x86_64/default/include/linux/version.h
    /usr/src/linux-2.6.34.7-0.7-obj/x86_64/desktop/include/linux/version.h
    /usr/src/linux-2.6.34.7-0.7-obj/x86_64/xen/include/config/xen/interface/version.h
    /usr/src/linux-2.6.34.7-0.7-obj/x86_64/xen/include/linux/version.h
    I have tried to supply directories listed on fourth and third line from the bottom, but it results in error saying, that version of header files does not match version of running kernel... I have looked again in sw management via yast2, if I did not overlook some kernel source packages and found nothing.
    inexperienced linux user level 1

  7. #7

    Default Re: Cannot find kernel sources

    oh, i missed your reply with zypper. going to try it right away.
    inexperienced linux user level 1

  8. #8
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: Cannot find kernel sources

    Quote Originally Posted by phaluz
    oh, i missed your reply with zypper. going to try it right away.
    OK good luck let us know if it works or not
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

  9. #9

    Default Re: Cannot find kernel sources

    sooo... over 200 packages installed... and situation is still the same.
    inexperienced linux user level 1

  10. #10
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: Cannot find kernel sources

    What application are you trying to install which requires the kernel sources?
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •