Hi there 👋

Welcome to my blog

修复“Release file is not valid yet”

如果apt update时遇到类似E: Release file for [xxx] is not valid yet (invalid for another 2h 45min 28s). Updates for this repository will not be applied.的错误 这一般是由于计算机的时间错误(没有同步)导致的。 WSL 如果是在WSL中遇到错误,可能是Windows的时间没有正常同步。 同步时间后关闭WSL再打开:wsl --shutdown 从硬件时钟恢复时间 如果系统电源突然断电,那么在系统重新启动后,系统时钟可能会丢失当前时间。 在这种情况下,运行hwclock --hctosys命令可以从硬件时钟恢复时间

July 5, 2024 · 1 min · 33 words · Me

Ubuntu 22.04 LTS升级为24.04 LTS

更新 sudo apt update && sudo apt upgrade 更新之后可能需要重启: sudo reboot 升级 默认升级时会禁用第三方源,如果设置了第三方源可以使用RELEASE_UPGRADER_ALLOW_THIRD_PARTY保留: RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade -d 修复APT更新问题 如果遇到提示“Missing Signed-By in the sources.list(5) entry for …” 先删除原本的源: sudo rm /etc/apt/sources.list sudo rm /etc/apt/sources.list.d/third-party.sources 新建DEB822格式的源(Ubuntu 的软件源配置文件变更为 DEB822 格式): sudo nano /etc/apt/sources.list.d/ubuntu.sources 可以使用清华TUNA的源: Types: deb URIs: https://mirrors.tuna.tsinghua.edu.cn/ubuntu Suites: noble noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 # Types: deb-src # URIs: https://mirrors.tuna.tsinghua.edu.cn/ubuntu # Suites: noble noble-updates noble-backports # Components: main restricted universe multiverse # Signed-By: /usr/share/keyrings/ubuntu-archive-keyring....

July 5, 2024 · 2 min · 263 words · Me

Hugo博客PaperMod主题设置自定义字体

新建文件 创建./assets/css/extended/custom_fonts.css文件(可能这个路径也不存在,那还需要新建文件夹)。 写入内容 @import url('https://fonts.cdnfonts.com/css/jetbrains-mono'); code { font-family: 'JetBrains Mono', monospace; }

July 5, 2024 · 1 min · 12 words · Me

Ubuntu 24.04 LTS 阿里云内网源

从Ubuntu 24.04开始,Ubuntu的软件源配置文件变更为DEB822格式,路径为/etc/apt/sources.list.d/ubuntu.sources Types: deb URIs: http://mirrors.cloud.aliyuncs.com/ubuntu Suites: noble noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 Types: deb-src URIs: http://mirrors.cloud.aliyuncs.com/ubuntu Suites: noble noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg # 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换 Types: deb URIs: http://security.ubuntu.com/ubuntu/ Suites: noble-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb-src URIs: http://security.ubuntu.com/ubuntu/ Suites: noble-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg # 预发布软件源,不建议启用 # Types: deb # URIs: http://mirrors....

July 5, 2024 · 1 min · 105 words · Me

HyperOS(MIUI)并获取Root刷Magisk

前提 已经解锁bootloader && 打开adb调试 小米USB驱动:Driver.rar adb:SDK Platform Tools Kitsune Magisk:HuskyDG/magisk-files payload-extractor:tobyxdd/android-ota-payload-extractor 获取 下载刷机包 解压之后得到payload.bin 用payload-extractor解压得到init_boot.img 复制init_boot.img到手机上 修补文件 安装Kitsune Magisk后打开,点击“安装”,选择“选择并修补一个文件”,选取上一步复制到手机的init_boot.img文件,然后得到一个修补过的文件:magisk_patched-[***].img 进入fastboot模式 adb reboot bootloader 刷入修补的文件 fastboot flash init_boot .\magisk_patched-[***].img 重启退出fastboot fastboot reboot

July 3, 2024 · 1 min · 31 words · Me