debian-更新证书-常用操作

1. debian buster 已经过期,apt 源官方改为
# 存档源(解决404关键)
deb http://archive.debian.org/debian/ buster main contrib non-free
deb http://archive.debian.org/debian-security/ buster/updates main contrib non-free
deb http://archive.debian.org/debian/ buster-updates main contrib non-free

2. 更新为http镜像

 sed -i 's|https://|http://|g'  /etc/apt/sources.list

3. 更新 ca 并验证状态


apt install --reinstall ca-certificates
update-ca-certificates --fresh
echo | openssl s_client -connect mirrors.zju.edu.cn:443 2>/dev/null | openssl x509 -noout -text

4. 安装常用工具


# apt update && apt upgrade -y && apt install -y build-essential curl wget git vim nano net-tools iputils-ping htop unzip tar software-properties-common python3 python3-pip python3-venv
sudo apt update && sudo apt upgrade -y && sudo apt install -y build-essential curl wget git vim nano net-tools iputils-ping htop unzip tar software-properties-common python3 python3-pip python3-venv
# apt update && apt install -y procps net-tools iproute2 iputils-ping curl wget vim nano less grep sed awk unzip tar htop 
sudo apt update && sudo apt install -y procps net-tools iproute2 iputils-ping curl wget vim nano less grep sed awk unzip tar htop lsb-release

5. 安装sshfs


#1. Debian 12+(推荐 fuse3)
apt install -y fuse3 libfuse-dev
#2. Debian 11 及更早(用 fuse2)
apt install -y fuse libfuse2
#工具包 modprobe
apt install -y kmod
modprobe fuse3

# 查看包
dpkg -l | grep fuse
# 查看设备(宿主机正确挂载后才会有)
ls /dev/fuse

————–
参考:https://geekdaxue.co/read/baxiang@linux/ne2ilm