配置网络
ip addr add 172.16.130.96/24 dev enp3s0
route add default gw 172.16.130.254
echo nameserver 114.114.114.114 >> /etc/resolv.conf
开启root账号
enable root更新源
- sudo vim /etc/apt/source.list (修改前先备份)
- 阿里云
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
-
执行更新命令
image.png- 解决方法:直接删掉
/var/lib/apt/lists/lock
- 解决方法:直接删掉
安装输入法
image-
打开下载目录,调出终端。或者直接双击
- sudo dpkg -i sogoupinyin_2.1.0.00826_amd64.deb
如果出现安装出错,就重复该命令安装几次直到成功
-
sudo apt-get install -f
-
打开“系统设置“,点击”语言支持“,然后弹出下面的框图,点击”安装“。
然后输入密码什么的,等一会儿就好
image4、然后把里面的IBus改为fcitx,然后关掉,然后重启电脑。
image5、重启电脑后,会看到屏幕右上角有企鹅输入fcitx。
image6、然后右键点开,选择ConfigureFcitx。
image7、然后点击弹出的框的左下方的”+“号,添加搜狗输入法,去掉那个只“显示当前语言”的选项,然后搜索框输入sog,你会发现搜狗输入法已经有了,选中输入法即可,然后关闭。
image8、然后打开一个能输入文字的软件,比如word,输入文字的时候,shift键进行中英文切换,你会发现屏幕右上方的搜狗输入法图标有了,搜狗输入法安装成功,输入文字正常,但是这个时候,输入法输入中文显示会乱码,没关系,重启电脑或者下次开机就好了。
image
网友评论