Skip to content

Commit

Permalink
Update winget-source.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stevapple authored Aug 13, 2024
1 parent 1a44a96 commit c872ca8
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions docs/winget-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,28 @@ Windows Package Manager (aka. WinGet) 默认软件源

修改 WinGet 软件源需要管理员权限,请以管理员身份运行终端。

替换 USTC 镜像:
=== "WinGet >= 1.8"

用以下命令替换 `winget` 源:

```shell
winget source remove winget
winget source add winget https://mirrors.ustc.edu.cn/winget-source --trust-level trusted
```

=== "WinGet <= 1.7"

用以下命令替换 `winget` 源:

```shell
winget source remove winget
winget source add winget https://mirrors.ustc.edu.cn/winget-source
```

!!! note
!!! note

若出现 0x80073d1b : smartscreen reputation check failed.
错误,请检查网络连接或暂时关闭 SmartScreen。
若出现 0x80073d1b : smartscreen reputation check failed.
错误,请检查网络连接或暂时关闭 SmartScreen。

重置为官方地址:

Expand Down

0 comments on commit c872ca8

Please sign in to comment.