Ubuntu中fcitx安装失败问题的原因是ubuntu用的是国外镜像源,部分软件下载不了。
对策:
更换国内镜像源可以使 Ubuntu 的第三方软件包的下载速度大步提升,这里以更换为阿里源为例:
源文件的相关信息在”/etc/apt/”路径下,使用cd /etc/apt进入文件
源链接存放在文件[ sources.list ]中,进入文件:sudo nano sources.list
将[ sources.list ]中的内容都删除,替换成下面阿里云的链接:
1、进入阿里源官方镜像站:
https://developer.aliyun.com/mirror/
2、点击 Ubuntu 进入:
https://developer.aliyun.com/mirror/ubuntu
3.下载复制对应版本的源
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
先备份系统原有的软件源配置
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
将复制的阿里源粘贴到新建的 sources.list 中
sudo vi /etc/apt/sources.list
更新软件源以及更新软件:
sudo apt-get update && apt-get upgrade
更改源文件后,可以按照最后一步进行安装。
[En]
After changing the source, you can install it according to the final step.
https://pinyin.sogou.com/linux/guide
个人安装依次用到的命令如下:
1.sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
(源表备份)
2.sudo vi /etc/apt/sources.list
(vim打开源表,保留原表信息,然后将aliyun的源直接复制在源表的末尾,保存退出)
3.sudo apt-get update && apt-get upgrade
(更新源表和软件信息,直接删除源表可能会导致之前安装的软件找不到路径,无法打开。)
[En]
(update the source table and software information, and delete the source table directly may cause the previously installed software not to find the path and cannot open it.)
4.sudo apt-get install fcitx(安装fcitx,中间需要下载汉字(简体版))
5.sudo dpkg -i sogoupinyin_4.0.1.2123_amd64.deb(安装搜狗输入法,这一步需要提前在https://pinyin.sogou.com/linux/guide下载好linux)
6.安装输入法依赖
在终端执行
sudo apt install libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2
sudo apt install libgsettings-qt1
7.重启系统
8.设置将搜狗^顶上去,第一个即可。完成汉字输入(最后删掉搜狗安装包即可)
本文转自:https://blog.csdn.net/weixin_42192030/article/details/124597438
Original: https://www.cnblogs.com/helong-123/p/16381143.html
Author: 萌褚
Title: Ubuntu中fcitx安装失败问题,及软件换源问题
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/523367/
转载文章受原作者版权保护。转载请注明原作者出处!