升级ubuntu到22.04之后更新源遇到“Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details” 这个警告,解决方法如下:
首先查看key l...
扩大swap分区
# 将现有swap移动到主内存,可能需要几分钟
sudo swapoff -a
# 创建新的swap文件,bs×count=最后生成的swap大小,这里设置2G
sudo dd if=/dev/zero of=/swapfile bs=512M count=4
# 设置权限
sudo chmod 0600 /...