Ubuntu 18.04 has moved to using libcurl4 instead of libcurl3. Even if both verison of the curl bianries and libraries are comaptible, there is a packaging issue that disallows packages using libcurl3 such as powershell to coexist with others that need libcurl4 such as cmake. Please relase powershell for Ubuntu 18.04 a.k.a bionic or people will be getting nasty surpirises next week just liek I did whe I upgraded early.
@borgdylan Thanks for your contribution!
It is dup #6307.
We have plans to move to .Net Core 2.1 before PowerShell 6.1 Preview2.
.Net Core 2.1 will remove the curl dependency.
The linked issue is about putting powershell in the official Ubuntu repositories, not about the curl dependency.
Ubuntu 18.04 is just around the corner and not having support for PowerShell in it would be a major loss, forcing people to convert their scripts to inferior systems like Bash.
First off, thank you for the great work on PowerShell. Ubuntu 18.04 is here! Do we know when can I expect to install PowerShell?
After we merge #6718 we'll review installations, packaging and processing on all systems. Guys, your help in testing and contributions will be very handy.
For those who can't wait (me) and don't want to go crippling your curl
on 18.04, I'll leave this here:
cd /tmp
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu57_57.1-6ubuntu0.3_amd64.deb
wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell_6.0.1-1.ubuntu.17.04_amd64.deb
dpkg-deb -R powershell_6.0.1-1.ubuntu.17.04_amd64.deb pwsh-patched
sudo apt install -y rpl
rpl libcurl3 libcurl4 pwsh-patched/DEBIAN/control
dpkg-deb -b pwsh-patched pwsh-patched.deb
sudo apt install -fy ./libicu57_57.1-6ubuntu0.3_amd64.deb ./pwsh-patched.deb
Kudos to Tim De Pauw for figuring out this exact libcurl3 dependency problem for another package, and @borgdylan for suggesting this same fix for dotnet. Also thanks to @fvanroie for some help with the Powershell dependencies.
@iSazonov I see that the merge for #6718 was completed, any info on a stable, or even experimental release for 18.04? I just updated the apt list to https://packages.microsoft.com/config/ubuntu/18.04/prod.list and now I can't even find the powershell package via apt search.
@kenk667 I believe we don't publish daily builds. I guess latest 17.04 builds should run on 18.04
Also I can confirm 18.04 support #6769
I expect we get the package in Preview3 time (in 1-2-3 weeks).
@iSazonov the 17.04 install has dependencies issues as described earlier in this issue request. Looking for 18.04 install where current packages within 18.04 are supported.
Latest builds is based on .Net Core 2.1 RC and don't depend on curl
, I don't now about libicu57
.
@tohuw thanks a lot, it seems to work so far also for the latest 6.1.0 preview https://github.com/PowerShell/PowerShell/releases/download/v6.1.0-preview.2/powershell_6.1.0-preview.2-1.ubuntu.17.04_amd64.deb
@iSazonov I'm unable to install latest (17.04) deb package w/o a libicu57 conflict, and wish not to downgrade to install. Any roadmap for supporting 18.04? I was able to successfully install it by changing the dependencies for https://github.com/PowerShell/PowerShell/releases/download/v6.1.0-preview.2/powershell_6.1.0-preview.2-1.ubuntu.17.04_amd64.deb
dpkg-deb --raw-exatrct powershell_6.1.0-preview.2-1.ubuntu.17.04_amd64.deb 6.1.0_patched
Then alter two patterns, curl and libicu dependencies to current versions;
sudo awk '{gsub("curl3","curl4");gsub("libicu57","libicu60");print}' 6.1.0_pathched/DEBIAN/control
Repackage as a debian package;
dpkg-deb --build 6.1.0_pathched/ powershell_6.1.0-patched.2-1.ubuntu.18.04_amd64.deb
Now just install the newly patched .deb package, I like to use gdebi to install;
sudo gdebi powershell_6.1.0-patched.2-1.ubuntu.18.04_amd64.deb
I haven't extensively tested this but seems to be functional and stable so far, but maybe a viable fix for 18.04 install.
Any roadmap for supporting 18.04?
Seems MSFT teams agreed to add this in 6.1 Preview3.
@iSazonov,
That would be nice! I will keep my Ubuntu 18.04 version clean. Until MSFT Team release Preview3, if it makes it available for the new version.
I'm hoping the SQL Server Team would also catch up with SQL Server Linux to make it available too.
:)
SQL Server Team
Ping them on UserVoice.
@iSazonov,
I already did back in May 7th: https://feedback.azure.com/forums/908035-sql-server/suggestions/34175752-sql-server-won-t-install-on-linux-ubuntu-18-04-due
But, I know it's going to take time.
:)
Leave a comment
Most helpful comment
For those who can't wait (me) and don't want to go crippling your
curl
on 18.04, I'll leave this here:Kudos to Tim De Pauw for figuring out this exact libcurl3 dependency problem for another package, and @borgdylan for suggesting this same fix for dotnet. Also thanks to @fvanroie for some help with the Powershell dependencies.