2022-12-16 10:53:14 +08:00
|
|
|
|
# 一键脚本
|
2022-12-08 20:30:51 +08:00
|
|
|
|
|
2022-12-17 20:36:44 +08:00
|
|
|
|
一键安装rust环境
|
|
|
|
|
|
|
|
|
|
- 支持系统:Ubuntu 18+,Debian 8+,centos 7+,Fedora,Almalinux 8.5+
|
2022-12-08 20:30:51 +08:00
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/rust.sh -o rust.sh && chmod +x rust.sh && bash rust.sh
|
|
|
|
|
```
|
2022-12-11 14:47:57 +08:00
|
|
|
|
|
2022-12-17 20:36:44 +08:00
|
|
|
|
一键尝试修复apt源
|
|
|
|
|
|
|
|
|
|
- 支持系统:Ubuntu 12+,Debian 6+
|
2022-12-17 20:37:31 +08:00
|
|
|
|
- 修复apt源锁死
|
|
|
|
|
- 修复apt源公钥缺失
|
|
|
|
|
- 修复替换系统可用的apt源列表,含国内用阿里源,国外用官方源
|
2022-12-16 10:47:04 +08:00
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/package.sh -o package.sh && chmod +x package.sh && bash package.sh
|
|
|
|
|
```
|
|
|
|
|
|
2022-12-17 20:36:44 +08:00
|
|
|
|
一键尝试修复网络(nameserver和网络优先级)
|
|
|
|
|
|
|
|
|
|
- 支持系统:Ubuntu 18+,Debian 8+,centos 7+,Fedora,Almalinux 8.5+
|
2022-12-16 11:02:59 +08:00
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/network.sh -o network.sh && chmod +x network.sh && bash network.sh
|
|
|
|
|
```
|
|
|
|
|
|
2022-12-17 20:36:44 +08:00
|
|
|
|
一键尝试修复系统时间
|
|
|
|
|
|
|
|
|
|
- 支持系统:Ubuntu 18+,Debian 8+,centos 7+,Fedora,Almalinux 8.5+
|
2022-12-17 19:09:49 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/modify_time.sh -o modify_time.sh && chmod +x modify_time.sh && bash modify_time.sh
|
|
|
|
|
```
|
|
|
|
|
|
2022-12-16 10:47:04 +08:00
|
|
|
|
### 手动命令
|
|
|
|
|
|
2022-12-11 14:47:57 +08:00
|
|
|
|
ubuntu缺失公钥
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 公钥
|
|
|
|
|
```
|
2022-12-15 21:27:52 +08:00
|
|
|
|
|
2022-12-15 22:23:20 +08:00
|
|
|
|
ubuntu更新源被锁
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo rm -rf /var/cache/apt/archives/lock
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
或
|
|
|
|
|
|
|
|
|
|
https://itsfoss.com/fix-ubuntu-install-error/
|
|
|
|
|
|
2022-12-15 21:27:52 +08:00
|
|
|
|
debian缺失公钥
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
apt-get install debian-keyring debian-archive-keyring
|
|
|
|
|
```
|
2022-12-16 10:52:23 +08:00
|
|
|
|
|
|
|
|
|
centos换源
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
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
|
|
|
|
|
```
|