Results 1 to 15 of 15

Thread: I can not do anything with Kali system, i can't install driver & app

  1. #1
    Join Date
    2016-Dec
    Posts
    7

    I can not do anything with Kali system, i can't install driver & app

    Hello everyone,
    I am a beginner on linux, I installed kali linux 2.0 with success, everything seems to work, I bought a Ralink wifi sensor, to start practicing what I studied,
    And there, the surprise, it's been a week since I could not install a simple driver, the termnial says: << make: *** No rule to make target 4.6.0-kali1-686-pae ' , Needed by 'all'. Stop >>
    I have searched on internel, people say that it is necessary to recompile the kernel, so I have accessed the Kali site to see how to recompile, and from the first command the terminal makes me Error:
    # - after apt-get update--
    Root @ debian: ~ apt-get install kernel-package ncurses-dev fakeroot unxz
    Reading package lists ... Done
    Building dependency tree
    Reading state information ... Done
    Note, select 'libncurses5-dev' instead of 'ncurses-dev'
    E: Unable to locate package unxz

    And in another command:
    The following packages have unmet dependencies:
    Linux-compiler-gcc-4.9-x86: Depends on gcc-4.9
    Linux-kbuild-4.4-dbgsym: Depends on linux-kbuild-4.4 (= 4.4.6-1kali1) but it is not installable
    E: Unmet dependencies. Try using -f.


    Even for VLC the installation was not made,
    And when I wanted to install Linux-compiler

    Root @ debian: ~ # dpkg -i /root/Desktop/pae/linux-compiler-gcc-4.9-x86_4.8.11-1~bpo8+1_i386.deb
    (Reading database ... 308753 files and directories currently installed.)
    Preparing to unpack ... / linux-compiler-gcc-4.9-x86_4.8.11-1 ~ bpo8 + 1_i386.deb ...
    Unpacking linux-compiler-gcc-4.9-x86 (4.8.11-1 ~ bpo8 + 1) over (4.8.11-1 ~ bpo8 + 1) ...
    Dpkg: dependency problems prevent configuration of linux-compiler-gcc-4.9-x86:
    Linux-compiler-gcc-4.9-x86 depends on gcc-4.9; However:
    Package gcc-4.9 is not installed.

    Dpkg: error processing package linux-compiler-gcc-4.9-x86 (--install):
    Dependency problems - leaving unconfigured
    Errors were encountered while processing:
    Linux-compiler-gcc-4.9-x86
    -------------------------------------------------- -------------
    Help me, I could not do the slightest thing, I risk breaking the computer .......

  2. #2
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Open the sources.list file:

    gksudo gedit /etc/apt/sources.list
    Add the following line (carefully):

    deb http://old.kali.org/kali sana main non-free contrib
    # For source package access, uncomment the following line
    # deb-src http://old.kali.org/kali sana main non-free contrib
    Save it then run the following commands :

    apt-get update
    apt-get dist-upgrade
    apt-get upgrade
    apt-cache search linux-headers
    Then install the appropriate linux-headers:

    sudo apt-get install linux-headers-$(uname -r)
    Last edited by _defalt; 2016-12-21 at 11:48.

  3. #3
    Join Date
    2016-Dec
    Posts
    7
    My firend,
    My list (sources.list) is configured as follows:
    Deb http://http.kali.org/kali kali-rolling main contrib non-free
    Deb http://old.kali.org/kali sana main non-free contrib
    Deb http://old.kali.org/kali moto main non-free contrib
    After the update and upgrade,
    The command makes me Error:
    Root @ debian: ~ # sudo apt-get install linux-headers - $ (uname -r)
    Reading package lists ... Done
    Building dependency tree
    Reading state information ... Done
    E: Unable to locate package linux-headers-4.6.0-kali1-686-pae
    E: Could not find any package by glob 'linux-headers-4.6.0-kali1-686-pae'
    E: Could not find any package by regex 'linux-headers-4.6.0-kali1-686-pae'

  4. #4
    Join Date
    2016-Oct
    Location
    South Texas
    Posts
    20
    If you need to install a ralink driver, open a terminal and type sudo apt-get install firmware-ralink.
    This will install the needed driver, also for firmware-atheros and firmware-realtek.
    These will cover most wifi adapters.

    I read the last line of your post: after 20 years of linux I still want to kill my computer.
    Never give up.
    Last edited by Roatandave; 2016-12-20 at 00:14.

  5. #5
    Join Date
    2016-Dec
    Posts
    7
    Thank you for your encouragement, it makes me want to continue until the end
    ........
    sudo apt-get install firmware-ralink
    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:
    firmware-misc-nonfree : Breaks: firmware-ralink
    linux-compiler-gcc-4.9-x86 : Depends: gcc-4.9 but it is not going to be installed
    linux-kbuild-4.4-dbgsym : Depends: linux-kbuild-4.4 (= 4.4.6-1kali1) but it is not installable
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

    .....always problem of gcc .......

  6. #6
    Join Date
    2014-Mar
    Posts
    163
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

    the log says everything
    apt-get install -f
    or you can use
    aptitude install -f
    to fix packages that are incompatible with the tools you are trying to install .

  7. #7
    Join Date
    2016-Oct
    Location
    South Texas
    Posts
    20
    Also try sudo apt-get install --fix-missing, this sometimes works.

    Keep going and I will keeping checking back.

    Dave

  8. #8
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Are you using kali rolling edition? Show output of uname -a.
    Have you tried apt-get dist-upgrade to update all dependencies?

  9. #9
    Join Date
    2016-Dec
    Posts
    7
    this is what uname -a show me :
    Linux debian 4.6.0-kali1-686-pae #1 SMP Debian 4.6.4-1kali1 (2016-07-21) i686 GNU/Linux

    i tried upgrade, system download 930M of package and after that he show me :
    Fetched 925 MB in 1h 32min 12s (167 kB/s)
    E: Failed to fetch http://kali.mirror.garr.it/mirrors/k...fsg-4_i386.deb 404 Not Found [IP: 90.147.160.69 80]
    E: Failed to fetch http://kali.mirror.garr.it/mirrors/k...7.3-2_i386.deb 400 Bad Request [IP: 90.147.160.69 80]
    E: Failed to fetch http://http.kali.org/kali/pool/main/...0.0-1_i386.deb 404 Not Found
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    and

    root@debian:~# sudo apt-get install --fix-missing
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 1480 not upgraded.

    Finally

    root@debian:~# sudo apt-get install linux-headers-$(uname -r)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package linux-headers-4.6.0-kali1-686-pae
    E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-686-pae'
    E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-686-pae

    -------------------------------------------------------------------

    No chance ,

  10. #10
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by lookas88 View Post
    My firend,
    My list (sources.list) is configured as follows:
    Deb http://http.kali.org/kali kali-rolling main contrib non-free
    Deb http://old.kali.org/kali sana main non-free contrib
    Deb http://old.kali.org/kali moto main non-free contrib
    You are using Retired kali sana(2.0). The only entries in your sources.list should be:

    deb http://old.kali.org/kali sana main non-free contrib
    # For source package access, uncomment the following line
    # deb-src http://old.kali.org/kali sana main non-free contrib

    Then enter:
    apt-get update
    apt-get dist-upgrade
    apt-get upgrade

    Then continue with my previous comment to install linux headers. I edited my previous reply to make it more clear how to do it.
    Last edited by _defalt; 2016-12-21 at 11:49.

  11. #11
    Join Date
    2016-Dec
    Posts
    7
    no chance , a same problem after any changes .....

  12. #12
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    It's hard to locate your actual problem. If you're still not able to work on it then I suggest you to install kali-linux rolling edition. It's the latest variant and I didn't find any kernel related problems with it.

  13. #13
    Join Date
    2016-Dec
    Posts
    7
    i can finally recompiling kernel , but after reboot , screen show me :
    kernel panic - not syncing : Fatal exception
    what does mean ?

  14. #14
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Run `sudo apt-cache clean && sudo apt-get update && sudo apt-get dist-upgrade`

  15. #15
    Join Date
    2016-Dec
    Posts
    7
    hey there ,
    I formatted my computer, and installed an amd64, then I directly modify the Sources.list and I put a single Kali Rolling link, then update & upgrade.
    After that I directly place the command of the installation of Kernel Header and the command has been well passed and now all is well, I was able to install all drivers and applications
    Thank you very much defalt
    Issue resolved

Similar Threads

  1. System Freeze AC1200 realtek-rtl88xxau driver
    By VanMan in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2019-09-01, 07:38
  2. After Nvidia driver installs, system reboot's to blank screen.
    By Spider in forum TroubleShooting Archive
    Replies: 11
    Last Post: 2018-02-21, 06:53
  3. Alfa AWUS051NH USB driver loads many times until system locks
    By webpwnized in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2014-06-28, 21:06

Posting Permissions

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