You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by PandaSharp, Will Dixon, lucasfijen, Alex Harden, Brad Wilson, Christoph Nocula, Rui Lopes, Oleksandr Nezhynskyi, Tom Rodrigues, Foxocube and 16 more
Reacted by kt81, Stanislav Musil, Oleksandr Nezhynskyi, PandaSharp, Timo Reichl, Michiel Dijcks, Stefano Campanella, AdrianOsica and Nathan C
Following assumes curl and jq is installed and is running with root permissions. But I didn't like ignoring the dependency on an internationalization package. Since libicu72 package name has the version in the name, you can install multiple versions of it at the same time. So I just installed libicu72 package before installing powershell.
But I didn't like ignoring the dependency on an internationalization package. Since libicu72 package name has the version in the name, you can install multiple versions of it at the same time. So I just installed libicu72 package before installing powershell.
Thank you. my attempt didn't really hold up under scrutiny :) (following apt installs failed because of missing dependencies on powershell).
As noted above --ignore-depends will cause issues and apt-get -f install will try to remove the powershell package.
A hackish fix for this is to remove the dependency on libicu in the deb:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
powershell : Depends: libicu72 but it is not installable or
libicu71 but it is not installable or
libicu70 but it is not installable or
libicu69 but it is not installable or
libicu68 but it is not installable or
libicu67 but it is not installable or
libicu66 but it is not installable or
libicu65 but it is not installable or
libicu63 but it is not installable or
libicu60 but it is not installable or
libicu57 but it is not installable or
libicu55 but it is not installable or
libicu52 but it is not installable
E: Unable to correct problems, you have held broken packages.
Hi,
For those who look for a simple workaround install powershell via snap.
This solution was not mentioned in the post or I missed it and for me this was the cleanest and easiest way according to my basic use of powershell.
Hi, For those who look for a simple workaround install powershell via snap. This solution was not mentioned in the post or I missed it and for me this was the cleanest and easiest way according to my basic use of powershell.
I don't remember exactly what is was, but I think in the snap version I had an issue with invoke-webrequest or loading certs. That's way I switched to the "normal" version
What is the blocking task here? Is it just libicu?
Without a roadmap, this is starting to make me question whether I can trust Microsoft to support the Ubuntu platform natively for PowerShell and it's starting to affect my choice of PowerShell for projects that need to run on said platform.
Jason Helmick (@theJasonHelmick) Could we get an update on this? Is there a technical blocker of some sort? I've even heard of a Partner investigating publishing their own Ubuntu PPA feed with this release. I don't think such fragmentation of the ecosystem would be a good thing.
BTW, can explicitly confirm that everything went well transitioning away from the jammy repo to the noble repo for an existing 24.04 system -- simply replace in the corresponding sources.list entry jammy with noble and 22.04 with 24.04, run apt update and then either plain apt upgrade if you were on 7.4.5 or older, or apt install --reinstall powershell if you were already on a jammy build of 7.4.6. You can then purge any older libicuNN package you may have kept around for reasons of satisfying dependencies for the jammy build.
Activity
kasini3000 commentedon May 9, 2024
Can we increase the libicu dependency to the number 80 (libicu80), or a version for the next 2 years?
briped commentedon May 12, 2024
Don't use this approach. See following comments.
dixonwille commentedon May 15, 2024
Following assumes
curlandjqis installed and is running with root permissions. But I didn't like ignoring the dependency on an internationalization package. Since libicu72 package name has the version in the name, you can install multiple versions of it at the same time. So I just installed libicu72 package before installing powershell.briped commentedon May 15, 2024
Thank you. my attempt didn't really hold up under scrutiny :) (following apt installs failed because of missing dependencies on powershell).
erichiller commentedon May 30, 2024
As noted above
--ignore-dependswill cause issues andapt-get -f installwill try to remove the powershell package.A hackish fix for this is to remove the dependency on libicu in the deb:
Hope this helps Brian Schmidt Pedersen (@briped) and anyone facing this issue.
doherty100 commentedon Jun 1, 2024
cloud-init installs using apt failing as well, this code works on 22.04:
Temp fix is to run this first (thx Will Dixon (@dixonwille)):
sc01194 commentedon Jun 6, 2024
Hi,
For those who look for a simple workaround install powershell via snap.
This solution was not mentioned in the post or I missed it and for me this was the cleanest and easiest way according to my basic use of powershell.
stephannn commentedon Jun 7, 2024
I don't remember exactly what is was, but I think in the snap version I had an issue with invoke-webrequest or loading certs. That's way I switched to the "normal" version
doherty100 commentedon Jun 7, 2024
Given APT is the official package manager for Canonical Ubuntu, I am hoping we can get a fix here that enables APT.
Viajaz commentedon Jun 25, 2024
What is the blocking task here? Is it just
libicu?Without a roadmap, this is starting to make me question whether I can trust Microsoft to support the Ubuntu platform natively for PowerShell and it's starting to affect my choice of PowerShell for projects that need to run on said platform.
22 remaining items
Viajaz commentedon Sep 24, 2024
Jason Helmick (@theJasonHelmick) Could we get an update on this? Is there a technical blocker of some sort? I've even heard of a Partner investigating publishing their own Ubuntu PPA feed with this release. I don't think such fragmentation of the ecosystem would be a good thing.
dixonwille commentedon Oct 4, 2024
Powershell Preview just made it to the repository from what I can tell (7.5.0-preview). So maybe when 7.5 is released? I hope not as it isn't supposed to be GA until January... https://packages.microsoft.com/ubuntu/24.04/prod/pool/main/p/
theJasonHelmick commentedon Oct 10, 2024
We have updated the build pipeline to include Ubuntu 24.04. The pipeline publishes to packages.microsoft.com when we do a new release. We have released a package for PowerShell 7.5-preview.5 at https://packages.microsoft.com/ubuntu/24.04/prod/pool/main/p/powershell-preview/powershell-preview_7.5.0-preview.5-1.deb_amd64.deb.
The package for the stable version PowerShell will published when we build the next release, PowerShell 7.4.6.
philhagen commentedon Oct 23, 2024
7.4.6 has been built (see https://github.com/PowerShell/PowerShell/releases/tag/v7.4.6). Do you have any insight into when this release will be available for installation with
aptvia the Microsoft-prod source?philhagen commentedon Oct 24, 2024
Andrew Savinykh (@AndrewSav) curious how Jason Helmick (@theJasonHelmick)'s comment above is to be interpreted, then.
#21385 (comment)
mihailim commentedon Oct 24, 2024
It's been finally published, we can all rejoice :) https://packages.microsoft.com/ubuntu/24.04/prod/pool/main/p/powershell/
mihailim commentedon Oct 24, 2024
BTW, can explicitly confirm that everything went well transitioning away from the jammy repo to the noble repo for an existing 24.04 system -- simply replace in the corresponding sources.list entry
jammywithnobleand22.04with24.04, runapt updateand then either plainapt upgradeif you were on 7.4.5 or older, orapt install --reinstall powershellif you were already on a jammy build of 7.4.6. You can then purge any olderlibicuNNpackage you may have kept around for reasons of satisfying dependencies for the jammy build.theJasonHelmick commentedon Oct 29, 2024
This package is now available at PMC. For more information see the PMC Readme:
https://packages.microsoft.com/docs/readme.txt
We are still working on the docker image pipeline. I will post an update when we have published
images to the MCR.
lutopastialis commentedon Nov 12, 2024
I confirm. Installing the latest Powershell stable release on Ubuntu 24.04.1 LTS works using the official instructions for the package repository method works without issues: https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu?view=powershell-7.4#installation-via-package-repository-the-package-repository
Thanks to everyone involved (on both sides :)) 👍
theJasonHelmick commentedon Jan 7, 2025
The Ubuntu 24.04 distribution is released to PMC.
microsoft-github-policy-service commentedon Jan 7, 2025
📣 Hey Jason Helmick (@theJasonHelmick), how did we do? We would love to hear your feedback with the link below! 🗣️
🔗 https://aka.ms/PSRepoFeedback