Ubuntu折騰記錄

Deep-Learning

安裝NVDIA 驅動、CUDA、 cuDNN

第一步,確定合適的版本,參考NVIDIA驅動 - CUDA - cuDNN 關係

CUDA安裝參考 : https://www.cnblogs.com/dinghongkai/p/11268976.html

Deepin-wine-ubuntu 安裝與卸載

爲了安裝QQ、微信,安裝了deepin-wine-ubuntu容器,結果出了各種問題,所以需要進行卸載,卸載也是Bug頻出,最終成解決,步驟如下:

執行下述命令查看安裝的相關包

dpkg --list | grep deepin.com

卸載所有deepin相關包

sudo dpkg -r $(dpkg --get-selections | grep deepin)
再次查看安裝的包,基本清除了,最後清除rc標記的包

dpkg -l | grep ^rc | cut -d' ' -f3 | sudo xargs dpkg --purge

網易雲

http://s1.music.126.net/download/pc/netease-cloud-music_0.9.0-2_amd64.deb

【其他版本可能出錯】

sudo dpkg -i netease-cloud-music_1.1.0_amd64_ubuntu.deb

sudo apt-get -f install

搜狗拼音

有些依賴包錯誤,導致無法apt upgrade,所以需要用dpkg -r 卸載搜狗拼音

sudo apt-get install -f

GitNote

path : /home/yourname/.local/share/applications

文件右下角有鎖

sudo shown -R user:user file

Terminal 方向鍵變爲^[[A等

若在 ubuntu 系統下運行含有 source 命令的 shell 腳本時,出現 source: not found 錯誤,原因可能是 shell 的解釋器不是 bash,需把 shell 的解釋器更改爲 bash。

請按以下步驟更改 shell 的解釋器。
執行 ls -l /bin/sh 命令,若得到結果 /bin/sh -> dash ,則說明 shell 的解釋器爲 dash
執行 dpkg-reconfigure dash 命令,然後選擇 no
注意:此步驟需要 root 權限
再次執行 ls -l /bin/sh 命令,若得到結果 /bin/sh -> bash,則說明成功更改 shell 的解釋器爲 bash。

source not found

試試輸入bash後操作,不行用上面方法

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章