又可以開几了
2024/02/24
2024/02/22
2024/02/21
2024/02/16
2024/02/15
2024/02/03
2024/01/29
2023/12/31
2023/12/29
2023/12/23
2023/12/22
2023/12/15
2023/12/10
今天在玩winget
記錄一下在 win11 碰到的問題
內建有安裝但下
winget search notepad 找不到任何東西
要安裝最新版本
https://github.com/microsoft/winget-cli/releases/
目前最新
https://github.com/microsoft/winget-cli/releases/download/v1.6.3133/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
下載後打開
powersell
add-appxpackage ./下載檔名 才能安裝
直接點二下無法安裝
裝好後無法使用 msstore 資料源
一直出現錯誤
搜尋來源時失敗: msstore
執行命令時,發生意外的錯誤:
0x8a15005e : The server certificate did not match any of the expected values.
winget source reset 也沒用
查了才發現 msstore 憑証有問題 有夠無言
下指令bypass msstore 憑証
winget settings --enable BypassCertificatePinningForMicrosoftStore
或加入以下機碼
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppInstaller]
"EnableBypassCertificatePinningForMicrosoftStore"=dword:00000001
winget install 一直跳出 UAC 畫面
安裝 gsudo 解決
winget install gerardog.gsudo
重開几
gsudo winget upgrade --all
或
sudo winget upgrade --all
安裝時還是會跳出 gsudo 的UAC 不過只會跳一次 安裝軟体不會再跳
方便好用的工具
尤其是OS裝完後續安裝軟体
還有更新目前安裝的所有軟体
gsudo winget upgrade --all
winget pin add <package> --version
自動接受安裝合約
--accept-package-agreements
2023/12/08
2023/12/02
2023/11/22
2023/11/19
proxmox 8 安裝後修正apt source 並更新
#!/bin/bash
sed -i '1s/^/#/' /etc/apt/sources.list.d/ceph.list
sed -i '1s/^/#/' /etc/apt/sources.list.d/pve-enterprise.list
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" >> /etc/apt/sources.list
echo "export http_proxy=http://10.1.1.1:3128" > /root/update
echo "apt-get update" >> /root/update
echo "apt-get upgrade -y" >> /root/update
echo "apt-get autoremove -y --purge" >> /root/update
chmod +x /root/update
/root/update