annalee@Reynardine:~$ sudo apt-get install --reinstall linux-headers-generic build-essential dkms
[sudo] password for annalee:
annalee@Reynardine:~$ sudo apt-get install --reinstall linux-headers-generic build-essential dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libqt4-declarative:i386 liblcms1:i386 libqt4-qt3support:i386 libcupsimage2:i386
libqt4-test:i386 libqt4-script:i386 libqt4-designer:i386 libqt4-network:i386
libqt4-dbus:i386 libxxf86vm1:i386 libglapi-mesa:i386 libqt4-xmlpatterns:i386 libgdbm3:i386
libqt4-svg:i386 libqt4-xml:i386 libxss1:i386 libqtgui4:i386 libqt4-scripttools:i386
libaudio2:i386 libmng1:i386 libllvm2.9:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
dpkg-dev g++ g++-4.6 libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libdpkg-perl libstdc++6-4.6-dev
Suggested packages:
debian-keyring g++-multilib g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg
libstdc++6-4.6-doc
The following NEW packages will be installed:
build-essential dpkg-dev g++ g++-4.6 libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libdpkg-perl libstdc++6-4.6-dev
0 upgraded, 9 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Need to get 9,418 kB of archives.
After this operation, 30.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1
http://us.archive.ubuntu.com/ubuntu/ oneiric/main libstdc++6-4.6-dev amd64 4.6.1-9ubuntu3 [1,644 kB]
Get:2
http://us.archive.ubuntu.com/ubuntu/ oneiric/main g++-4.6 amd64 4.6.1-9ubuntu3 [6,970 kB]
Get:3
http://us.archive.ubuntu.com/ubuntu/ oneiric/main g++ amd64 4:4.6.1-2ubuntu5 [1,444 B]
Get:4
http://us.archive.ubuntu.com/ubuntu/ oneiric/main libdpkg-perl all 1.16.0.3ubuntu5 [171 kB]
Get:5
http://us.archive.ubuntu.com/ubuntu/ oneiric/main dpkg-dev all 1.16.0.3ubuntu5 [473 kB]
Get:6
http://us.archive.ubuntu.com/ubuntu/ oneiric/main build-essential amd64 11.5ubuntu1 [5,928 B]
Get:7
http://us.archive.ubuntu.com/ubuntu/ oneiric/main dkms all 2.2.0.2-1ubuntu4 [72.3 kB]
Get:8
http://us.archive.ubuntu.com/ubuntu/ oneiric/main libalgorithm-diff-perl all 1.19.02-2 [50.7 kB]
Get:9
http://us.archive.ubuntu.com/ubuntu/ oneiric/main libalgorithm-diff-xs-perl amd64 0.04-1build1 [13.4 kB]
Get:10
http://us.archive.ubuntu.com/ubuntu/ oneiric/main libalgorithm-merge-perl all 0.08-2 [12.7 kB]
Get:11
http://us.archive.ubuntu.com/ubuntu/ oneiric/main linux-headers-generic amd64 3.0.0.12.14 [2,354 B]
Fetched 9,418 kB in 2min 16s (68.9 kB/s)
Selecting previously deselected package libstdc++6-4.6-dev.
(Reading database ... 102879 files and directories currently installed.)
Unpacking libstdc++6-4.6-dev (from .../libstdc++6-4.6-dev_4.6.1-9ubuntu3_amd64.deb) ...
Selecting previously deselected package g++-4.6.
Unpacking g++-4.6 (from .../g++-4.6_4.6.1-9ubuntu3_amd64.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.6.1-2ubuntu5_amd64.deb) ...
Selecting previously deselected package libdpkg-perl.
Unpacking libdpkg-perl (from .../libdpkg-perl_1.16.0.3ubuntu5_all.deb) ...
Selecting previously deselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.16.0.3ubuntu5_all.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.5ubuntu1_amd64.deb) ...
Preparing to replace dkms 2.2.0.2-1ubuntu4 (using .../dkms_2.2.0.2-1ubuntu4_all.deb) ...
Unpacking replacement dkms ...
Selecting previously deselected package libalgorithm-diff-perl.
Unpacking libalgorithm-diff-perl (from .../libalgorithm-diff-perl_1.19.02-2_all.deb) ...
Selecting previously deselected package libalgorithm-diff-xs-perl.
Unpacking libalgorithm-diff-xs-perl (from .../libalgorithm-diff-xs-perl_0.04-1build1_amd64.deb) ...
Selecting previously deselected package libalgorithm-merge-perl.
Unpacking libalgorithm-merge-perl (from .../libalgorithm-merge-perl_0.08-2_all.deb) ...
Preparing to replace linux-headers-generic 3.0.0.12.14 (using .../linux-headers-generic_3.0.0.12.14_amd64.deb) ...
Unpacking replacement linux-headers-generic ...
Processing triggers for man-db ...
Setting up libdpkg-perl (1.16.0.3ubuntu5) ...
Setting up dpkg-dev (1.16.0.3ubuntu5) ...
Setting up dkms (2.2.0.2-1ubuntu4) ...
Setting up libalgorithm-diff-perl (1.19.02-2) ...
Setting up libalgorithm-diff-xs-perl (0.04-1build1) ...
Setting up libalgorithm-merge-perl (0.08-2) ...
Setting up linux-headers-generic (3.0.0.12.14) ...
Setting up libstdc++6-4.6-dev (4.6.1-9ubuntu3) ...
Setting up g++-4.6 (4.6.1-9ubuntu3) ...
Setting up g++ (4:4.6.1-2ubuntu5) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode.
Setting up build-essential (11.5ubuntu1) ...
annalee@Reynardine:~$ apt-get autoremove
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
annalee@Reynardine:~$ sudo apt-get autoremove
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
annalee@Reynardine:~$ wget
http://r8168.googlecode.com/files/r8...025.00.tar.bz2
--2011-11-05 21:27:06--
http://r8168.googlecode.com/files/r8...025.00.tar.bz2
Resolving r8168.googlecode.com... 74.125.113.82
Connecting to r8168.googlecode.com|74.125.113.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 61491 (60K) [application/x-bzip2]
Saving to: `r8168-8.025.00.tar.bz2'
100%[================================================== ==>] 61,491 341K/s in 0.2s
2011-11-05 21:27:06 (341 KB/s) - `r8168-8.025.00.tar.bz2' saved [61491/61491]
annalee@Reynardine:~$ tar xvf r8168-8.025.00.tar.bz2
r8168-8.025.00/
r8168-8.025.00/Makefile
r8168-8.025.00/src/
r8168-8.025.00/src/rtl_eeprom.h
r8168-8.025.00/src/r8168_asf.h
r8168-8.025.00/src/rtltool.h
r8168-8.025.00/src/r8168_asf.c
r8168-8.025.00/src/r8168_n.c
r8168-8.025.00/src/rtl_eeprom.c
r8168-8.025.00/src/rtltool.c
r8168-8.025.00/src/Makefile
r8168-8.025.00/src/r8168.h
r8168-8.025.00/src/Makefile_linux24x
r8168-8.025.00/README
r8168-8.025.00/autorun.sh
annalee@Reynardine:~$ cd r8168-8.025.00
annalee@Reynardine:~/r8168-8.025.00$ sudo modprobe -rf r8169
annalee@Reynardine:~/r8168-8.025.00$ sudo ./autorun.sh
Check old driver and unload it.
Build the module and install
[: 48: r8168: unexpected operator
Backup r8169.ko
rename r8169.ko to r8169.bak
Depending module. Please wait.
load module r8168
FATAL: Module r8168 not found.
Completed.
annalee@Reynardine:~/r8168-8.025.00$ echo 'blacklist r8169' | sudo tee -a /etc/modprobe.d/blacklist.conf
blacklist r8169
annalee@Reynardine:~/r8168-8.025.00$ sudo modprobe -v r8168
FATAL: Module r8168 not found.
annalee@Reynardine:~/r8168-8.025.00$ sudo depmod -a
annalee@Reynardine:~/r8168-8.025.00$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-3.0.0-12-generic
Bookmarks