【Linux】Ubuntu常见bugs的修复方法
- 内容介绍
- 文章标签
- 相关推荐
说说Linux你遇到的那些难啃的bugs,欢迎各位佬友继续补充 … …
文件中文重命名最后出现拼音无法删除
image391×114 12.7 KB
如下
https://github.com/libpinyin/ibus-libpinyin/issues/469
https://gitlab.gnome.org/GNOME/mutter/-/issues/3502
→ 卸载默认ibus输入法,装fcitx5
kworker长期占用了10%的CPU
运行top命令,发现进程kworker一直占用了10%的CPU,下不来。
运行如下命令发现问题,音频中断一直调用CPU
sudo perf record -a sleep 60
sudo perf report
→ 禁用显示器HDMI音频,或者Setting-Sound-Output device选择其他音频输出
鼠标无法拉伸软件窗口边缘
一些软件例如pycharm不能拉伸窗口 https://www.reddit.com/r/Ubuntu/comments/1cdh92x/wayland_resizing_windows_problembug/
→ Setting-System-Users,关闭Automatic Login
Dock中无法显示应用程序图标
→ 打开出错的应用,例如mastertxt。按 Alt + F2,输入 lg 按 Enter,找到应用类名称Master Txt
sudo vim /usr/share/applications/mastertxt.desktop 添加如下一行
StartupWMClass=Master Txt
简体中文门等字显示为异体(日文)字形
→ 运行
sudo vim /etc/fonts/conf.d/64-language-selector-cjk-prefer.conf
将所有 Noto Sans CJK SC 放在每一项最前面
sudo fc-cache -fv
也可参考https://wiki.archlinux.org/title/Localization/Simplified_Chinese
文本编辑器顿号句号显示位置出错
方式一【old】
默认文本编辑器以及sublime text都出错,顿号句号显示不在右下角,而是显示在中间
→ 更改文本编辑器默认Ubuntu regular字体为其他字体,例如Monospace
++++ 以上Bugs在Ubuntu24.04, 6.8.0-48-generic,X11的内核版本还存在。
方式二、
ubuntu 字体对中文支持不太好,至少标点不太好,回退成的中文字体也对标点支持不好。修改回退字体。
vim /home//.config/fontconfig/fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<!-- Keep code fonts for Latin text, but use a CJK monospace fallback for Chinese punctuation. -->
<match target="pattern">
<test name="family">
<string>Ubuntu Mono</string>
</test>
<edit name="family" mode="append">
<string>Noto Sans Mono CJK SC</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>Ubuntu Sans</string>
</test>
<edit name="family" mode="append">
<string>Noto Sans Mono CJK SC</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>Ubuntu Sans Mono</string>
</test>
<edit name="family" mode="append">
<string>Noto Sans Mono CJK SC</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>FiraCode Nerd Font Mono</string>
</test>
<edit name="family" mode="append">
<string>Noto Sans Mono CJK SC</string>
</edit>
</match>
</fontconfig>
网友解答:
--【壹】--:
是默认的的X11,24.10才默认Wayland
--【贰】--:
感谢大佬教程
--【叁】--:
正好在用ubuntu,谢谢分享
--【肆】--:
看谁还敢说L站不聊linux!!!
--【伍】--:
哈哈很简单的东西
--【陆】--:
感谢总结了 。。
--【柒】--:
感谢大佬分享
--【捌】--:
这个内核应该是24.04最新的了,之后的升级可能会修复其中的bug
--【玖】--:
Ubuntu 24 默认还用 X11 吗?
--【拾】--:
我Ubuntu都不安装桌面的 没注意有这么多bug
--【拾壹】--:
升级有影响吗
--【拾贰】--:
看一看 谢谢
说说Linux你遇到的那些难啃的bugs,欢迎各位佬友继续补充 … …
文件中文重命名最后出现拼音无法删除
image391×114 12.7 KB
如下
https://github.com/libpinyin/ibus-libpinyin/issues/469
https://gitlab.gnome.org/GNOME/mutter/-/issues/3502
→ 卸载默认ibus输入法,装fcitx5
kworker长期占用了10%的CPU
运行top命令,发现进程kworker一直占用了10%的CPU,下不来。
运行如下命令发现问题,音频中断一直调用CPU
sudo perf record -a sleep 60
sudo perf report
→ 禁用显示器HDMI音频,或者Setting-Sound-Output device选择其他音频输出
鼠标无法拉伸软件窗口边缘
一些软件例如pycharm不能拉伸窗口 https://www.reddit.com/r/Ubuntu/comments/1cdh92x/wayland_resizing_windows_problembug/
→ Setting-System-Users,关闭Automatic Login
Dock中无法显示应用程序图标
→ 打开出错的应用,例如mastertxt。按 Alt + F2,输入 lg 按 Enter,找到应用类名称Master Txt
sudo vim /usr/share/applications/mastertxt.desktop 添加如下一行
StartupWMClass=Master Txt
简体中文门等字显示为异体(日文)字形
→ 运行
sudo vim /etc/fonts/conf.d/64-language-selector-cjk-prefer.conf
将所有 Noto Sans CJK SC 放在每一项最前面
sudo fc-cache -fv
也可参考https://wiki.archlinux.org/title/Localization/Simplified_Chinese
文本编辑器顿号句号显示位置出错
方式一【old】
默认文本编辑器以及sublime text都出错,顿号句号显示不在右下角,而是显示在中间
→ 更改文本编辑器默认Ubuntu regular字体为其他字体,例如Monospace
++++ 以上Bugs在Ubuntu24.04, 6.8.0-48-generic,X11的内核版本还存在。
方式二、
ubuntu 字体对中文支持不太好,至少标点不太好,回退成的中文字体也对标点支持不好。修改回退字体。
vim /home//.config/fontconfig/fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<!-- Keep code fonts for Latin text, but use a CJK monospace fallback for Chinese punctuation. -->
<match target="pattern">
<test name="family">
<string>Ubuntu Mono</string>
</test>
<edit name="family" mode="append">
<string>Noto Sans Mono CJK SC</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>Ubuntu Sans</string>
</test>
<edit name="family" mode="append">
<string>Noto Sans Mono CJK SC</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>Ubuntu Sans Mono</string>
</test>
<edit name="family" mode="append">
<string>Noto Sans Mono CJK SC</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>FiraCode Nerd Font Mono</string>
</test>
<edit name="family" mode="append">
<string>Noto Sans Mono CJK SC</string>
</edit>
</match>
</fontconfig>
网友解答:
--【壹】--:
是默认的的X11,24.10才默认Wayland
--【贰】--:
感谢大佬教程
--【叁】--:
正好在用ubuntu,谢谢分享
--【肆】--:
看谁还敢说L站不聊linux!!!
--【伍】--:
哈哈很简单的东西
--【陆】--:
感谢总结了 。。
--【柒】--:
感谢大佬分享
--【捌】--:
这个内核应该是24.04最新的了,之后的升级可能会修复其中的bug
--【玖】--:
Ubuntu 24 默认还用 X11 吗?
--【拾】--:
我Ubuntu都不安装桌面的 没注意有这么多bug
--【拾壹】--:
升级有影响吗
--【拾贰】--:
看一看 谢谢

