-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[DSR] - Ubuntu 24.04 x64 #21385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can we increase the libicu dependency to the number 80 (libicu80), or a version for the next 2 years? |
Don't use this approach. See following comments.
|
Following assumes tmpDir=$(mktemp -d)
curl -sSL 'https://launchpad.net/ubuntu/+archive/primary/+files/libicu72_72.1-3ubuntu3_amd64.deb' -o "$tmpDir/libicu72_72.1-3ubuntu3_amd64.deb"
dpkg -i "$tmpDir"/libicu72_72.1-3ubuntu3_amd64.deb
downloadUrl=$(curl -sSL "https://api.github.com/repos/PowerShell/PowerShell/releases/latest" |
jq -r '[.assets[] | select(.name | endswith("_amd64.deb")) | .browser_download_url][0]')
curl -sSL "$downloadUrl" -o "$tmpDir/powershell.deb"
dpkg -i "$tmpDir"/powershell.deb |
Thank you. my attempt didn't really hold up under scrutiny :) (following apt installs failed because of missing dependencies on powershell). |
As noted above dpkg-deb --extract powershell-lts_7.4.2-1.deb_amd64.deb powershell-lts_7.4.2-1.deb_amd64
dpkg-deb --control powershell-lts_7.4.2-1.deb_amd64.deb powershell-lts_7.4.2-1.deb_amd64/DEBIAN
vim powershell-lts_7.4.2-1.deb_amd64/DEBIAN/control
# remove icu*
dpkg -b powershell-lts_7.4.2-1.deb_amd64/ powershell-lts_7.4.2-1.deb_amd64-fixed.deb
# install
sudo dpkg --install powershell-lts_7.4.2-1.deb_amd64-fixed.deb
# exits clean:
sudo apt-get -f install Hope this helps @briped and anyone facing this issue. |
cloud-init installs using apt failing as well, this code works on 22.04: cloud_config_modules:
- apt_configure
- package_update_upgrade_install
apt:
sources:
powershell:
source: 'deb https://packages.microsoft.com/ubuntu/24.04/prod $RELEASE main'
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.7 (GNU/Linux)
mQENBFYxWIwBCADAKoZhZlJxGNGWzqV+1OG1xiQeoowKhssGAKvd+buXCGISZJwT
LXZqIcIiLP7pqdcZWtE9bSc7yBY2MalDp9Liu0KekywQ6VVX1T72NPf5Ev6x6DLV
7aVWsCzUAF+eb7DC9fPuFLEdxmOEYoPjzrQ7cCnSV4JQxAqhU4T6OjbvRazGl3ag
OeizPXmRljMtUUttHQZnRhtlzkmwIrUivbfFPD+fEoHJ1+uIdfOzZX8/oKHKLe2j
H632kvsNzJFlROVvGLYAk2WRcLu+RjjggixhwiB+Mu/A8Tf4V6b+YppS44q8EvVr
M+QvY7LNSOffSO6Slsy9oisGTdfE39nC7pVRABEBAAG0N01pY3Jvc29mdCAoUmVs
ZWFzZSBzaWduaW5nKSA8Z3Bnc2VjdXJpdHlAbWljcm9zb2Z0LmNvbT6JATUEEwEC
AB8FAlYxWIwCGwMGCwkIBwMCBBUCCAMDFgIBAh4BAheAAAoJEOs+lK2+EinPGpsH
/32vKy29Hg51H9dfFJMx0/a/F+5vKeCeVqimvyTM04C+XENNuSbYZ3eRPHGHFLqe
MNGxsfb7C7ZxEeW7J/vSzRgHxm7ZvESisUYRFq2sgkJ+HFERNrqfci45bdhmrUsy
7SWw9ybxdFOkuQoyKD3tBmiGfONQMlBaOMWdAsic965rvJsd5zYaZZFI1UwTkFXV
KJt3bp3Ngn1vEYXwijGTa+FXz6GLHueJwF0I7ug34DgUkAFvAs8Hacr2DRYxL5RJ
XdNgj4Jd2/g6T9InmWT0hASljur+dJnzNiNCkbn9KbX7J/qK1IbR8y560yRmFsU+
NdCFTW7wY0Fb1fWJ+/KTsC4=
=J6gs
-----END PGP PUBLIC KEY BLOCK-----
filename: microsoft-prod.list
package_update: true
packages:
- powershell
package_upgrade: true
package_reboot_if_required: true sudo apt install powershell
Temp fix is to run this first (thx @dixonwille): tmpDir=$(mktemp -d)
curl -sSL 'https://launchpad.net/ubuntu/+archive/primary/+files/libicu72_72.1-3ubuntu3_amd64.deb' -o "$tmpDir/libicu72_72.1-3ubuntu3_amd64.deb"
dpkg -i "$tmpDir"/libicu72_72.1-3ubuntu3_amd64.deb |
Hi, |
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 |
Given APT is the official package manager for Canonical Ubuntu, I am hoping we can get a fix here that enables APT. |
What is the blocking task here? Is it just 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. |
Hey folks! This is top of priority list as we complete some pipeline work for our distro's. This work is currently targeted for release at the end of August. The distro roadmap is a GitHub project board located here: Distribution Requests (view) |
Don't get me wrong, I really appreciate the work you do. But having to wait 4 full months for something that people might consider an essential, if they're really using it. That does sound like a too long waiting time, especially if the reason is something minor like in this case. And it's not, that the release of Ubuntu 24.04 came too sudden to anticipate and that testing wasn't possible. :( |
Oh wow, I share @RouL 's feelings. I am a fan of Powershell and became a fan of Ubuntu because of Powershell. I don't want to rant either, but waiting another good one and a half months until it's eventually released at the end of August to be able to install Powershell through APT is throwing off my plans. For what it's worth, I wish the Powershell guys at Microsoft good luck for finalizing the work for the Ubuntu 24.04 release (fingers crossed). |
You can use snap: snap install powershell --classic Works well on my Ubuntu 24.04 LTS |
Snaps unfortunately come with their own set of problems. Not a problem when you use FireFox or something as a snap, but things like powershell? No thank you. |
@theJasonHelmick how likely do you see this work being completed by the end of August? We're approaching the end of month in a good week and there's still 10 tasks pending. No one is currently assigned to this issue.. I'd also like to understand whether this delay is normal for Powershell support of new Ubuntu LTS releases, so I can plan out migrations better in the future. Unfortunately, snap is not an option for me anymore, at least not as long as canonical keeps pushing stuff onto my system through snap without my consent. I'm not enough of a Linux expert to go fiddling with broken packages, dependencies and what not. |
Hi @lutopastialis -- Thank you for the question. We have been targeting the end of August, however may slip to the beginning of September. This is not the normal cadence for any release including Ubuntu. We have been focused on needed improvements to our release pipelines. As we finish that work, new releases will continue on our normal cadence. As the new images are released, I will be notifying in these issues and closing them. Hopefully this will occur in the next few weeks. |
Hi there ! Any update on this issue ? |
@candoumbe It's still not supported, not even after 24.04.1 was released and people starting upgrading en masse to noble. It's frankly ridiculous. BTW, you can check for yourself easily without attempting to install it -- access https://packages.microsoft.com/ubuntu/24.04/prod/pool/main/p/ and check whether there's a |
By the way, poor man's workaround:
After this issue is solved and it's properly released for |
@mihailim , I think you have the best workaround, but I also have minor suggestions for improvements, especially if we want to automate the installation, for example if we are building a Docker image:
Here are the concrete commands: wget https://mirrors.kernel.org/ubuntu/pool/main/i/icu/libicu70_70.1-2_amd64.deb
wget https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/p/powershell/powershell_7.4.5-1.deb_amd64.deb
sudo apt install ./libicu70_70.1-2_amd64.deb ./powershell_7.4.5-1.deb_amd64.deb |
@alexeikh Ah, you are right! For some reason I assumed that it would need ICU 72, but it declares a dep on Not sure about using relative paths for the |
@theJasonHelmick any updates? |
My organisation gave up at this moment. We'll continue onwards without PWSH. The release process seems to be not reliable enough when it comes to new Ubuntu LTS Releases. We didn't expect this to happen week 1, but 1 month seems to be a reasonable timeframe. It's now nearly 5 months. |
You can install the powershell dotnet tool. I'm a dotnet dev so I already had dotnet on my machine. |
...I can't find any words... How come we have to "hope" for this apparently trivial task to be completed anytime soon? If this were a one man spare time project I would fully understand. But according to Wikipedia there are 228k people working at Microsoft and there doesn't seem to have been any progress on this since my last inqury a month ago. So, what's the deal here? Anything?? |
Hello, -- Edited |
Don't get me wrong, but I think most people would've been happy if we would've at least got any pwsh 7.x Version at this point. And there is no excuse for this taking 5+ months. I mean wait one more month and a quarter of the time till the next Ubuntu LTS release has already passed. |
Hello, The crazy parts for me is that the dotnet sdk 8.0 on noble has already pwsh
So 99% of the work is done |
@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. |
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/ |
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. |
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 |
@AndrewSav curious how @theJasonHelmick's comment above is to be interpreted, then.
|
It's been finally published, we can all rejoice :) https://packages.microsoft.com/ubuntu/24.04/prod/pool/main/p/powershell/ |
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 |
This package is now available at PMC. For more information see the PMC Readme: We are still working on the docker image pipeline. I will post an update when we have published |
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 :)) 👍
|
The Ubuntu 24.04 distribution is released to PMC. |
📣 Hey @theJasonHelmick, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
Name of the Distribution
Ubuntu
Version of the Distribution
24.04
Package Types
Processor Architecture
x64
.NET Core Support
Distribution Requirements
Exemption Justification
No response
Progress
For PowerShell Team ONLY
packages.microsoft.com
deploymentThe text was updated successfully, but these errors were encountered: