mirror of
https://github.com/spiritLHLS/one-click-installation-script.git
synced 2024-11-16 11:42:31 +08:00
915 B
915 B
一键脚本
一键安装rust环境
curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/rust.sh -o rust.sh && chmod +x rust.sh && bash rust.sh
一键修复apt源
curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/package.sh -o package.sh && chmod +x package.sh && bash package.sh
手动命令
ubuntu缺失公钥
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 公钥
ubuntu更新源被锁
sudo rm -rf /var/cache/apt/archives/lock
或
https://itsfoss.com/fix-ubuntu-install-error/
debian缺失公钥
apt-get install debian-keyring debian-archive-keyring
centos换源
sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
sudo sed -i 's/^mirrorlist=http/mirrorlist=https/' /etc/yum.repos.d/CentOS-Base.repo