PDA

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



lookas88
2016-12-19, 02:46
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 .......

_defalt
2016-12-19, 14:59
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)

lookas88
2016-12-19, 21:55
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'

Roatandave
2016-12-19, 23:45
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.

lookas88
2016-12-20, 04:13
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 .......

pedropt
2016-12-20, 11:16
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 .

Roatandave
2016-12-20, 11:25
Also try sudo apt-get install --fix-missing, this sometimes works.

Keep going and I will keeping checking back.

Dave

_defalt
2016-12-20, 19:30
Are you using kali rolling edition? Show output of uname -a.
Have you tried apt-get dist-upgrade to update all dependencies?

lookas88
2016-12-21, 01:18
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/kali/pool/main/z/zlib/zlib1g_1.2.8.dfsg-4_i386.deb 404 Not Found [IP: 90.147.160.69 80]
E: Failed to fetch http://kali.mirror.garr.it/mirrors/kali/pool/main/libg/libgcrypt20/libgcrypt20_1.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/g/glib-networking/glib-networking-services_2.50.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 ,

_defalt
2016-12-21, 11:45
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.

lookas88
2016-12-21, 17:41
no chance , a same problem after any changes .....

_defalt
2016-12-27, 06:56
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.

lookas88
2016-12-29, 19:03
i can finally recompiling kernel , but after reboot , screen show me :
kernel panic - not syncing : Fatal exception
what does mean ?

_defalt
2017-01-01, 18:54
Run `sudo apt-cache clean && sudo apt-get update && sudo apt-get dist-upgrade`

lookas88
2017-01-09, 18:42
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