一键修复与安装脚本(各种linux系统修复与服务器环境安装脚本) One-click repair and installation scripts (various linux system repair and server environment installation scripts)
Go to file
2022-12-17 19:08:57 +08:00
debian.txt Update debian.txt 2022-12-16 10:48:38 +08:00
modify_time.sh Create modify_time.sh 2022-12-17 19:08:57 +08:00
network.sh Update network.sh 2022-12-16 11:01:56 +08:00
package.sh Update package.sh 2022-12-16 11:33:53 +08:00
README.md Update README.md 2022-12-16 11:02:59 +08:00
rust.sh Update rust.sh 2022-12-08 20:42:58 +08:00
ubuntu.txt Create ubuntu.txt 2022-12-16 10:47:27 +08:00

一键脚本

一键安装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

一键尝试修复网络(nameserver和网络优先级)

curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/network.sh -o network.sh && chmod +x network.sh && bash network.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