栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Ubuntu中fcitx安装失败问题,及软件换源问题

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Ubuntu中fcitx安装失败问题,及软件换源问题

.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?spm=a2c6h.13651102.0.0.3e221b11cdy70M
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

换好源后,根据最后根据这个步骤安装即可
https://pinyin.sogou.com/linux/guide

参考文章:
1.https://blog.csdn.net/DIVINER_Feng/article/details/123115759
2.https://blog.csdn.net/qq_44214671/article/details/122738812
3.https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11cdy70M
4.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
    (更新源表及软件信息,直接删除源表可能导致以前安装的软件找不到路径打不开了)
    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.设置将搜狗^顶上去,第一个即可。完成汉字输入(最后删掉搜狗安装包即可)

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/865860.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号