wifi packages for debian

Discussion in 'Linux Networking' started by Chester, Dec 28, 2013.

  1. Chester

    Chester New Member

    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    3
    Hey linux friends, I want to install a wifi package on my debian 6.0.7 using usb, do you have any recommendation?
    (I can't connect to internet using cable on my debian)

    Thanks!!!

    DevynCJohnson likes this.
  2. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    910
    Likes Received:
    290
    Trophy Points:
    63
  3. Yesyesloud

    Yesyesloud Active Member

    Messages:
    180
    Likes Received:
    85
    Trophy Points:
    28
    I was visiting the networking forum and saw this old post. Although the question may have been solved...

    I don't know what kind of package you want to install for your wifi, I'll assume you just want to get it to work. I'd suggest a clean backport patch for your device, so that you just add the desired driver to your kernel using the official releases. Installing documentation also included: http://wireless.kernel.org/en/users/Download
    Last edited: Jan 4, 2014
  4. Darren Hale

    Darren Hale Active Member

    Messages:
    208
    Likes Received:
    87
    Trophy Points:
    28
    I would also recommend using wicd it so easy for wireless management as well as what has been stated above for drivers etc.
  5. lobo

    lobo Active Member

    Messages:
    134
    Likes Received:
    81
    Trophy Points:
    28
    Without more info on the hardware in question, it's all guess work...
    ryanvade likes this.
  6. pane-free

    pane-free Active Member

    Messages:
    304
    Likes Received:
    72
    Trophy Points:
    28
    smxi is an award-winning set of scripts for Debian that makes post-install tweaks like installing ceni for wifi network management very simple.

    in console [Ctrl-Alt-F1 (thru F6)] either login as root or create a root passwd first with
    Code:
    sudo passwd root
    and then login;
    Code:
    install unzip
    Code:
    cd /usr/local/bin && wget -Nc smxi.org/smxi.zip && unzip smxi.zip && smxi
    then reboot with
    Code:
    init 6
    and login as root again before running
    Code:
    smxi
    And (this is the fun part) finding in these scripts where to install ceni

    Ceni is a very powerful tool for wifi and arguably the best for wifi management in Debian

    NOTE: must use either testing or unstable to be able to do this, I believe.

    Best wishes!
  7. Chester

    Chester New Member

    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    3

    The detailed problem is
    Code:
    root@localhost:~# iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    wlan0    IEEE 802.11bgn  ESSID:off/any
              Mode:Managed  Access Point: Not-Associated  Tx-Power=14 dBm
              Retry  long limit:7  RTS thr:off  Fragment thr:off
              Encryption key:off
              Power Management:off
           
    pan0      no wireless extensions.
    
    root@localhost:~# lspci
    00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09)
    00:01.0 PCI bridge: Intel Corporation Sandy Bridge PCI Express Root Port (rev 09)
    00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09)
    00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04)
    00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 05)
    00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 05)
    00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b5)
    00:1c.1 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 2 (rev b5)
    00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b5)
    00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 05)
    00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 05)
    00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 05)
    00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 05)
    01:00.0 VGA compatible controller: nVidia Corporation Device 0df6 (rev a1)
    07:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57781 Gigabit Ethernet PCIe (rev 10)
    08:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
    09:00.0 System peripheral: JMicron Technology Corp. SD/MMC Host Controller (rev 30)
    09:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller (rev 30)
    09:00.3 System peripheral: JMicron Technology Corp. MS Host Controller (rev 30)
    09:00.4 System peripheral: JMicron Technology Corp. xD Host Controller (rev 30)
    
    
    root@localhost:~# /etc/init.d/networking restart
    Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
    Reconfiguring network interfaces...RTNETLINK answers: No such process
    Internet Systems Consortium DHCP Client 4.1.1-P1
    Copyright 2004-2010 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/
    
    Listening on LPF/wlan0/74:e5:0b:6b:70:3a
    Sending on  LPF/wlan0/74:e5:0b:6b:70:3a
    Sending on  Socket/fallback
    grep: /etc/resolv.conf: No such file or directory
    /sbin/wpa_supplicant: error while loading shared libraries: libnl-3.so.200: cannot open shared object file: No such file or directory
    wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
    run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
    Internet Systems Consortium DHCP Client 4.1.1-P1
    Copyright 2004-2010 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/
    
    SIOCSIFFLAGS: No such file or directory
    SIOCSIFFLAGS: No such file or directory
    Listening on LPF/wlan0/74:e5:0b:6b:70:3a
    Sending on  LPF/wlan0/74:e5:0b:6b:70:3a
    Sending on  Socket/fallback
    receive_packet failed on wlan0: Network is down
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
    send_packet: Network is down
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
    send_packet: Network is down

    I got nothing
    Last edited: Jan 9, 2014
  8. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    910
    Likes Received:
    290
    Trophy Points:
    63
    It looks like you are missing some libraries.

    Can you search for it (As root)
    Code:
    find  / -name libnl-3.so.200
    On my Arch Linux system it was located in /usr/bin
  9. pane-free

    pane-free Active Member

    Messages:
    304
    Likes Received:
    72
    Trophy Points:
    28
    iwlwifi is required for your Centrino card, FYI
    ryanvade likes this.
  10. Chester

    Chester New Member

    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    3
    How to use? When I typed iwlwifi, it said command not found

    Thank you very much!

    Code:
    
    root@localhost:/home/chester# apt-cache policy libnl-3-200 wpasupplicant firmware
    wpasupplicant:
      Installed: 1.0-3+b2
      Candidate: 1.0-3+b2
      Version table:
    *** 1.0-3+b2 0
            100 /var/lib/dpkg/status
        0.6.10-2.1 0
            500 cdrom://[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-1 20130223-14:06]/ squeeze/main amd64 Packages
    libnl-3-200:
      Installed: (none)
      Candidate: (none)
      Version table:
    N: Unable to locate package firmware
    
    
    root@localhost:/home/chester# cat /etc/apt/sources.list
    #
    
    # deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-1 20130223-14:06]/ squeeze main
    
    deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-1 20130223-14:06]/ squeeze main
    
    deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-2 20130223-14:06]/ squeeze main
    
    deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-3 20130223-14:06]/ squeeze main
    
    deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-4 20130223-14:06]/ squeeze main
    
    deb http://security.debian.org/ squeeze/updates main
    deb-src http://security.debian.org/ squeeze/updates main
    
    
    
    Last edited: Jan 9, 2014
  11. lobo

    lobo Active Member

    Messages:
    134
    Likes Received:
    81
    Trophy Points:
    28
    To find out if packages are installed and where from:
    Code:
    $ apt-cache policy libnl-3-200 wpasupplicant firmware-iwlwifi 
    (posts these outputs in thread)

    libnl-3-200 is only in Debian wheezy, yet you've said you're running squeeze? (which depends on libnl1)

    Because your wpasupplicant is looking for libnl-3-200, it's obvious that you have wpasupplicant from wheezy or a later release installed...

    Also post this output:
    Code:
    $ cat /etc/apt/sources.list
    When asking for help on a forum you should explain what you have tried already.
    arochester likes this.
  12. Chester

    Chester New Member

    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    3
    Thank you so much!!! What should I do next?

    Code:
    
    root@localhost:/home/chester# apt-cache policy libnl-3-200 wpasupplicant firmware
    wpasupplicant:
      Installed: 1.0-3+b2
      Candidate: 1.0-3+b2
      Version table:
    *** 1.0-3+b2 0
            100 /var/lib/dpkg/status
        0.6.10-2.1 0
            500 cdrom://[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-1 20130223-14:06]/ squeeze/main amd64 Packages
    libnl-3-200:
      Installed: (none)
      Candidate: (none)
      Version table:
    N: Unable to locate package firmware
    
    
    root@localhost:/home/chester# cat /etc/apt/sources.list
    #
    
    # deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-1 20130223-14:06]/ squeeze main
    
    deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-1 20130223-14:06]/ squeeze main
    
    deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-2 20130223-14:06]/ squeeze main
    
    deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-3 20130223-14:06]/ squeeze main
    
    deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-4 20130223-14:06]/ squeeze main
    
    deb http://security.debian.org/ squeeze/updates main
    deb-src http://security.debian.org/ squeeze/updates main
    
    
    
  13. lobo

    lobo Active Member

    Messages:
    134
    Likes Received:
    81
    Trophy Points:
    28
    You do have wpasupplicant from Debian wheezy installed. I assume you downloaded the package and installed it manually (e.g. with dpkg). It's helpful if you state this kind of thing in thread from the start.

    You should download the following packages :
    http://ftp.us.debian.org/debian/pool/main/w/wpasupplicant/wpasupplicant_0.6.10-2.1_amd64.deb
    http://ftp.us.debian.org/debian/poo...onfree/firmware-iwlwifi_0.28 squeeze1_all.deb
    You need to get these from the computer/OS where you downloaded them and get them onto the Debian system. It's up to you how you do this. Just put them in your user's home directory and install the two packages as root:
    Code:
    $ cd ~
    $ su
    # dpkg -i firm*28*deb
    Code:
    # dpkg -r wpasupplicant
    # dpkg -i wpa*0.6*deb
    Now remove and reinsert the module:
    Code:
    # modprobe -r iwlagn ; modprobe iwlagn
    Now configure your wifi connection:
    https://wiki.debian.org/WiFi/HowToUse

    Once you have a working connection you will need to fix your /etc/apt/sources.list first as follows
    Code:
    #
    
    # deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-1 20130223-14:06]/ squeeze main
    
    # deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-1 20130223-14:06]/ squeeze main
    
    # deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-2 20130223-14:06]/ squeeze main
    
    # deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-3 20130223-14:06]/ squeeze main
    
    # deb cdrom:[Debian GNU/Linux 6.0.7 _Squeeze_ - Official amd64 CD Binary-4 20130223-14:06]/ squeeze main
    
    deb http://security.debian.org/ squeeze/updates main contrib non-free
    #deb-src http://security.debian.org/ squeeze/updates main contrib non-free
    
    deb http://http.debian.net/debian squeeze main contrib non-free
    #deb-src http://http.debian.net/debian squeeze main contrib non-free
    
    deb http://http.debian.net/debian squeeze-updates main contrib non-free
    #deb-src http://http.debian.net/debian squeeze-updates main contrib non-free
    Take careful note of the changes and ensure that the file is exactly as above. If you wish, do the following:
    Code:
    # mv /etc/apt/sources.list /etc/apt/sources.list.old
    Then recreate sources.list by copying and pasting the one I have set up above.
    Then:
    Code:
    # apt-get update && apt-get dist-upgrade
    Last edited: Jan 11, 2014
  14. Chester

    Chester New Member

    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    3
    Connected!!!
    I appreciate that!!!
  15. Chester

    Chester New Member

    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    3
    Code:
    root@debian:/home/chester# dpkg -i /home/chester/Downloads/google-chrome-stable_current_amd64.deb
    Selecting previously deselected package google-chrome-stable.
    (Reading database ... 114061 files and directories currently installed.)
    Unpacking google-chrome-stable (from .../google-chrome-stable_current_amd64.deb) ...
    dpkg: dependency problems prevent configuration of google-chrome-stable:
    google-chrome-stable depends on gconf-service; however:
      Package gconf-service is not installed.
    google-chrome-stable depends on libgconf-2-4 (>= 2.31.1); however:
      Package libgconf-2-4 is not installed.
    google-chrome-stable depends on libgdk-pixbuf2.0-0 (>= 2.22.0); however:
      Package libgdk-pixbuf2.0-0 is not installed.
    google-chrome-stable depends on libgtk2.0-0 (>= 2.24.0); however:
      Version of libgtk2.0-0 on system is 2.20.1-2.
    google-chrome-stable depends on libnspr4 (>= 1.8.0.10); however:
      Package libnspr4 is not installed.
    google-chrome-stable depends on libnss3 (>= 3.14.3); however:
      Package libnss3 is not installed.
    google-chrome-stable depends on libstdc++6 (>= 4.6); however:
      Version of libstdc++6 on system is 4.4.5-8.
    google-chrome-stable depends on libx11-6 (>= 2:1.4.99.1); however:
      Version of libx11-6 on system is 2:1.3.3-4.
    dpkg: error processing google-chrome-stable (--install):
    dependency problems - leaving unconfigured
    Processing triggers for gnome-menus ...
    Processing triggers for desktop-file-utils ...
    Processing triggers for man-db ...
    Processing triggers for menu ...
    Errors were encountered while processing:
    google-chrome-stable
    Sorry, I occurred a problem when I tried to installed google chrome

    I used apt-get -f install, but it didn't work
  16. DevynCJohnson

    DevynCJohnson Super Moderator Staff Member Staff Writer

    Messages:
    973
    Likes Received:
    857
    Trophy Points:
    93
    You are missing some dependencies. This is an entirely different issue than the original post.

    For each "Package XYZ is not installed.", install XYZ via apt like "sudo apt-get install libnspr4".

    For the lines that say something like "Version of XYZ on system is ####.", those need to be updated. "sudo apt-get upgrade"

    In general (this is highly debatable), APT is better than dpkg. Why not use APT?
    Haider92 likes this.
  17. Chester

    Chester New Member

    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    3
    Code:
    root@debian:~# dpkg -i /home/chester/google-chrome-stable_current_amd64.deb
    Selecting previously deselected package google-chrome-stable.
    (Reading database ... 121450 files and directories currently installed.)
    Unpacking google-chrome-stable (from .../google-chrome-stable_current_amd64.deb) ...
    dpkg: dependency problems prevent configuration of google-chrome-stable:
    google-chrome-stable depends on gconf-service; however:
      Package gconf-service is not installed.
    google-chrome-stable depends on libgconf-2-4 (>= 2.31.1); however:
      Package libgconf-2-4 is not installed.
    google-chrome-stable depends on libgdk-pixbuf2.0-0 (>= 2.22.0); however:
      Package libgdk-pixbuf2.0-0 is not installed.
    google-chrome-stable depends on libgtk2.0-0 (>= 2.24.0); however:
      Version of libgtk2.0-0 on system is 2.20.1-2.
    google-chrome-stable depends on libnspr4 (>= 1.8.0.10); however:
      Package libnspr4 is not installed.
    google-chrome-stable depends on libnss3 (>= 3.14.3); however:
      Package libnss3 is not installed.
    google-chrome-stable depends on libstdc++6 (>= 4.6); however:
      Version of libstdc++6 on system is 4.4.5-8.
    google-chrome-stable depends on libx11-6 (>= 2:1.4.99.1); however:
      Version of libx11-6 on system is 2:1.3.3-4+squeeze1.
    dpkg: error processing google-chrome-stable (--install):
    dependency problems - leaving unconfigured
    Processing triggers for gnome-menus ...
    Processing triggers for desktop-file-utils ...
    Processing triggers for man-db ...
    Processing triggers for menu ...
    Errors were encountered while processing:
    google-chrome-stable
    root@debian:~# apt-get -f install
    Reading package lists... Done
    Building dependency tree     
    Reading state information... Done
    Correcting dependencies... Done
    The following packages will be REMOVED:
      google-chrome-stable
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    5 not fully installed or removed.
    After this operation, 177 MB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 121554 files and directories currently installed.)
    Removing google-chrome-stable ...
    Processing triggers for menu ...
    Processing triggers for man-db ...
    Processing triggers for gnome-menus ...
    Processing triggers for desktop-file-utils ...
    Setting up postgresql-8.4 (8.4.17-0squeeze1) ...
    Starting PostgreSQL 8.4 database server: mainThe PostgreSQL server failed to start. Please check the log output: 2014-01-12 00:20:25 AST LOG: could not bind IPv4 socket: Cannot assign requested address 2014-01-12 00:20:25 AST HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. 2014-01-12 00:20:25 AST WARNING: could not create listen socket for "localhost" 2014-01-12 00:20:25 AST FATAL: could not create any TCP/IP sockets ... failed!
    failed!
    invoke-rc.d: initscript postgresql, action "start" failed.
    dpkg: error processing postgresql-8.4 (--configure):
    subprocess installed post-installation script returned error exit status 1
    configured to not write apport reports
                                          dpkg: dependency problems prevent configuration of postgresql:
    postgresql depends on postgresql-8.4; however:
      Package postgresql-8.4 is not configured yet.
    dpkg: error processing postgresql (--configure):
    dependency problems - leaving unconfigured
    configured to not write apport reports
                                          dpkg: dependency problems prevent configuration of postgresql-contrib-8.4:
    postgresql-contrib-8.4 depends on postgresql-8.4; however:
      Package postgresql-8.4 is not configured yet.
    dpkg: error processing postgresql-contrib-8.4 (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of postgresql-contrib:
    postgresql-contrib depends on postgresql-contrib-8.4; however:
      Package postgresql-contrib-8.4 is not configured yet.
    dpkg: error processing postgresql-contrib (--configure):
    dependency problems - leaving unconfigured
    configured to not write apport reports
                                          configured to not write apport reports
                                                                                Errors were encountered while processing:
    postgresql-8.4
    postgresql
    postgresql-contrib-8.4
    postgresql-contrib
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    Thank you very much! I'm trying. Why is APT better than dpkg?

    I got this
  18. Cyber-Berserker

    Cyber-Berserker Active Member

    Messages:
    242
    Likes Received:
    138
    Trophy Points:
    43
    When a poster is using Debian, Slackware, CentOS or other such systems, I suggest giving commands as either:
    1) Including "as normal user" or "as root" in the description; or
    2) As how they will appear in a terminal: preceded by & or #.
    Preceding every command with sudo and following every command with the root password is the Ubuntu way of doing things (sudo abuse). Other systems, using the normal Linux procedure, log into the root account with su. In fact, with Debian sudo is not enabled when installed. Using either of my two suggestions leaves it to the person asking for advice to decide how to enter the commands.
    DevynCJohnson likes this.
  19. DevynCJohnson

    DevynCJohnson Super Moderator Staff Member Staff Writer

    Messages:
    973
    Likes Received:
    857
    Trophy Points:
    93

    The command "apt-get" can find and install dependencies while dpkg cannot.

    http://askubuntu.com/questions/309113/what-is-the-difference-between-dpkg-and-aptitude-apt-get
    Haider92 likes this.
  20. DevynCJohnson

    DevynCJohnson Super Moderator Staff Member Staff Writer

    Messages:
    973
    Likes Received:
    857
    Trophy Points:
    93
    Thanks! You are right, I need to explain installation procedures better.
    Haider92 likes this.

Share This Page