The Perfect Setup - Ubuntu 6.10 Server (Edgy Eft) - Page 4

Discussion in 'Installation/Configuration' started by hal2710, Dec 20, 2006.

  1. hal2710

    hal2710 New Member

    Hi


    I have got as far as section 8


    8 Install Some Software

    Now we install a few packages that are needed later on. Run

    apt-get install binutils cpp cpp-4.0 fetchmail flex gcc gcc-4.0 libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++

    (This command should go into one line!)




    I get this error from Putty

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package linux-kernel-headers is a virtual package provided by:
    linux-libc-dev 2.6.17.1-10.34
    You should explicitly select one to install.
    E: Package linux-kernel-headers has no installation candidate


    Q: Is this an error ??

    I'm abit on the new side

    Here is a cut and paste from the putty terminal of everthing I have done so for :-

    Using username "root".
    root@192.168.10.2's password:
    Last login: Wed Dec 20 18:32:19 2006 from 192.168.0.200
    Linux PugWash 2.6.17-10-server #2 SMP Fri Oct 13 18:47:26 UTC 2006 i686

    The programs included with the Ubuntu system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
    applicable law.
    root@PugWash:~# hostname
    PugWash
    root@PugWash:~# hostname -f
    PugWash
    root@PugWash:~# apt-get update
    Get: 1 http://security.ubuntu.com edgy-security Release.gpg [191B]
    Ign http://security.ubuntu.com edgy-security/main Translation-en_GB
    Ign http://security.ubuntu.com edgy-security/restricted Translation-en_GB
    Ign http://security.ubuntu.com edgy-security/universe Translation-en_GB
    Hit http://security.ubuntu.com edgy-security Release
    Get: 2 http://de.archive.ubuntu.com edgy Release.gpg [191B]
    Ign http://de.archive.ubuntu.com edgy/main Translation-en_GB
    Ign http://de.archive.ubuntu.com edgy/restricted Translation-en_GB
    Ign http://de.archive.ubuntu.com edgy/universe Translation-en_GB
    Get: 3 http://de.archive.ubuntu.com edgy-updates Release.gpg [191B]
    Ign http://de.archive.ubuntu.com edgy-updates/main Translation-en_GB
    Ign http://de.archive.ubuntu.com edgy-updates/restricted Translation-en_GB
    Get: 4 http://de.archive.ubuntu.com edgy Release [34.7kB]
    Get: 5 http://de.archive.ubuntu.com edgy-updates Release [23.3kB]
    Hit http://security.ubuntu.com edgy-security/main Packages
    Hit http://security.ubuntu.com edgy-security/restricted Packages
    Hit http://security.ubuntu.com edgy-security/main Sources
    Get: 6 http://de.archive.ubuntu.com edgy/main Packages [940kB]
    Hit http://security.ubuntu.com edgy-security/restricted Sources
    Get: 7 http://security.ubuntu.com edgy-security/universe Packages [12.4kB]
    Get: 8 http://security.ubuntu.com edgy-security/universe Sources [1476B]
    Get: 9 http://de.archive.ubuntu.com edgy/restricted Packages [5974B]
    Get: 10 http://de.archive.ubuntu.com edgy/main Sources [274kB]
    Get: 11 http://de.archive.ubuntu.com edgy/restricted Sources [1436B]
    Get: 12 http://de.archive.ubuntu.com edgy/universe Packages [3559kB]
    Get: 13 http://de.archive.ubuntu.com edgy/universe Sources [1068kB]
    Get: 14 http://de.archive.ubuntu.com edgy-updates/main Packages [45.7kB]
    Get: 15 http://de.archive.ubuntu.com edgy-updates/restricted Packages [14B]
    Get: 16 http://de.archive.ubuntu.com edgy-updates/main Sources [14.9kB]
    Get: 17 http://de.archive.ubuntu.com edgy-updates/restricted Sources [14B]
    Fetched 5981kB in 28s (209kB/s)
    Reading package lists... Done
    root@PugWash:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be upgraded:
    gnupg info linux-image-2.6.17-10-server tar x11-common
    5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 25.4MB of archives.
    After unpacking 958kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get: 1 http://security.ubuntu.com edgy-security/main tar 1.15.91-2ubuntu0.3 [346kB]
    Get: 2 http://de.archive.ubuntu.com edgy-updates/main x11-common 1:7.1.1ubuntu6.2 [291kB]
    Get: 3 http://security.ubuntu.com edgy-security/main gnupg 1.4.3-2ubuntu3.2 [1056kB]
    Get: 4 http://security.ubuntu.com edgy-security/main info 4.8.dfsg.1-1ubuntu0.1 [163kB]
    Get: 5 http://security.ubuntu.com edgy-security/main linux-image-2.6.17-10-server 2.6.17.1-10.34 [23.6MB]
    Fetched 25.4MB in 1m39s (256kB/s)
    Preconfiguring packages ...
    (Reading database ... 13890 files and directories currently installed.)
    Preparing to replace tar 1.15.91-2 (using .../tar_1.15.91-2ubuntu0.3_i386.deb) ...
    Unpacking replacement tar ...
    Setting up tar (1.15.91-2ubuntu0.3) ...

    (Reading database ... 13890 files and directories currently installed.)
    Preparing to replace x11-common 1:7.1.1ubuntu6 (using .../x11-common_1%3a7.1.1ubuntu6.2_i386.deb) ...
    Unpacking replacement x11-common ...
    Preparing to replace gnupg 1.4.3-2ubuntu3 (using .../gnupg_1.4.3-2ubuntu3.2_i386.deb) ...
    Unpacking replacement gnupg ...
    Preparing to replace info 4.8.dfsg.1-1 (using .../info_4.8.dfsg.1-1ubuntu0.1_i386.deb) ...
    Unpacking replacement info ...
    Preparing to replace linux-image-2.6.17-10-server 2.6.17-10.33 (using .../linux-image-2.6.17-10-server_2.6.17.1-10.34_i386.deb) ...
    The directory /lib/modules/2.6.17-10-server still exists. Continuing as directed.
    Done.
    Unpacking replacement linux-image-2.6.17-10-server ...
    Running postrm hook /sbin/update-grub .
    Searching for GRUB installation directory ... found: /boot/grub
    Testing for an existing GRUB menu.list file ... found: /boot/grub/menu.lst
    Searching for splash image ... none found, skipping ...
    Found kernel: /boot/vmlinuz-2.6.17-10-server
    Found kernel: /boot/memtest86+.bin
    Updating /boot/grub/menu.lst ... done

    Setting up x11-common (7.1.1ubuntu6.2) ...
    System startup links for /etc/init.d/x11-common already exist.

    Setting up gnupg (1.4.3-2ubuntu3.2) ...
    Setting up info (4.8.dfsg.1-1ubuntu0.1) ...

    Setting up linux-image-2.6.17-10-server (2.6.17.1-10.34) ...
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.17-10-server
    Not updating initrd symbolic links since we are being updated/reinstalled
    (2.6.17-10.33 was configured last, according to dpkg)
    Not updating image symbolic links since we are being updated/reinstalled
    (2.6.17-10.33 was configured last, according to dpkg)
    Running postinst hook /sbin/update-grub.
    Searching for GRUB installation directory ... found: /boot/grub
    Testing for an existing GRUB menu.list file ... found: /boot/grub/menu.lst
    Searching for splash image ... none found, skipping ...
    Found kernel: /boot/vmlinuz-2.6.17-10-server
    Found kernel: /boot/memtest86+.bin
    Updating /boot/grub/menu.lst ... done


    root@PugWash:~# rm -f /bin/sh
    root@PugWash:~# ln -s /bin/bash /bin/sh
    root@PugWash:~# apt-get install binutils cpp cpp-4.0 fetchmail flex gcc gcc-4.0 libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package linux-kernel-headers is a virtual package provided by:
    linux-libc-dev 2.6.17.1-10.34
    You should explicitly select one to install.
    E: Package linux-kernel-headers has no installation candidate
    root@PugWash:~#
    root@PugWash:~#


    HTH as I don't want to go any further as I will probably mess things up.


    Thanks

    Hal2710
     
  2. falko

    falko Super Moderator

    Please leave out the package linux-kernel-headers in the apt-get command and try again.

    BTW, PugWash is no FQDN. Your hostname should be an FQDN.
     
  3. hal2710

    hal2710 New Member

    Hi Falko,

    Thank you for the reply.

    I have done as requested. The apt-get now works. Thank you again.

    My Server setup is now complete :)

    http://hal2710.homeip.net


    Please visit !!!!!

    BTW What would you recommend as FQDN for PugWash@hal2710.homeip.net ?

    This webserver is for personal use on my cable internet connection ! Any ideas ??

    Any way thanks again for your help. Your website and the Perfect Setup Guide made the difference when thinking about my own webserver project. I am a Windows user but began with BBC Micro and Sinclair Spectrum 48K !! I have been grasping at Linux for a while and this Site is Brilliant to say the least.


    Long may you 'ROCK' Amodeus


    Hal2710 & Tabitha
     
  4. DaRKNeSS666NL

    DaRKNeSS666NL New Member

    Okee,

    I am starting allover again. So I did an fresh install and got the same error, I already tried it myself without the linux-kernel-headers and then it's installing.

    My Question dont we need the linux-kernel-headers any more?
    I think it's maby already in the update/upgrade. Because thats the one thing that's differend whit my last install.

    DaRKNeSS
     
  5. falko

    falko Super Moderator

    No it's not required.
    I think some packages were renamed/removed in the repositories.
     

Share This Page