散尽浮华 2023

過去心不可得,現在心不可得,未來心不可得。
安寻安放,不卑不亢;重剑无锋,大巧不工!
  1. 首页
  2. microsoft
  3. 正文

使用 winget 安装git、7zip等工具

2023年6月23日 125点热度 0人点赞 0条评论

winget 安装软件报错

C:\Users\xww20>winget install --id Git.Git -e --source winget
没有与给定值匹配的源: winget
配置的源为:
  msstore

C:\Users\xww20>winget install --id Git.Git
找不到与输入条件匹配的程序包。

C:\Users\xww20>winget source add --name Contoso https://www.contoso.com/cache
正在添加源:
  Contoso -> https://www.contoso.com/cache
执行此命令时发生意外错误:
0x80072f7d : unknown error

C:\Users\xww20>winget source list
名称    参数
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0

C:\Users\xww20>winget source add --name winget https://winget.azureedge.net/cache
正在添加源:
  winget -> https://winget.azureedge.net/cache
执行此命令时发生意外错误:
0x80072f7d : unknown error

配置 Internet 属性,勾选 使用TLS 1.0~1.3

  • 输入:inetcpl.cpl 打开 Internet属性,勾选TLS 1.2 后确定

成功安装git

其他命令:

winget list --name git
winget list -n 9
winget list terminal
winget search vscode
winget show vscode
winget search powertoys
winget features

winget install --id Git.Git -e --source winget
winget install --id 7zip.7zip -e --source winget

upgrade -all

官网介绍

https://learn.microsoft.com/en-us/windows/package-manager/winget/

标签: 暂无
最后更新:2023年6月25日

admin

这个人很懒,什么都没留下

点赞
< 上一篇

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2023 散尽浮华 2023. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang