Powershell Loves Linux

Install Microsoft PowerShell on Ubuntu 17.10 Artful

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.

You can download the libicu55 package here or (current) direct link.

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


Join the discussion and tell us your opinion.

December 29, 2017 at 03:12 AM

hi, maybe you can help me , I have followed your guide and successfully installed powershell, but when I type “powershell” at the shell I get that the command is not found.
When I run locate (after I have updated the index) I get only reference to /usr/share/code/resources/app/extensions/powershell which is a directory with no executable in it.

This is the sudo apt-get install powershell output :
Reading package lists… Done
Building dependency tree
Reading state information… Done
powershell is already the newest version (6.0.0-rc.2-1.ubuntu.16.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

This is the os :
VERSION=”17.10 (Artful Aardvark)”
PRETTY_NAME=”Ubuntu 17.10″


December 29, 2017 at 06:12 AM

Seems like I had to create a link to the executable (found it with find command instead of locate ) :

cd /usr/bin
ln -s /opt/microsoft/powershell/6.0.0-rc.2/pwsh powershell

December 29, 2017 at 02:12 PM

Glad you got it working Tamir!

Leave a Reply

%d bloggers like this: