Skip to content

[DSR] - Ubuntu 24.04 x64 #21385

Closed
Closed

Description

Name of the Distribution

Ubuntu

Version of the Distribution

24.04

Package Types

  • Deb
  • RPM
  • Tar.gz
  • Snap - Stop! Please file your issue in PowerShell-Snap instead.

Processor Architecture

x64

.NET Core Support

Distribution Requirements

  • The version of the Distribution is supported for at least one year.
  • The version of the Distribution is not an interim release or equivalent.

Exemption Justification

No response

Progress

For PowerShell Team ONLY

  • Docker image created
  • Docker image published
  • Distribution tested
  • Update packages.microsoft.com deployment
  • Lifecycle updated
  • Documentation Updated

Activity

  1. added
    Distribution-Request
    Needs-Triage
    on Mar 27, 2024
  2. kasini3000 commented on May 9, 2024

    @kasini3000

    dpkg: dependency problems prevent configuration of powershell:
    powershell depends on libicu72 | libicu71 | libicu70 | libicu69 | libicu68 | libicu67 | libicu66 | libicu65 | libicu63 | libicu60 | libicu57 | libicu55 | libicu52; however:

    Can we increase the libicu dependency to the number 80 (libicu80), or a version for the next 2 years?

  3. briped commented on May 12, 2024

    @briped

    Don't use this approach. See following comments.

    sudo dpkg --install --ignore-depends=libicu72 powershell_7.4.2-1.deb_amd64.deb
    
  4. dixonwille commented on May 15, 2024

    @dixonwille

    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.

    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
  5. briped commented on May 15, 2024

    @briped

    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).

  6. erichiller commented on May 30, 2024

    @erichiller

    Don't use this approach. See following comments.

    sudo dpkg --install --ignore-depends=libicu72 powershell_7.4.2-1.deb_amd64.deb
    

    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:

    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 Brian Schmidt Pedersen (@briped) and anyone facing this issue.

  7. doherty100 commented on Jun 1, 2024

    @doherty100

    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
    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.
    

    Temp fix is to run this first (thx Will Dixon (@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
  8. sc01194 commented on Jun 6, 2024

    @sc01194

    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.

  9. stephannn commented on Jun 7, 2024

    @stephannn

    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

  10. doherty100 commented on Jun 7, 2024

    @doherty100

    Given APT is the official package manager for Canonical Ubuntu, I am hoping we can get a fix here that enables APT.

  11. Viajaz commented on Jun 25, 2024

    @Viajaz

    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.

  12. 22 remaining items

  13. Viajaz commented on Sep 24, 2024

    @Viajaz

    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.

  14. dixonwille commented on Oct 4, 2024

    @dixonwille

    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/

  15. theJasonHelmick commented on Oct 10, 2024

    @theJasonHelmick
    CollaboratorAuthor

    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.

  16. philhagen commented on Oct 23, 2024

    @philhagen

    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 apt via the Microsoft-prod source?

    GitHub
    7.4.6 - 2024-10-22 Build and Packaging Improvements

    Bump .NET SDK to 8.0.403

    Copy to static site instead of making blob public (#24269) (#24473)
    Add ability to capture MSBuild Binary logs when ...

  17. philhagen commented on Oct 24, 2024

    @philhagen

    Andrew Savinykh (@AndrewSav) curious how Jason Helmick (@theJasonHelmick)'s comment above is to be interpreted, then.

    #21385 (comment)

    The package for the stable version PowerShell will published when we build the next release, PowerShell 7.4.6.

  18. mihailim commented on Oct 24, 2024

    @mihailim
  19. mihailim commented on Oct 24, 2024

    @mihailim

    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.

  20. theJasonHelmick commented on Oct 29, 2024

    @theJasonHelmick
    CollaboratorAuthor

    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.

  21. lutopastialis commented on Nov 12, 2024

    @lutopastialis

    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 :)) 👍

    Information about installing PowerShell on Ubuntu
  22. theJasonHelmick commented on Jan 7, 2025

    @theJasonHelmick
    CollaboratorAuthor

    The Ubuntu 24.04 distribution is released to PMC.

  23. microsoft-github-policy-service commented on Jan 7, 2025

    @microsoft-github-policy-service
    Contributor

    📣 Hey Jason Helmick (@theJasonHelmick), how did we do? We would love to hear your feedback with the link below! 🗣️

    🔗 https://aka.ms/PSRepoFeedback

  24. removed
    Needs-Triage
    KeepOpen
    on Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Distribution-Request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions