Ubuntu18更换源错误可能导致的问题

Ubuntu18更换源错误可能导致的问题

问题1: IDEA无法输入中文:

  • 环境:

    • 操作系统:

      No LSB modules are available.
      Distributor ID:	Ubuntu
      Description:	Ubuntu 18.04.5 LTS
      Release:	18.04
      Codename:	bionic
      
    • IDEA:

      社区版2020.3
      
  • 成功方案:

    • 參考: https://github.com/libpinyin/ibus-libpinyin/issues/289

    • 概述: 不需要更換jdk, 不需要修改idea.sh,在Help->Custom VM Options中加入参数:

      -Drecreate.x11.input.method=true
      
  • 失败方案1:

    • 参考: https://blog.youkuaiyun.com/beguile/article/details/88950729
    • 概述: 修改idea.sh,添加如下内容:
      export XMODIFIERS="@im=fcitx"
      export GTK_IM_MODULE="fcitx"
      export QT_IM_MODULE="fcitx"
      
  • 失败方案2: 修改jdk为oracle的jdk

    • 参考: https://blog.youkuaiyun.com/xc516410823/article/details/103501189
    • 概述: 基于或不基於方案1, 修改~/.profile , 设置IDEA_JDK=${JAVA_HOME}

问题2: 蓝牙键盘重启机器后不能连接

修改正确的源, 匹配lsb_release -a 中的版本代号之后更新。

lsb_release -a

输出:

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic

可以看到版本代号为: bionic

cat /etc/apt/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 

注意其中bionic字样的内容, 如果不是,说明源的设置与发行版不符合,会导致一系列莫名其妙的问题。该问题是由于更换源时不注意导致。

解决办法:
修改版本别名为正确的代号,然后更新系统。

apt update
apt upgrade

问题3: Python无法更新包

解决办法同上

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值