powershell安装问题@linux安装powershell@msi无法安装问题
文章目录
linux 安装powershell
refereces
Ubuntu/Debian install powershell7+
- Installation via direct download
- Installation on Debian 11 via Package Repository
- Installation on Debian 10 via Package Repository
- Installation on Debian 9 via Package Repository
检查当前发行版
-
cat /etc/issue
-
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic Ubuntu 18.04.6 LTS \n \l
运行安装脚本
# Install system components sudo apt update && sudo apt install -y curl gnupg apt-transport-https # Import the public repository GPG keys curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - # Register the Microsoft Product feed sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main" > /etc/apt/sources.list.d/microsoft.list' # Install PowerShell sudo apt update && sudo apt install -y powershell # Start PowerShell pwsh
verify installation
cat /etc/shells|grep powershell
# cxxu @ cxxuAli in ~ [11:04:44] $ cat /etc/shells # /etc/shells: valid login shells /bin/sh /bin/bash /bin/rbash /bin/dash /bin/zsh /usr/bin/zsh /usr/bin/pwsh /opt/microsoft/powershell/7/pwsh
windwos msi包安装报错问题
msi包无法安装问题🎈
-
报错内容:
-
Windows Installer This installation package could not be opened.Contact the application vendor to verify that this is a valid Windows Installer package. -
然而,实际情况是包能够在虚拟机中安装,安装包没有问题.
-
-
这种情况下,您可能无法安装
wsl_update.msi
内核更新程序 -
办法1:😂
- 可考虑将安装包复制一份到新建账户到桌面(可能和权限有关)
-
办法2:
- 尝试创建一个新的本地管理员账户
- 在新账户中尝试运行安装包
- 重启到原账户
- 如果依然不可用,🎈,重复方法1中复制安装包再安装
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了