ubuntu22.04安装注意点

发布于:2025-02-10 ⋅ 阅读:(67) ⋅ 点赞:(0)

换源方式

  • 22.04默认使用/etc/apt/sources.list而非/etc/apt/sources.list.d
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-backports main restricted universe multiverse

# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
deb http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
# deb-src http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse
# # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse

防火墙修改

设置好规则后,安装软件包,持久化并重载

sudo apt install iptables-persistent	# 安装该软件包才能在/etc目录下生成iptables目录
sudo netfilter-persistent save
sudo netfilter-persistent reload

tackle 应用商店字体为方块

cd /usr/share/fonts/
sudo fc-cache -fv
sudo apt-get install ttf-wqy-zenhei ttf-wqy-microhei

/etc/fwupd/fwupd.conf

  • apt update,选择用软件商的配置覆盖原有的配置,下次选择保存可能有用,也许不是这个问题

被攻击的明显痕迹

  • 软件商店界面被修改
    在这里插入图片描述
    但是重启之后好了
    在这里插入图片描述

网站公告

今日签到

点亮在社区的每一天
去签到