Link to home
Start Free TrialLog in
Avatar of ConsJMEA
ConsJMEA

asked on

Install offline wireless USB adapter linux TP-Link

Hello. The network card on my PC is damaged. I bought a TP-LINK 150Mbps Wireless N Nano USB adapter TL-WN725N. I've downloaded  rtl8192cu-tjp-dkms_1.6_all.deb package from Github and I've tried to install it without success. First I've realized that dkms is not installed:

********************
sudo dpkg -i rtl8192cu-tjp-dkms_1.6_all.deb

Seleccionando el paquete rtl8192cu-tjp-dkms previamente no seleccionado.
(Leyendo la base de datos ... 131259 ficheros o directorios instalados actualmente.)
Desempaquetando rtl8192cu-tjp-dkms (de rtl8192cu-tjp-dkms_1.6_all.deb) ...
dpkg: problemas de dependencias impiden la configuración de rtl8192cu-tjp-dkms:
 rtl8192cu-tjp-dkms depende de dkms (>= 1.95); sin embargo:
  El paquete `dkms' no está instalado.

dpkg: error al procesar rtl8192cu-tjp-dkms (--install):
 problemas de dependencias - se deja sin configurar
Se encontraron errores al procesar:
 rtl8192cu-tjp-dkms
********************

When I've tried to install dkms I've received an error message:

********************
sudo apt-get install dkms
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias      
Leyendo la información de estado... Hecho
Tal vez quiera ejecutar «apt-get -f install» para corregirlo:
Los siguientes paquetes tienen dependencias incumplidas:
 dkms : Depende: gcc pero no va a instalarse
        Depende: make pero no va a instalarse o
                 build-essential pero no va a instalarse o
                 dpkg-dev pero no va a instalarse
        Recomienda: fakeroot pero no va a instalarse
        Recomienda: linux-headers-686-pae pero no va a instalarse o
                    linux-headers-amd64 pero no va a instalarse o
                    linux-headers-generic pero no es instalable o
                    linux-headers
E: Dependencias incumplidas. Intente «apt-get -f install» sin paquetes (o especifique una solución).
********************

I'm not really sure if I'm going in the right way. For this reason I prefer to consult Experts before continuing.

My system info:

********************
uname -a
Linux ELIC 3.2.0-4-686-pae #1 SMP Debian 3.2.57-3 i686 GNU/Linux

cat /proc/cpuinfo
processor      : 0
vendor_id      : GenuineIntel
cpu family      : 15
model            : 6
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping      : 5
microcode      : 0x7
cpu MHz            : 2400.000
cache size      : 2048 KB
physical id      : 0
siblings      : 2
core id            : 0
cpu cores      : 1
apicid            : 0
initial apicid      : 0
fdiv_bug      : no
hlt_bug            : no
f00f_bug      : no
coma_bug      : no
fpu            : yes
fpu_exception      : yes
cpuid level      : 6
wp            : yes
flags            : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl est tm2 cid cx16 xtpr pdcm lahf_lm
bogomips      : 5999.95
clflush size      : 64
cache_alignment      : 128
address sizes      : 36 bits physical, 48 bits virtual
power management:

processor      : 1
vendor_id      : GenuineIntel
cpu family      : 15
model            : 6
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping      : 5
microcode      : 0x7
cpu MHz            : 2400.000
cache size      : 2048 KB
physical id      : 0
siblings      : 2
core id            : 0
cpu cores      : 1
apicid            : 1
initial apicid      : 1
fdiv_bug      : no
hlt_bug            : no
f00f_bug      : no
coma_bug      : no
fpu            : yes
fpu_exception      : yes
cpuid level      : 6
wp            : yes
flags            : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl est tm2 cid cx16 xtpr pdcm lahf_lm
bogomips      : 6000.60
clflush size      : 64
cache_alignment      : 128
address sizes      : 36 bits physical, 48 bits virtual
power management:
********************

Thanks
SOLUTION
Avatar of ThomasMcA2
ThomasMcA2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rindi
Are you sure you even need to install any of those 3rd party packages? Linux generally has very good out of the box support for most LAN and WLAN NIC's. Have you tried just plugging it in and checking if it is recognized and usable? Otherwise, usually the necessary modules are directly available through the distro's repo's.
Avatar of ConsJMEA
ConsJMEA

ASKER

Thanks all. I want test the post of rindi before to apply the ThomasMcA2 solution. The adapter is connected all time in the PC but the network icon shows that there are not avalable networks. I've executed the next commands:

********************
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0bda:8179 Realtek Semiconductor Corp.
Bus 002 Device 002: ID 0461:4d03 Primax Electronics, Ltd Kensington Mouse-in-a-box
Bus 001 Device 004: ID 13fe:1a00 Kingston Technology Company Inc. 512MB/1GB Flash Drive
********************

dmesg | grep USB
[    3.000944] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.010806] ehci_hcd 0000:00:03.3: new USB bus registered, assigned bus number 1
[    3.025503] ehci_hcd 0000:00:03.3: USB 2.0 started, EHCI 1.00
[    3.025608] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.025615] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.025964] hub 1-0:1.0: USB hub found
[    3.027058] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.027158] ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 2
[    3.082173] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    3.082182] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.082535] hub 2-0:1.0: USB hub found
[    3.085838] ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 3
[    3.142059] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    3.142065] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.142337] hub 3-0:1.0: USB hub found
[    3.142910] ohci_hcd 0000:00:03.2: new USB bus registered, assigned bus number 4
[    3.198046] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    3.198052] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.198319] hub 4-0:1.0: USB hub found
[    3.336046] usb 1-1: new high-speed USB device number 2 using ehci_hcd
[    3.468849] usb 1-1: New USB device found, idVendor=0bda, idProduct=8179
[    3.468857] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.828027] usb 2-2: new low-speed USB device number 2 using ohci_hcd
[    4.033000] usb 2-2: New USB device found, idVendor=0461, idProduct=4d03
[    4.033006] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.141929] generic-usb 0003:0461:4D03.0001: input,hidraw0: USB HID v1.00 Mouse [HID 0461:4d03] on usb-0000:00:03.0-2/input0
[    4.141987] usbhid: USB HID core driver
[  173.412041] usb 1-2: new high-speed USB device number 4 using ehci_hcd
[  173.548341] usb 1-2: New USB device found, idVendor=13fe, idProduct=1a00
[  173.548348] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  173.616944] Initializing USB Mass Storage driver...
[  173.617454] USB Mass Storage support registered.

*******************

There are another test I need or this is enough to know that I need install the dirvers?

Thanks
I want also to clarify that I've not conexion to Internet with this computer. If I need to install some package I must download it with another computer.
Thanks
I've tried the solution proposed by ThomasMcA2:

sudo apt-get install build-essential gcc make dpkg-dev fakeroot linux-headers-amd64 linux-headers-generic linux-headers
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias      
Leyendo la información de estado... Hecho
El paquete linux-headers-generic no está disponible, pero algún otro paquete hace referencia
a él. Esto puede significar que el paquete falta, está obsoleto o sólo se
encuentra disponible desde alguna otra fuente

El paquete linux-headers es un paquete virtual provisto por:
  linux-headers-3.2.0-4-rt-686-pae 3.2.63-2+deb7u1
  linux-headers-3.2.0-4-amd64 3.2.63-2+deb7u1
  linux-headers-3.2.0-4-686-pae 3.2.63-2+deb7u1
  linux-headers-3.2.0-4-486 3.2.63-2+deb7u1
  linux-headers-rt-686-pae 3.2+46
  linux-headers-amd64 3.2+46
  linux-headers-686-pae 3.2+46
  linux-headers-486 3.2+46
Necesita seleccionar explícitamente uno para instalar.

E: El paquete «linux-headers-generic» no tiene un candidato para la instalación
E: El paquete «linux-headers» no tiene un candidato para la instalación

It looks like I need another package for install or I need to select the correct package. Thanks.
My Spanish is a little weak, but I think it's telling you that the linux-headers package is a virtual package, and that you should replace that name with one of them that are listed below it. The package names that end in deb7u1 have more patches/updates than the ones without deb7u1 in their names.

Since the command already has linux-headers-amd64, you may not need linux-headers. So try this modified command:

sudo apt-get install build-essential gcc make dpkg-dev fakeroot linux-headers-amd64

Open in new window

Thank you for your suggestions. First I've changed to English the system language. I've repeated my last command:
sudo apt-get install build-essential gcc make dpkg-dev fakeroot linux-headers-amd64 linux-headers-generic linux-headers 
Reading package lists... Done 
Building dependency tree       
Reading state information... Done 
Package linux-headers-generic is not available, but is referred to by another package. 
This may mean that the package is missing, has been obsoleted, or 
is only available from another source 

Package linux-headers is a virtual package provided by: 
  linux-headers-3.2.0-4-rt-686-pae 3.2.63-2+deb7u1 
  linux-headers-3.2.0-4-amd64 3.2.63-2+deb7u1 
  linux-headers-3.2.0-4-686-pae 3.2.63-2+deb7u1 
  linux-headers-3.2.0-4-486 3.2.63-2+deb7u1 
  linux-headers-rt-686-pae 3.2+46 
  linux-headers-amd64 3.2+46 
  linux-headers-686-pae 3.2+46 
  linux-headers-486 3.2+46 
You should explicitly select one to install. 

E: Package 'linux-headers-generic' has no installation candidate 
E: Package 'linux-headers' has no installation candidate

Open in new window


Then I've executed your latest suggestion:

sudo apt-get install build-essential gcc make dpkg-dev fakeroot linux-headers-amd64 
Reading package lists... Done 
Building dependency tree       
Reading state information... Done 
You might want to run 'apt-get -f install' to correct these: 
The following packages have unmet dependencies: 
 build-essential : Depends: libc6-dev but it is not going to be installed or 
                            libc-dev 
                   Depends: g++ (>= 4:4.4.3) but it is not going to be installed 
 dpkg-dev : Depends: libdpkg-perl (= 1.16.15) but it is not going to be installed 
            Depends: binutils but it is not going to be installed 
            Recommends: libalgorithm-merge-perl but it is not going to be installed 
 gcc : Depends: gcc-4.7 (>= 4.7.2-1~) but it is not going to be installed 
       Recommends: libc6-dev but it is not going to be installed or 
                   libc-dev 
 linux-headers-amd64 : Depends: linux-headers-3.2.0-4-amd64 but it is not going to be installed 
 rtl8192cu-tjp-dkms : Depends: dkms (>= 1.95) but it is not going to be installed 
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

Open in new window


Due to the system answer, I've executed:

sudo apt-get -f install 
Reading package lists... Done 
Building dependency tree       
Reading state information... Done 
Correcting dependencies... Done 
The following extra packages will be installed: 
  binutils cpp-4.6 dkms fakeroot gcc gcc-4.6 gcc-4.6-base gcc-4.7 libc-bin 
  libc-dev-bin libc6 libc6-dev libc6-i686 libitm1 
  linux-headers-3.2.0-4-686-pae linux-headers-3.2.0-4-common 
  linux-headers-686-pae linux-kbuild-3.2 linux-libc-dev make manpages-dev 
Suggested packages: 
  binutils-doc gcc-4.6-locales gcc-multilib autoconf automake1.9 libtool flex 
  bison gdb gcc-doc gcc-4.6-multilib libmudflap0-4.6-dev gcc-4.6-doc 
  libgcc1-dbg libgomp1-dbg libquadmath0-dbg libmudflap0-dbg binutils-gold 
  gcc-4.7-multilib libmudflap0-4.7-dev gcc-4.7-doc gcc-4.7-locales libitm1-dbg 
  libcloog-ppl0 libppl-c2 libppl7 glibc-doc make-doc 
The following NEW packages will be installed: 
  binutils cpp-4.6 dkms fakeroot gcc gcc-4.6 gcc-4.6-base gcc-4.7 libc-dev-bin 
  libc6-dev libitm1 linux-headers-3.2.0-4-686-pae linux-headers-3.2.0-4-common 
  linux-headers-686-pae linux-kbuild-3.2 linux-libc-dev make manpages-dev 
The following packages will be upgraded: 
  libc-bin libc6 libc6-i686 
3 upgraded, 18 newly installed, 0 to remove and 119 not upgraded. 
1 not fully installed or removed. 
Need to get 44.1 MB of archives. 
After this operation, 104 MB of additional disk space will be used. 
Do you want to continue [Y/n]? Y

Open in new window


When I've entered "Y", the system gives to me a large number of error messages like:

Err http://security.debian.org/ wheezy/updates/main linux-libc-dev i386 3.2.63-2+deb7u1 
  Could not resolve 'security.debian.org' 

Open in new window


or

Failed to fetch http://ftp.us.debian.org/debian/pool/main/e/eglibc/libc6_2.13-38+deb7u6_i386.deb  Could not resolve 'ftp.us.debian.org' 

Open in new window


At the end the system says:

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

Open in new window


It looks like the system waits for an Internet connection.
How can I download the needed packages with another computer and install them in my computer?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've purchased the wireless NIC and I've not a normal one. However I've learned that it is very complicated install the device offline. Thus I'll change the adapter with a normal NIC. Thanks.