I'm trying to install Powershell in Ubuntu 17.04 as the following these steps:
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
sudo apt-get update
sudo apt-get install -y powershell
I know I'm using 16.04 packages/built to install. Unfortunately I couldn't find the the 17.04 one.
And here is what error I've got with sudo apt-get install -y powershell
The following packages have unmet dependencies:
powershell : Depends: libicu55 but it is not installable
Then I tried:
apt-cache search libicu
I couldn't find out the libicu55 to install either. Are there any way to install Powershell in Ubuntu 17.04?
Download
libicu55
package from http://packages.ubuntu.com/en/xenial/amd64/libicu55/downloadIf the sudo apt install fails, download the file directly from the provided link via the browser. Then open it with Software Install.
Then follow instructions for 16.04
Source: https://asknicks.blogspot.ru/2017/05/install-powershell-on-ubuntu-17.html
Download the AppImage version and follow the instructions:
Microsoft do not have packages for 17.04 yet. Take a look at their github:
The problem you have is their package relies on
libicu55
, but 17.04 does not have that package in its repositories. Unless you build from source, you will not be able to install their public Powershell packages.Visit the official Microsoft PowerShell Documentation webpage and click the link to visit PowerShell on GitHub or visit it directly. There you will find links to download PowerShell .deb files for Ubuntu 14.04, 16.04 and 17.04.
Download the PowerShell .deb file and double-click it to open it in the software application.
Ubuntu 14.04 and later
PowerShell can be installed as a snap package in all currently supported versions of Ubuntu. To install the PowerShell Core snap package open the terminal and type: