LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How do i install a driver for a wireless usb adapter (debian) (https://www.linuxquestions.org/questions/linux-networking-3/how-do-i-install-a-driver-for-a-wireless-usb-adapter-debian-833392/)

neil2010 09-21-2010 11:24 AM

apt-get install linux-image-2.6-i686
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-image-2.6-i686

neil2010 09-21-2010 11:33 AM

# Backported packages for Debian Lenny
deb http://backports.debian.org/debian-backports lenny-backports main contrib non-free

# deb cdrom:[Debian GNU/Linux 5.0.6 _Lenny_ - Official i386 DVD Binary-1 20100904-19:12]/ lenny contrib main


deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib

TobiSGD 09-21-2010 11:38 AM

OK, my error, the correct command should be apt-get -t lenny-backports install linux-image-2.6-686

neil2010 09-21-2010 11:41 AM

apt-get -t lenny-backports install linux-image-2.6-686Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
linux-image-2.6-686: Depends: linux-image-2.6.32-bpo.5-686 but it is not going to be installed
E: Broken packages

TobiSGD 09-21-2010 11:44 AM

OK, then try apt-get dist-upgrade first, maybe this helps. If not, try apt-get -t lenny-backports install linux-image-2.6.32-bpo.5-686

neil2010 09-21-2010 11:48 AM

apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


apt-get -t lenny-backports install linux-image-2.6.32-bpo.5-686
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
linux-image-2.6.32-bpo.5-686: Depends: linux-base (>= 2.6.32-23~bpo50+1) but it is not going to be installed
E: Broken packages

TobiSGD 09-21-2010 11:51 AM

I don't have a clue anymore. I think after all that it would be better to install Squeeze, you don't have to use backports than.

neil2010 09-21-2010 11:55 AM

ok many thanks for all your help. You have helped me learn quite a lot in my first 24 hours of linux.

If i get it working i will post what i did in here.

Thanks again.

Peace

Neil.

neil2010 09-21-2010 01:53 PM

ok think i have almsot got there...this is how far i have got now.(i have done another clean install of debian)


first i went to

debian:/home/neil# nano /etc/apt/sources.list

and added

# Backported packages for Debian Lenny
deb http://backports.debian.org/debian-backports lenny-backports main contrib non-free

and saved the changes

then

debian:/home/neil# aptitude update

Writing extended state information... Done
Ign cdrom://[Debian GNU/Linux 5.0.6 _Lenny_ - Official i386 DVD Binary-1 20100904-19:12] lenny Release.gpg
Ign cdrom://[Debian GNU/Linux 5.0.6 _Lenny_ - Official i386 DVD Binary-1 20100904-19:12] lenny/contrib Translation-en_GB
Ign cdrom://[Debian GNU/Linux 5.0.6 _Lenny_ - Official i386 DVD Binary-1 20100904-19:12] lenny/main Translation-en_GB
Ign cdrom://[Debian GNU/Linux 5.0.6 _Lenny_ - Official i386 DVD Binary-1 20100904-19:12] lenny Release
Ign cdrom://[Debian GNU/Linux 5.0.6 _Lenny_ - Official i386 DVD Binary-1 20100904-19:12] lenny/contrib Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 5.0.6 _Lenny_ - Official i386 DVD Binary-1 20100904-19:12] lenny/main Packages/DiffIndex
Hit http://security.debian.org lenny/updates Release.gpg
Ign http://security.debian.org lenny/updates/main Translation-en_GB
Ign http://security.debian.org lenny/updates/contrib Translation-en_GB
Hit http://security.debian.org lenny/updates Release
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Ign http://security.debian.org lenny/updates/contrib Sources/DiffIndex
Hit http://security.debian.org lenny/updates/main Packages
Hit http://security.debian.org lenny/updates/contrib Packages
Hit http://security.debian.org lenny/updates/main Sources
Hit http://security.debian.org lenny/updates/contrib Sources
Get:1 http://backports.debian.org lenny-backports Release.gpg [835B]
Ign http://backports.debian.org lenny-backports/main Translation-en_GB
Ign http://backports.debian.org lenny-backports/contrib Translation-en_GB
Ign http://backports.debian.org lenny-backports/non-free Translation-en_GB
Get:2 http://backports.debian.org lenny-backports Release [74.3kB]
Get:3 http://backports.debian.org lenny-backports/main Packages [476kB]
Get:4 http://backports.debian.org lenny-backports/contrib Packages [1886B]
Get:5 http://backports.debian.org lenny-backports/non-free Packages [7568B]
Fetched 560kB in 3s (144kB/s)
Reading package lists... Done

Current status: 1562 new [+1562].
debian:/home/neil# aptitude -t lenny-backports install linux-image-2.6-$(uname -r | sed 's,.*-,,') firmware-ralink wireless-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
firmware-linux-free{a} firmware-ralink libuuid-perl{a} linux-base{a}
linux-image-2.6.32-bpo.5-686{a} wireless-tools
The following packages will be upgraded:
linux-image-2.6-686
1 packages upgraded, 6 newly installed, 0 to remove and 96 not upgraded.
Need to get 27.2MB/27.3MB of archives. After unpacking 78.6MB will be used.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
Media Change: Please insert the disc labeled 'Debian GNU/Linux 5.0.6 _Lenny_ - Official i386 DVD Binary-1 20100904-19:12' in the drive '/cdrom/' and press [Enter].

Get:1 http://backports.debian.org lenny-backports/main linux-base 2.6.32-23~bpo50+1 [157kB]
Get:2 http://backports.debian.org lenny-backports/main linux-image-2.6.32-bpo.5-686 2.6.32-23~bpo50+1 [26.9MB]
Get:3 http://backports.debian.org lenny-backports/main firmware-linux-free 2.6.32-23~bpo50+1 [139kB]
Get:4 http://backports.debian.org lenny-backports/non-free firmware-ralink 0.24~bpo50+1 [18.9kB]
Get:5 http://backports.debian.org lenny-backports/main linux-image-2.6-686 2.6.32+27~bpo50+1 [3138B]
Fetched 27.2MB in 2min32s (179kB/s)
Preconfiguring packages ...
Selecting previously deselected package libuuid-perl.
(Reading database ... 88526 files and directories currently installed.)
Unpacking libuuid-perl (from .../libuuid-perl_0.02-3+b1_i386.deb) ...
Selecting previously deselected package linux-base.
Unpacking linux-base (from .../linux-base_2.6.32-23~bpo50+1_all.deb) ...
Selecting previously deselected package linux-image-2.6.32-bpo.5-686.
Unpacking linux-image-2.6.32-bpo.5-686 (from .../linux-image-2.6.32-bpo.5-686_2.6.32-23~bpo50+1_i386.deb) ...
Selecting previously deselected package firmware-linux-free.
Unpacking firmware-linux-free (from .../firmware-linux-free_2.6.32-23~bpo50+1_all.deb) ...
Selecting previously deselected package firmware-ralink.
Unpacking firmware-ralink (from .../firmware-ralink_0.24~bpo50+1_all.deb) ...
Preparing to replace linux-image-2.6-686 2.6.26+17+lenny1 (using .../linux-image-2.6-686_2.6.32+27~bpo50+1_i386.deb) ...
Unpacking replacement linux-image-2.6-686 ...
Selecting previously deselected package wireless-tools.
Unpacking wireless-tools (from .../wireless-tools_29-1.1_i386.deb) ...
Processing triggers for man-db ...
Setting up libuuid-perl (0.02-3+b1) ...
Setting up linux-base (2.6.32-23~bpo50+1) ...
Setting up linux-image-2.6.32-bpo.5-686 (2.6.32-23~bpo50+1) ...
Running depmod.
Running update-initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.32-bpo.5-686
Running update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.32-bpo.5-686
Found kernel: /boot/vmlinuz-2.6.26-2-686
Updating /boot/grub/menu.lst ... done

Setting up firmware-linux-free (2.6.32-23~bpo50+1) ...
Setting up firmware-ralink (0.24~bpo50+1) ...
Setting up linux-image-2.6-686 (2.6.32+27~bpo50+1) ...
Setting up wireless-tools (29-1.1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done

Current status: 96 updates [-1].

*after installing all the updates from disc i then rebooted (remove disc)

then went back to terminal


debian:/home/neil# modprobe rt2870sta
debian:/home/neil# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 Ralink STA ESSID:"" Nickname:""
Mode:Auto Frequency=2.412 GHz
Link Quality=10/100 Signal level:0 dBm Noise level:-143 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

debian:/home/neil# ifconfig wlan0 up
SIOCSIFFLAGS: Operation not permitted
debian:/home/neil#

TobiSGD 09-21-2010 02:16 PM

Wow, I wonder why it is working now. I recommend to use a graphical tool to do the rest, like wicd or gnome-network-manager.
I have to say that you did it well, many had given up with this sort of problems right at the beginning and had thought: "Linux sucks, I will stick with Windows!"
Congratulations and have a lot of fun with your Debian.

neil2010 09-21-2010 02:36 PM

Thank you. Your help was immense and extremely appreciated.

I have gone this route for wifi config....

$ su
# aptitude update
# aptitude install network-manager-gnome

Am having a little difficulty with it finding my router but i will keep trying!


Peace.

Neil.

banditman 09-22-2010 05:09 PM

wicd seems to work best for me never had much luck with reliability and network-manager it kept dropping the connection.
Try apt-get install wicd wicd-client for a better setup imho!

neil2010 09-23-2010 09:37 PM

SOLVED:

I tried both wicd and NetworkManager and had no success. I then played around with the router settings for an eternity and decided to post a question asking about a getting a better router.
This led to a post advising me that usb adapters are problematic so i decided to swap my main windows wireless pc card (idimax wireless lan Pci card EW-7128g) over to my linux pc. Then i followed the instructions for Ralink RT2500 devices http://wiki.debian.org/fr/WiFi/rt2500I


Then after i installed the NetworkManager my router was immediately visable.


All times are GMT -5. The time now is 06:14 PM.