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后操作,不行用上面方法

你可能感兴趣的:(Ubuntu)