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

  • Ubuntu中fcitx安装失败问题,及软件换源问题已关闭评论
  • 154 次浏览
  • A+
所属分类:linux技术
摘要

Ubuntu中fcitx安装失败问题的原因是ubuntu用的是国外镜像源,部分软件下载不了。

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 

换好源后,根据最后根据这个步骤安装即可
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.设置将搜狗^顶上去,第一个即可。完成汉字输入(最后删掉搜狗安装包即可)

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

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

本文转自:https://blog.csdn.net/weixin_42192030/article/details/124597438