mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-03 16:00:26 +08:00
更新文档
This commit is contained in:
69
docs/use/help.md
Normal file
69
docs/use/help.md
Normal file
@@ -0,0 +1,69 @@
|
||||
## 关于报错 Command not found
|
||||
|
||||
- 如果提示 `Command 'curl' not found` 则说明当前未安装 `curl` 软件包
|
||||
|
||||
=== "Debian 系 Linux"
|
||||
|
||||
``` sh
|
||||
apt-get install -y curl
|
||||
```
|
||||
|
||||
> `Debian` `Ubuntu` `Kali`
|
||||
|
||||
=== "RedHat 系 Linux / OpenCloudOS / openEuler"
|
||||
|
||||
``` sh
|
||||
yum install -y curl || dnf install -y curl
|
||||
```
|
||||
|
||||
> `Red Hat Enterprise Linux` `CentOS` `Rocky Linux` `AlmaLinux` `Fedora` `OpenCloudOS` `openEuler`
|
||||
|
||||
=== "openSUSE"
|
||||
|
||||
``` sh
|
||||
zypper install curl
|
||||
```
|
||||
|
||||
=== "Arch Linux"
|
||||
|
||||
``` sh
|
||||
pacman -S curl
|
||||
```
|
||||
|
||||
## 还原已备份的软件源
|
||||
|
||||
=== "Debian 系 Linux"
|
||||
|
||||
``` sh
|
||||
cp -rvf /etc/apt/sources.list.bak /etc/apt/sources.list
|
||||
apt-get update
|
||||
```
|
||||
|
||||
> `Debian` `Ubuntu` `Kali`
|
||||
|
||||
=== "RedHat 系 Linux / OpenCloudOS / openEuler"
|
||||
|
||||
``` sh
|
||||
cp -rvf /etc/yum.repos.d.bak /etc/yum.repos.d
|
||||
yum makecache
|
||||
```
|
||||
|
||||
> `Red Hat Enterprise Linux` `CentOS` `Rocky Linux` `AlmaLinux` `Fedora` `OpenCloudOS` `openEuler`
|
||||
|
||||
=== "openSUSE"
|
||||
|
||||
``` sh
|
||||
cp -rvf /etc/zypp/repos.d.bak /etc/zypp/repos.d
|
||||
zypper ref
|
||||
```
|
||||
|
||||
=== "Arch Linux"
|
||||
|
||||
``` sh
|
||||
cp -rvf /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist
|
||||
pacman -Sy
|
||||
```
|
||||
|
||||
## 其它
|
||||
|
||||
- 如果提示 `bash: /proc/self/fd/11: No such file or directory`,请切换至 `Root` 用户执行,切换命令为 `su root`
|
||||
@@ -1,3 +1,8 @@
|
||||
---
|
||||
hide:
|
||||
- feedback
|
||||
---
|
||||
|
||||
## 执行命令
|
||||
|
||||
### 国内使用(默认)
|
||||
|
||||
Reference in New Issue
Block a user