记录使用Kali linux以来遇到的一些错误,多数答案参考谷歌。
1、perl: warning: Falling back to the standard locale ("C").
vim ~/.bashrc
增加 :export LC_ALL=C
然后 :source ~/.bashrc
2、E: Sub-process /usr/bin/dpkg returned an error code (1)
解决:
mv /var/lib/dpkg/info{,.bak}
mkdir /var/lib/dpkg/info
apt-get --reinstall install 包名
3、E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
解决:apt-get --fix-broken install
切换桌面管理器:
update-alternatives --config x-session-manager
终端字体重叠
启动系统,打开终端,输入以下命令安装字体:
apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
移除gnome桌面、使用lxde桌面管理器
apt-get remove gnome-core apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base update-alternatives –config x-session-manager
Kali Linux 2.0 源
# Regular repositories deb http://http.kali.org/kali kali-rolling main contrib non-free deb http://http.kali.org/kali sana main non-free contrib deb http://security.kali.org/kali-security sana/updates main contrib non-free # Source repositories deb-src http://http.kali.org/kali sana main non-free contrib deb-src http://security.kali.org/kali-security sana/updates main contrib non-free deb-src http://http.kali.org/kali kali-rolling main contrib non-free
安装Flash
apt-get install flashplugin-nonfree update-flashplugin-nonfree –install
安装中文输入法
apt-get install fcitx apt-get install fcitx-googlepinyin //安装谷歌拼音
安装pip2和pip3
apt-get install python-pip apt-get install python3-pip
安装内核头 linux-headers
apt-get update && apt-get upgrade apt-get install linux-headers-$(uname -r)
切换登陆管理器(gdm、kdm...)
dpkg-reconfigure gdm