Prerequisites
Steps to reproduce
Try to install pwsh on ubuntu 26.04 using the official docs
#!/bin/bash
###################################
# Prerequisites
# Update the list of packages
sudo apt-get update
# Install pre-requisite packages.
sudo apt-get install -y wget apt-transport-https software-properties-common
# Get the version of Ubuntu
source /etc/os-release
# Download the Microsoft repository keys
wget -q https://packages.microsoft.com/config/ubuntu/$VERSION_ID/packages-microsoft-prod.deb
# Register the Microsoft repository keys
sudo dpkg -i packages-microsoft-prod.deb
# Delete the Microsoft repository keys file
rm packages-microsoft-prod.deb
# Update the list of packages after we added packages.microsoft.com
sudo apt-get update
###################################
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
pwsh
Expected behavior
Actual behavior
E: Unable to locate package powershell
Error details
Hit:1 http://security.ubuntu.com/ubuntu resolute-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu resolute InRelease
Hit:3 http://archive.ubuntu.com/ubuntu resolute-updates InRelease
Hit:4 https://download.docker.com/linux/ubuntu resolute InRelease
Hit:5 http://archive.ubuntu.com/ubuntu resolute-backports InRelease
Hit:6 https://packages.microsoft.com/ubuntu/26.04/prod resolute InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget is already the newest version (1.25.0-2ubuntu4).
apt-transport-https is already the newest version (3.2.0).
software-properties-common is already the newest version (0.120).
Solving dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-7.0.0-14 linux-headers-7.0.0-14-generic linux-image-unsigned-7.0.0-14-generic linux-main-modules-zfs-7.0.0-14-generic linux-modules-7.0.0-14-generic linux-tools-7.0.0-14 linux-tools-7.0.0-14-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(Reading database… 140251 files and directories currently installed.)
Preparing to unpack packages-microsoft-prod.deb…
Unpacking packages-microsoft-prod (1.2-ubuntu26.04) over (1.2-ubuntu26.04)…
Setting up packages-microsoft-prod (1.2-ubuntu26.04)…
File /usr/share/keyrings/microsoft-prod.gpg is missing. Installing...
Hit:1 http://security.ubuntu.com/ubuntu resolute-security InRelease
Hit:2 https://packages.microsoft.com/ubuntu/26.04/prod resolute InRelease
Hit:3 http://archive.ubuntu.com/ubuntu resolute InRelease
Hit:4 http://archive.ubuntu.com/ubuntu resolute-updates InRelease
Hit:5 https://download.docker.com/linux/ubuntu resolute InRelease
Hit:6 http://archive.ubuntu.com/ubuntu resolute-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package powershell
Command 'pwsh' not found, did you mean:
command 'wsh' from deb wcc (0.0.7+dfsg-2build2)
command 'posh' from deb posh (0.14.3)
command 'pdsh' from deb pdsh (2.35-3)
command 'ppsh' from deb ppsh (1.10-5)
Try: sudo apt install <deb name>
Environment data
PRETTY_NAME="Ubuntu 26.04 LTS"
NAME="Ubuntu"
VERSION_ID="26.04"
VERSION="26.04 (Resolute Raccoon)"
VERSION_CODENAME=resolute
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=resolute
LOGO=ubuntu-logo
Visuals
No response
Prerequisites
Steps to reproduce
Try to install pwsh on ubuntu 26.04 using the official docs
Expected behavior
Pwsh is installedActual behavior
E: Unable to locate package powershellError details
Environment data
Visuals
No response