在kali Linux2021中安装搜狗输入法
1.编辑/etc/apt/sources.list软件源配置文件,命令vi /etc/apt/sources.list
2.将原来的kali官方源注释掉,然后向其中加入源,我这里加的是阿里云源
kali官方源
deb http://http.kali.org/ moto main non-free contrib
deb-src http://http.kali.org/ moto main non-free contrib
deb http://security.kali.org/ moto/updates main contrib non-free
deb-src http://security.kali.org/ moto/updates main contrib non-free
中科大kali源
deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
新加坡kali源
deb http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib
deb-src http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free
deb-src http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free
163 Kali源
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
阿里云kali源
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
东软大学
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
浙大
deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
清华大学
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
注意:其中有些源可能用不了,选择可用的添加即可
3.使用命令apt-get update
更新源
4.使用命令apt-get upgrade更新软件,这步可能需要花费较多时间,也可以直接省略掉
5.然后使用命令apt-get clean
清理,再reboot
重启虚拟机
6.现在打开浏览器搜索搜狗输入法,到官网下载linux版的安装包
点击下载
选择save file
7.安装搜狗输入法,首先进入到/root/下载
目录
然后使用dpkg -i 软件包名
命令安装输入法,我的软件包名为sogoupinyin_2.4.0.3469_amd64.deb
但是可以看到会遇到问题,不慌,现在按照它所需要的软件包一个一个安装,或者也可以直接使用apt -f install
命令来解决依赖包问题
然后再使用dpkg -i sogoupinyin_2.4.0.3469_amd64.deb
命令来安装搜狗输入法
安装完成后重启,打开终端,按Ctrl+空格键
开启搜狗输入法,shift
键切换中英文
在任何需要输入的地方都使用ctrl+空格键
来开启搜狗输入法