Results 1 to 10 of 10

Thread: problem on: Updating realtek driver from r8169 to r8168?

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Beans
    56

    problem on: Updating realtek driver from r8169 to r8168?

    I followed an instruction mentioned on this topic: Ubuntu 12.04 and realtek at #3 answer:
    Code:
    sudo gedit  /etc/modprobe.d/blacklist.conf
    Adding line: blacklist r8169
    Code:
    sudo update-initramfs -u && cd ~/Downloads && tar xvf r8168-8.035.00.tar.bz2 && cd r8168-8.035.00 && sudo sh autorun.sh
    But I get this error:

    Check old driver and unload it
    rmmod r8169
    Build the module and install
    make: *** /lib/modules/3.5.0-17-generic/build: No such file or directory. Stop
    make[1]: *** [clean] Error 2
    make: *** [clean] Error 2
    Last edited by GnuKian; December 30th, 2012 at 07:43 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    20,793
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: problem on: Updating realtek driver from r8169 to r8168?

    make: *** /lib/modules/3.5.0-17-generic/build: No such file or directory.
    I suspect the required build tools aren't yet installed:
    Code:
    sudo apt-get install build-essential linux-headers-generic
    Then try to compile and install the driver again.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  3. #3
    Join Date
    Dec 2012
    Beans
    56

    Re: problem on: Updating realtek driver from r8169 to r8168?

    I installed "build-essential" and "linux-headers-generic" packages. But I still get that error:
    Code:
     Check old driver and unload it.
    Build the module and install
    make: *** /lib/modules/3.5.0-17-generic/build: No such file or directory.  Stop.
    make[1]: *** [clean] Error 2
    make: *** [clean] Error 2

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    20,793
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: problem on: Updating realtek driver from r8169 to r8168?

    I wonder if the dependent linux-headers matching your running kernel are correctly installed. Please do:
    Code:
    sudo apt-get install --reinstall linux-headers-`uname -r`
    Those backticks are on the left side of my US keyboard on the same key with ~.

    Then try to re-compile r8168.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  5. #5
    Join Date
    Dec 2012
    Beans
    56

    Smile Re: problem on: Updating realtek driver from r8169 to r8168?

    Code:
     sudo apt-get install --reinstall linux-headers-`uname -r`
    [sudo] password for kian:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    linux-headers-3.5.0-17-generic
    0 upgraded, 1 newly installed, 0 to remove and 220 not upgraded.
    Need to get 946 kB of archives.
    After this operation, 11.2 MB of additional disk space will be used.
    Get:1 http://ubuntu.trumpetti.atm.tut.fi/ubuntu/ quantal/main linux-headers-3.5.0-17-generic amd64 3.5.0-17.28 [946 kB]
    Fetched 946 kB in 51s (18.4 kB/s)
    Selecting previously unselected package linux-headers-3.5.0-17-generic.
    (Reading database ... 169034 files and directories currently installed.)
    Unpacking linux-headers-3.5.0-17-generic (from .../linux-headers-3.5.0-17-generic_3.5.0-17.28_amd64.deb) ...
    Setting up linux-headers-3.5.0-17-generic (3.5.0-17.28) ...

    Code:
    sudo update-initramfs -u && sudo sh autorun.sh
    Check old driver and unload it.
    rmmod r8169
    Build the module and install
    Backup r8169.ko
    rename r8169.ko to r8169.bak
    DEPMOD 3.5.0-17-generic
    load module r8168
    Updating initramfs. Please wait.
    update-initramfs: Generating /boot/initrd.img-3.5.0-17-generic
    Completed.

    Code:
    nm-tool
    NetworkManager Tool
    State: connected (global)
    - Device: eth0 [Wired connection 1]
    Type: Wired
    Driver: r8168
    State: connected
    Default: yes
    Capabilities:
    Carrier Detect: yes
    Speed: 100 Mb/s
    Wired Properties
    Carrier: on
    IPv4 Settings:
    Address: 192.168.1.2
    Prefix: 24 (255.255.255.0)
    Gateway: 192.168.1.1
    DNS: 192.168.1.1


    ================================================

    I done and it worked (:
    pleaes receive my best regards, @
    chili555.
    (It solved at last after one week!)

    Just, I want to know what happened with the last command? -> linux-headers-`uname -r` vs linux-headers-generic
    Last edited by GnuKian; December 30th, 2012 at 09:20 PM.

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    20,793
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: problem on: Updating realtek driver from r8169 to r8168?

    linux-headers-generic is supposed to have as a dependency and correctly install the actual headers matching your running kernel, in your case 3.5.0-17-generic. For some reason, it doesn't always go as smoothly as it should and all the parts are not installed correctly. You verified that -generic was installed. We fixed 3.5.0-17.

    Now that it's working, you might just double-check -generic:
    Code:
    sudo apt-get install --reinstall linux-headers-generic
    Glad it's working!
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

Tags for this Thread

Bookmarks

Posting Permissions

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