kali安裝後的更新源與安裝中文輸入法
1.更新軟體源:
修改sources.list檔案:
vim /etc/apt/sources.list
然後選擇新增以下適合自己較快的源(可自由選擇喔):
#中科大
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.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.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
#浙大
#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.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://http.kali.org/kali kali-rolling main non-free contrib
#deb-src http://http.kali.org/kali kali-rolling main non-free contrib
#重慶大學
#deb http://http.kali.org/kali kali-rolling main non-free contrib
#deb-src http://http.kali.org/kali kali-rolling main non-free contrib
儲存之後執行:
apt-get update #刷新系統(告訴系統我更新了sources.list喲)
apt-get upgrade#安裝更新(把已經下載好了的軟體在新源情況更新一下)
apt-get dist-upgrade #安裝更新2
這裡介紹一下 upgrade 和 dist-upgrade的區別
man一下。。
upgrade: upgrade is
used to install the newest versions of all packages currently installed on the
system from the sources enumerated in /etc/apt/sources.list. Packages currently
installed with new versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages not already
installed retrieved and installed. New versions of currently installed packages
that cannot be upgraded without changing the install status of another package
will be left at their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
dist-upgrade: dist-upgrade in addition to performing
the function of upgrade, also intelligently handles changing dependencies with
new versions of packages; apt-get has a "smart" conflict resolution system, and
it will attempt to upgrade the most important packages at the expense of
less
upgrade:系統將現有的Package升級,如果有相依性的問題,而此相依性需要安裝其它新的Package或影響到其它Package的相依性時,此Package就不會被升級,會保留下來.
dist-upgrade:可以聰明的解決相依性的問題,如果有相依性問題,需要安裝/移除新的Package, 就會試著去安裝/移除它.
(所以通常這個會被認為是有點風險的升級)
apt-get upgrade 和 apt-get dist-upgrade 本質上是沒有什麼不同的。
只不過,dist-upgrade 會識別出當依賴關係改變的情形並作出處理,而upgrade對此情形不處理。
例如軟體包 a 原先依賴 b c d,但是在源裡面可能已經升級了,現在是 a 依賴 b c e。這種情況下,dist-upgrade 會刪除 d 安裝 e,並把 a 軟體包升級,而 upgrade 會認為依賴關係改變而拒絕升級 a。。
簡單來說,upgrade之前要先update一下,upgrade不會處理一些依賴性的問題,如果更新的軟體出現依賴性的
2 安裝中文輸入法
在更新源了之後,執行命令
apt-get install fcitx fcitx-googlepinyin
然後reboot之後 去應用程式介面就可以看到企鵝圖示的Fcitx了。。
然後 control + space就可以用中文輸入法了。。。
因為我用kali也是用一些 內建的安全軟體,一般學習辦公不會用到太多。。所以,先暫時操作這些吧。。以後需要用到的再補上。