The currently published instructions for Ubuntu 18.04 direct-download reference an out-of-date production version 6.0.3 and does not mention the preview versions like RC1. This is a re-occurring issue for each release (just search closed issues).
I wonder how this can be fixed once for all times?
A meta layer for artifacts where the always changing name is just an attribute came to mind.
This is a wider issue affecting nearly every IT project so github should add such a feature.
AS interim PlatyPS might be a solution (note: just an idea I am not familiar with it)
@SteveL-MSFT From my view the out-of-date file names in all 'direct download instruction' could be a reason why for example RC1 is not getting installed by a larger user base as manifested in the Community Dashboard.
I am not sure if the instructions or the release listed on github is the problem. I have tried this on a fresh Ubuntu 18.04 install with all packages updated.
I have not installed a previous version of PowerShell. The only items installed before attempting PowerShell install was installing Docker and Docker-Compose using their repositories.
When using the repository instructions I get the following dependency error.
The following packages have unmet dependencies:
powershell-preview : Depends: liblttng-ust0 but it is not installable
E: Unable to correct problems, you have held broken packages.
When I attempted to use the .deb package directly it also failed to installed and ended up removing itself because of the failed dependencies.
Preparing to unpack powershell-preview_6.1.0.rc.1-1.ubuntu.18.04_amd64.deb ...
Unpacking powershell-preview (6.1.0~rc.1-1.ubuntu.18.04) ...
dpkg: dependency problems prevent configuration of powershell-preview:
powershell-preview depends on liblttng-ust0; however:
Package liblttng-ust0 is not installed.
dpkg: error processing package powershell-preview (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.3-2) ...
Errors were encountered while processing:
powershell-preview
# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
powershell-preview
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 153 MB disk space will be freed
@mi-hol agree that we should try to come up with something static rather than trying to keep the doc updated to latest versions. Don't have a good solution off the top of my head than to say something like "download latest release" and have the version in the sample be generic like "powershell_6.1.0-preview.ubuntu.18.04_amd64.deb" and a note saying: "replace the example version with the specific version".
@binaryWard your issue is a different problem that needs to be looked at
@SteveL-MSFT while I understand the reasoning for a 'low tech' text-only solution, I had actually hoped for a 'high tech' solution.
PlatyPS's schema looked to me like a great starting point
schema: 2.0.0
external help file: {file name for `New-ExternalHelp`}.xml
@binaryWard I created a fresh 18.04 and didn't have a problem installing 6.1.0-RC. Try this:
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i ./packages-microsoft-prod.deb
sudo apt update
sudo apt install powershell-preview
I was really hoping that after the 6.1 GA release, all we had to do to install PS Core on Ubuntu was simply execute:
sudo apt update
sudo apt install -y powershell
Has there been any progress on getting PS Core into the official Canonical apt repo?
@rkeithhill Getting into an official repo essentially means that distro has accepted the responsibility of maintaining and servicing a fork of your code in their code base. This is why different distros have different versions of some common utilities and they don't necessarily always move to the latest version. On the other hand, we do publish to the Snap store which shifts the maintenance of the packages back to the package owners instead of the distro owners. This means that you can just run:
sudo snap install powershell --classic
On systems that have the Snap client by default. Independent of that, we are more likely to succeed on getting PSCore6 in Azure Linux images by default.
@SteveL-MSFT
I realize I didn't state if it was the Ubuntu 18.04 workstation or server. Ubuntu Server has a new installer "Subiquity" which has the "live" in the iso filename and is the default installer. The older installer is obtained through the "alternative downloads" and has a filename without "live".
Ubuntu Server 18.04 "alternative download" .iso worked. I was able to use the apt repo instructions and install the powershell-preview.
Name Value
---- -----
PSVersion 6.1.0-rc.1
PSEdition Core
GitCommitId 6.1.0-rc.1
OS Linux 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
The Ubuntu Server 18.04 -live- still gives me the error but I can try that again. The new installer has an interesting change where there is a "powershell" to select in the installer.
If I can recreate this problem I will create a new issue. At first I thought it was related to the documentation but seems there could be something else.
@binaryWard would be great if you can post a screenshot of where the installer has powershell
as an option. Wasn't aware they did that.
@SteveL-MSFT if this works the following link should be a screenshot of the "live" iso using the newer Ubuntu Installer.
Most helpful comment
@SteveL-MSFT if this works the following link should be a screenshot of the "live" iso using the newer Ubuntu Installer.