0.更新镜像源
- 修改/etc/apt/sources.list,在其中添加阿里源,因为Ubuntu和其他版本的Linux工具不同,权限这一块做的比较完善,所以我们直接切换至root模式下,进行此步操作
$sudo su #切换至root
#在此输入你的root密码
#cd /etc/apt/
#cp -p sources.list sources.list_bak # 备份原文件
#vi sources.list #编辑配置文件
在配置文件最前面添加如下信息:
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
- 使用以下命令更新系统和工具
#apt-get update # 刷新系统
#apt-get dist-upgrade #安装更新
1.打开Ubuntu自带的Firefox浏览器,输入下面网址
https://pinyin.sogou.com/linux/
2. 选择适合于自己Linux版本的版本软件,保存文件
3.打开终端,进入到下载目录,输入以下命令(建议在root下操作)
#sudo dpkg -i sogopinyin_2.2.0.0108_amd64.deb
# sudo apt-get install -f