Find the answer to your Linux question:
Results 1 to 3 of 3
I am a beginner in Ubuntu linux. I have installed Ubuntu 7.10 GUSTY on my pc.. I want to compile my kernel … before it I want to install the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    27

    problem in installing the packages and compiling the kernel


    I am a beginner in Ubuntu linux. I have installed Ubuntu 7.10 GUSTY on my pc..
    I want to compile my kernel … before it I want to install the kernel-package, kernel-source, fakeroot, libncurses5-dev… and I am not connected to internet..

    When installing the kernel-packeages and etc..by

    sudo apt-get install kernel-package

    it was giving the error

    Reading the package lists…Done
    Building dependency tree
    Reading state information …Done
    E: Couldn’t find package kernel-package

    How could I over come this bug…where I am wrong…
    Or any where I can download the packages and how to install them…
    For every package I am trying to install from the CD giving the same..

    and even i compile without installing

    make menuconfig

    giving the errors....

    HOSTCC scripts/basic/fixdep
    scripts/basic/fixdep.c:107:23: error: sys/types.h: No such file or directory
    scripts/basic/fixdep.c:108:22: error: sys/stat.h: No such file or directory
    scripts/basic/fixdep.c:109:22: error: sys/mman.h: No such file or directory
    scripts/basic/fixdep.c:110:20: error: unistd.h: No such file or directory
    scripts/basic/fixdep.c:111:19: error: fcntl.h: No such file or directory
    scripts/basic/fixdep.c:112:20: error: string.h: No such file or directory
    scripts/basic/fixdep.c:113:20: error: stdlib.h: No such file or directory
    scripts/basic/fixdep.c:114:19: error: stdio.h: No such file or directory
    In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
    from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
    from scripts/basic/fixdep.c:115:
    /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory
    scripts/basic/fixdep.c:116:19: error: ctype.h: No such file or directory
    scripts/basic/fixdep.c:117:23: error: arpa/inet.h: No such file or directory
    scripts/basic/fixdep.c: In function ‘usage’:
    scripts/basic/fixdep.c:131: warning: implicit declaration of function ‘fprintf’
    scripts/basic/fixdep.c:131: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:131: error: ‘stderr’ undeclared (first use in this function)
    scripts/basic/fixdep.c:131: error: (Each undeclared identifier is reported only once
    scripts/basic/fixdep.c:131: error: for each function it appears in.)
    scripts/basic/fixdep.c:132: warning: implicit declaration of function ‘exit’
    scripts/basic/fixdep.c:132: warning: incompatible implicit declaration of built-in function ‘exit’
    scripts/basic/fixdep.c: In function ‘print_cmdline’:
    scripts/basic/fixdep.c:140: warning: implicit declaration of function ‘printf’
    scripts/basic/fixdep.c:140: warning: incompatible implicit declaration of built-in function ‘printf’
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:143: error: ‘NULL’ undeclared here (not in a function)
    scripts/basic/fixdep.c: In function ‘grow_config’:
    scripts/basic/fixdep.c:156: warning: implicit declaration of function ‘realloc’
    scripts/basic/fixdep.c:156: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:158: warning: implicit declaration of function ‘perror’
    scripts/basic/fixdep.c:158: warning: incompatible implicit declaration of built-in function ‘exit’
    scripts/basic/fixdep.c: In function ‘is_defined_config’:
    scripts/basic/fixdep.c:174: warning: implicit declaration of function ‘memcmp’
    scripts/basic/fixdep.c: In function ‘define_config’:
    scripts/basic/fixdep.c:187: warning: implicit declaration of function ‘memcpy’
    scripts/basic/fixdep.c:187: warning: incompatible implicit declaration of built-in function ‘memcpy’
    scripts/basic/fixdep.c: In function ‘use_config’:
    scripts/basic/fixdep.c:206: error: ‘PATH_MAX’ undeclared (first use in this function)
    scripts/basic/fixdep.c:214: warning: incompatible implicit declaration of built-in function ‘memcpy’
    scripts/basic/fixdep.c:220: warning: implicit declaration of function ‘tolower’
    scripts/basic/fixdep.c:222: warning: incompatible implicit declaration of built-in function ‘printf’
    scripts/basic/fixdep.c:206: warning: unused variable ‘s’
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:225: error: expected declaration specifiers or ‘...’ before ‘size_t’
    scripts/basic/fixdep.c: In function ‘parse_config_file’:
    scripts/basic/fixdep.c:227: error: ‘len’ undeclared (first use in this function)
    scripts/basic/fixdep.c:233: warning: implicit declaration of function ‘ntohl’
    scripts/basic/fixdep.c:244: warning: implicit declaration of function ‘isalnum’
    scripts/basic/fixdep.c: In function ‘strrcmp’:
    scripts/basic/fixdep.c:261: warning: implicit declaration of function ‘strlen’
    scripts/basic/fixdep.c:261: warning: incompatible implicit declaration of built-in function ‘strlen’
    scripts/basic/fixdep.c: In function ‘do_config_file’:
    scripts/basic/fixdep.c:272: error: storage size of ‘st’ isn’t known
    scripts/basic/fixdep.c:276: warning: implicit declaration of function ‘open’
    scripts/basic/fixdep.c:276: error: ‘O_RDONLY’ undeclared (first use in this function)
    scripts/basic/fixdep.c:278: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:278: error: ‘stderr’ undeclared (first use in this function)
    scripts/basic/fixdep.c:280: warning: incompatible implicit declaration of built-in function ‘exit’
    scripts/basic/fixdep.c:282: warning: implicit declaration of function ‘fstat’
    scripts/basic/fixdep.c:284: warning: implicit declaration of function ‘close’
    scripts/basic/fixdep.c:287: warning: implicit declaration of function ‘mmap’
    scripts/basic/fixdep.c:287: error: ‘PROT_READ’ undeclared (first use in this function)
    scripts/basic/fixdep.c:287: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
    scripts/basic/fixdep.c:287: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:294: error: too many arguments to function ‘parse_config_file’
    scripts/basic/fixdep.c:296: warning: implicit declaration of function ‘munmap’
    scripts/basic/fixdep.c:272: warning: unused variable ‘st’
    scripts/basic/fixdep.c: At top level:
    scripts/basic/fixdep.c:301: error: expected declaration specifiers or ‘...’ before ‘size_t’
    scripts/basic/fixdep.c: In function ‘parse_dep_file’:
    scripts/basic/fixdep.c:304: error: ‘len’ undeclared (first use in this function)
    scripts/basic/fixdep.c:306: error: ‘PATH_MAX’ undeclared (first use in this function)
    scripts/basic/fixdep.c:308: warning: implicit declaration of function ‘strchr’
    scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-in function ‘strchr’
    scripts/basic/fixdep.c:310: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:310: error: ‘stderr’ undeclared (first use in this function)
    scripts/basic/fixdep.c:311: warning: incompatible implicit declaration of built-in function ‘exit’
    scripts/basic/fixdep.c:313: warning: incompatible implicit declaration of built-in function ‘memcpy’
    scripts/basic/fixdep.c:314: warning: incompatible implicit declaration of built-in function ‘printf’
    scripts/basic/fixdep.c:306: warning: unused variable ‘s’
    scripts/basic/fixdep.c: In function ‘print_deps’:
    scripts/basic/fixdep.c:343: error: storage size of ‘st’ isn’t known
    scripts/basic/fixdep.c:347: error: ‘O_RDONLY’ undeclared (first use in this function)
    scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:349: error: ‘stderr’ undeclared (first use in this function)
    scripts/basic/fixdep.c:351: warning: incompatible implicit declaration of built-in function ‘exit’
    scripts/basic/fixdep.c:355: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:359: error: ‘PROT_READ’ undeclared (first use in this function)
    scripts/basic/fixdep.c:359: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
    scripts/basic/fixdep.c:359: warning: assignment makes pointer from integer without a cast
    scripts/basic/fixdep.c:366: error: too many arguments to function ‘parse_dep_file’
    scripts/basic/fixdep.c:343: warning: unused variable ‘st’
    scripts/basic/fixdep.c: In function ‘traps’:
    scripts/basic/fixdep.c:378: warning: incompatible implicit declaration of built-in function ‘fprintf’
    scripts/basic/fixdep.c:378: error: ‘stderr’ undeclared (first use in this function)
    scripts/basic/fixdep.c:380: warning: incompatible implicit declaration of built-in function ‘exit’
    make[1]: *** [scripts/basic/fixdep] Error 1
    make: *** [scripts_basic] Error 2


    Plz help me..
    Thanks in advance

  2. #2
    Linux Newbie Tutku's Avatar
    Join Date
    Jul 2007
    Location
    Izmir / Turkey
    Posts
    167
    If you didn't connect to internet, it is normal to give this result:

    Reading the package lists…Done
    Building dependency tree
    Reading state information …Done
    E: Couldn’t find package kernel-package
    Before using APT, make sure that you're connected to internet, or you can use *.deb packages for offline installing.

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    27

    problem in installing the packages in Ubuntu -7.10

    Hello..
    Thanks for the reply...

    Can u plz tell me how to install the packages without connecting to the internet....
    form where i can download it with which extention......
    and how to install them.....

    thanks in advance...

  4. $spacer_open
    $spacer_close

Posting Permissions

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