These are the normal installation steps for installing Microsoft PowerShell on Ubuntu 16.04.
# Import the public repository GPG keys curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - # Register the Microsoft Ubuntu repository curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list # Update apt-get sudo apt-get update # Install PowerShell sudo apt-get install -y powershell
Since there is no PowerShell package for Ubuntu 17.10 Artful yet and the right dependencies aren’t installed, you will get this error:
The following packages have unmet dependencies: powershell : Depends: libicu55 but it is not installable E: Unable to correct problems, you have held broken packages.
There is no apt package for libicu55, however, thankfully there is an easy fix.
Open a terminal to your Downloads folder (wherever you downloaded the file) and install manually with dpkg:
sudo dpkg -i ./libicu55_55.1-7ubuntu0.2_amd64.deb
If successful, you should see something like this:
Selecting previously unselected package libicu55:amd64. (Reading database ... 249366 files and directories currently installed.) Preparing to unpack libicu55_55.1-7ubuntu0.2_amd64.deb ... Unpacking libicu55:amd64 (55.1-7ubuntu0.2) ... Setting up libicu55:amd64 (55.1-7ubuntu0.2) ... Processing triggers for libc-bin (2.24-9ubuntu2) ...
Now, install and run PowerShell:
# Install PowerShell sudo apt-get install -y powershell # Start PowerShell powershell