Skip to content

Unable to install 7.5.4 on Debian 13 (Trixie) due to unmet dependency on libicu[74|72|70|69|68|67|66|65|63|60|57|55|52] #25865

Closed

Description

Prerequisites

Steps to reproduce

  1. Install latest version of Debian with wsl --install Debian
  2. Check the version installed is correct with lsb_release -a
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 13 (trixie)
Release:        13
Codename:       trixie
  1. Update with sudo apt update && sudo apt upgrade -y
  2. Install wget with sudo apt install -y wget
  3. Download latest deb
$ wget https://github.com/PowerShell/PowerShell/releases/download/v7.5.2/powershell_7.5.2-1.deb_amd64.deb
Resolving github.com (github.com)... 20.26.156.215
Connecting to github.com (github.com)|20.26.156.215|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 75453694 (72M) [application/octet-stream]
Saving to: ‘powershell_7.5.2-1.deb_amd64.deb.1’

powershell_7.5.2-1.deb_amd64.d 100%[==================================================>]  71.96M  96.1MB/s    in 0.7s

2025-08-15 12:36:33 (96.1 MB/s) - ‘powershell_7.5.2-1.deb_amd64.deb.1’ saved [75453694/75453694]
  1. Install with sudo apt install ./powershell_7.5.2-1.deb_amd64.deb

Results in:

$ sudo apt install ./powershell_7.5.2-1.deb_amd64.deb
Note, selecting 'powershell' instead of './powershell_7.5.2-1.deb_amd64.deb'
Solving dependencies... Error!
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:

Unsatisfied dependencies:
 powershell : Depends: libicu74 but it is not installable or
                       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
Error: Unable to correct problems, you have held broken packages.
Error: The following information from --solver 3.0 may provide additional context:
   Unable to satisfy dependencies. Reached two conflicting decisions:
   1. powershell:amd64=7.5.2-1.deb is selected for install
   2. powershell:amd64 Depends libicu74 | libicu72 | libicu71 | libicu70 | libicu69 | libicu68 | libicu67 | libicu66 | libicu65 | libicu63 | libicu60 | libicu57 | libicu55 | libicu52
      but none of the choices are installable:
      [no choices]

Expected behavior

`.deb` should be installable on modern stable versions of Debian and Ubuntu.

Actual behavior

$ sudo apt install ./powershell_7.5.2-1.deb_amd64.deb
Note, selecting 'powershell' instead of './powershell_7.5.2-1.deb_amd64.deb'
Solving dependencies... Error!
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:

Unsatisfied dependencies:
 powershell : Depends: libicu74 but it is not installable or
                       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
Error: Unable to correct problems, you have held broken packages.
Error: The following information from --solver 3.0 may provide additional context:
   Unable to satisfy dependencies. Reached two conflicting decisions:
   1. powershell:amd64=7.5.2-1.deb is selected for install
   2. powershell:amd64 Depends libicu74 | libicu72 | libicu71 | libicu70 | libicu69 | libicu68 | libicu67 | libicu66 | libicu65 | libicu63 | libicu60 | libicu57 | libicu55 | libicu52
      but none of the choices are installable:
      [no choices]

Error details

N/A

Environment data

$ uname -a
Linux ENS-BKT92T3 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun  5 18:30:46 UTC 2025 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 13 (trixie)
Release:        13
Codename:       trixie
$ apt search libicu
icu-devtools/stable 76.1-4 amd64
  Development utilities for International Components for Unicode

libicu-dev/stable 76.1-4 amd64
  Development files for International Components for Unicode

libicu4j-4.4-java/stable 4.4.2.2-4 all
  Library for Unicode support and internationalization

libicu4j-java/stable 73.2-1 all
  Library for Unicode support and internationalization

libicu76/stable 76.1-4 amd64
  International Components for Unicode

Visuals

No response

Related To

Activity

  1. added
    Needs-Triage
    on Aug 15, 2025
  2. similar-issues-ai commented on Aug 15, 2025

    @similar-issues-ai

    We've found some similar issues:

    If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

    Note: You can give me feedback by 👍 or 👎 this comment.

  3. RichardSlater commented on Aug 15, 2025

    @RichardSlater
    ContributorAuthor

    We've found some similar issues:

    If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

    This is related, however neither of those issues are specific to Debian 13.

    It is possible to install an older version of PowerShell by using rhubarb-geek-nz's packages, and installing dotnet.

    wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
    sudo dpkg -i packages-microsoft-prod.deb
    rm packages-microsoft-prod.deb
    sudo apt-get update
    wget https://github.com/rhubarb-geek-nz/powershell-ubuntu/releases/download/7.5.1/powershell_7.5.1-1.ubuntu_amd64.deb
    sudo apt install ./powershell_7.5.1-1.ubuntu_amd64.deb
    
  4. 237dmitry commented on Aug 15, 2025

    @237dmitry

    Try with 76? Both versions work on Arch: 7.5.2 and 7.6.0-preview.4

    $ pacman -Qs libicu
    local/icu 76.1-1
        International Components for Unicode library
    
  5. RichardSlater commented on Aug 15, 2025

    @RichardSlater
    ContributorAuthor

    Try with 76? Both versions work on Arch: 7.5.2 and 7.6.0-preview.4

    $ pacman -Qs libicu
    local/icu 76.1-1
        International Components for Unicode library
    

    The issue is with the .deb not the binary, the binary runs just fine. libicu76 is the only version of libicu available in Debian 13's apt repository, so apt solver3 (which is new to Debian 13) is unable to match on this dependency libicu74 | libicu72 | libicu71 | libicu70 | libicu69 | libicu68 | libicu67 | libicu66 | libicu65 | libicu63 | libicu60 | libicu57 | libicu55 | libicu52 in the pwsh Debian package.

    Previous PRs, have added libicu74 (https://github.com/PowerShell/PowerShell/pull/24324/files#diff-8ac11d6f4bbedfce810550a3f8cfd0ee21f8b14085a5764d38577994c7e7c736R1601), looks like the same is needed for libicu76.

    GitHub
    Backport #24301
  6. added a commit that references this issue on Aug 15, 2025
    340baab
  7. Steffen70 commented on Aug 19, 2025

    @Steffen70

    I was able to install Powershell 7.5.1 on Debian 13 (Trixie) by using the Debian 12 (bookworm) Microsoft repository along with a dummy libicu74 package created with equivs. The dummy package satisfies the Powershell dependency on libicu74, allowing installation while using the actual libicu76 library provided by Debian 13.

    The dummy package control file looks like this:

    Section: misc
    Priority: optional
    Standards-Version: 4.1.4
    
    Package: libicu74
    Version: 74
    Provides: libicu74
    Architecture: all
    Description: Dummy libicu74 package to satisfy Powershell dependency on Debian 13 (libicu76)
     This is a dummy package that provides no files.  
     It exists only to satisfy the Powershell package dependency on libicu74,
     allowing installation on Debian 13 which uses libicu76.
    

    After installing this dummy package, installing Powershell via apt from the bookworm repo works flawlessly on Debian 13.

    This is a useful workaround until an updated Powershell package supporting libicu76 is officially released.

  8. jsf9k commented on Aug 20, 2025

    @jsf9k

    I am seeing the exact same issue (#25865) when attempting to build an Amazon AMI for Trixie in cisagov/teamserver-packer#107 and cisagov/egress-assess-packer#53.

  9. kasini3000 commented on Aug 23, 2025

    @kasini3000

    an unofficial temporary solution:

    wget https://mirrors.pku.edu.cn/debian/pool/main/i/icu/libicu72_72.1-3_amd64.deb
    dpkg -i ./libicu72_72.1-3_amd64.deb 
    wget https://github.com/PowerShell/PowerShell/releases/download/v7.5.2/powershell_7.5.2-1.deb_amd64.deb
    dpkg -i ./powershell_7.5.2-1.deb_amd64.deb 
    echo 'Subsystem powershell /usr/bin/pwsh -sshs -NoLogo -NoProfile' >>  /etc/ssh/sshd_config
    echo 'UseDNS no' >>  /etc/ssh/sshd_config
    #echo 'PermitRootLogin yes' >>  /etc/ssh/sshd_config
    systemctl restart ssh.service
  10. viperthunder commented on Aug 24, 2025

    @viperthunder

    This is also an issue with Pwsh LTS v7.4.11 on Debian13.

  11. scibotaru commented on Aug 26, 2025

    @scibotaru

    Works with an older version of libicu74.

    wget https://github.com/berkley4/icu-74-debian/releases/download/74.2-2/libicu74_74.2-2_amd64.deb
    dpkg --install ./libicu74_74.2-2_amd64.deb
    rm ./libicu74_74.2-2_amd64.deb
    
    # Download and Install PowerShell
    wget https://github.com/PowerShell/PowerShell/releases/download/v7.5.2/powershell_7.5.2-1.deb_amd64.deb
    dpkg --install ./powershell_7.5.2-1.deb_amd64.deb
    rm ./powershell_7.5.2-1.deb_amd64.deb

    Have fun with PowerShell on Trixie!

  12. Anunakin commented on Sep 2, 2025

    @Anunakin

    This solved for me:
    sudo apt install libicu76
    sudo dpkg --ignore-depends=libicu74 -i powershell_7.5.2-1.deb_amd64.deb

  13. added
    WG-Maintainers-Build
    on Sep 3, 2025
  14. Scetrov commented on Sep 3, 2025

    @Scetrov

    This solved for me: sudo apt install libicu76 sudo dpkg --ignore-depends=libicu74 -i powershell_7.5.2-1.deb_amd64.deb

    I hate the fact that works, but well spotted.

  15. 3 remaining items

  16. removed
    Needs-Triage
    on Sep 10, 2025
  17. mcx808 commented on Sep 11, 2025

    @mcx808

    Not sure how we can provide feedback yet, the PR was merged but still not present in releases powershell_7.5.3-1.deb_amd64.deb powershell-lts_7.4.12-1.deb_amd64.deb so not able to validate it yet.

  18. RichardSlater commented on Sep 12, 2025

    @RichardSlater
    ContributorAuthor

    Not sure how we can provide feedback yet, the PR was merged but still not present in releases powershell_7.5.3-1.deb_amd64.deb powershell-lts_7.4.12-1.deb_amd64.deb so not able to validate it yet.

    While the change made it into mainline, it hasn't yet made it into a release of 7.5 or 7.6-preview*.

  19. Hashbrown777 commented on Sep 24, 2025

    @Hashbrown777

    This solved for me: sudo apt install libicu76 sudo dpkg --ignore-depends=libicu74 -i powershell_7.5.2-1.deb_amd64.deb

    I hate the fact that works, but well spotted.

    Just note that you will need to edit /var/lib/dpkg/status otherwise you will be unable to install anything else afterward (apt-get will complain that powershell is missing its dependency).
    Search for powershell in the file, and replace the libicu74 | libicu... icu52, with libicu76, on the Depends: line.
    Then run sudo apt-get -f install to update these changes.

  20. schwaerz commented on Oct 13, 2025

    @schwaerz

    I wonder when we can expect a release of the new package?

  21. RichardSlater commented on Oct 14, 2025

    @RichardSlater
    ContributorAuthor

    I wonder when we can expect a release of the new package?

    In-line with .NET 10 release; which is when official libicu76 support is added to .NET 10 - should be in about a month going by previous releases.

  22. Oscaruzzo commented on Oct 27, 2025

    @Oscaruzzo

    Why is this closed? It still happens with 7.5.4

  23. fdcastel commented on Oct 27, 2025

    @fdcastel

    Fixed in preview.5:

    apt-get update -y
    apt-get install -y curl libicu76
    # https://github.com/PowerShell/PowerShell/issues/25865
    curl -L -o /tmp/pwsh.deb https://github.com/PowerShell/PowerShell/releases/download/v7.6.0-preview.5/powershell-preview_7.6.0-preview.5-1.deb_amd64.deb
    dpkg -i /tmp/pwsh.deb
    rm /tmp/pwsh.deb
    
    # Not proud, but...
    echo "alias pwsh=pwsh-preview" >> ~/.bashrc
    alias pwsh=pwsh-preview
  24. daxian-dbw commented on Oct 27, 2025

    @daxian-dbw
    Member

    Why is this closed? It still happens with 7.5.4

    The fix #25866 was not backported to 7.5 branch because PowerShell v7.5 is on .NET 9.0, which only supports Debian 12.
    PS v7.6.0-preview.5 is on .NET 10, which supports Debian 13

  25. rzippo commented on Nov 13, 2025

    @rzippo
    Contributor

    The fix #25866 was not backported to 7.5 branch because PowerShell v7.5 is on .NET 9.0, which only supports Debian 12.

    That table you linked now says that .NET 9.0 also supports Debian 13.

  26. daxian-dbw commented on Nov 17, 2025

    @daxian-dbw
    Member

    Raffaele Zippo (@rzippo) The table was updated on Oct 28th, after my comment was posted:
    https://github.com/dotnet/core/pull/10137/files#diff-4a789e8157a6362c43a84f58d12646edc31b264f899378cb553c381aafe60f37

    I have no idea why the supported OS for .NET 9 suddenly changed.

  27. Scetrov commented on Nov 21, 2025

    @Scetrov

    I have no idea why the supported OS for .NET 9 suddenly changed.

    My read on this is that there was a view within Microsoft that adding support for libicu76 would be harder for .NET 9 than it actually was; I did some testing when preparing this PR and couldn't actually find any issues with .NET 9 on Trixie with libicu76 so it may simply be a case of it passed the test suite and installed just fine on Trixie / Ubuntu 25.10 after updating the dependency. You are however 100% right up until the end of October it did look like Trixie would only be supported by .NET 10.

  28. fdcastel commented on Dec 13, 2025

    @fdcastel

    Just for the record: Another option is to use the Snap package manager, since it handles dependencies apart of the APT system.

    apt update -y
    apt install -y snapd
    systemctl restart snapd    # Avoid "context canceled" errors in some cases
    
    snap install powershell --classic

    And restart your shell to add /snap/bin to PATH.

    As of today, this will install PowerShell 7.5.4.

  29. vand3rlinden commented on Dec 13, 2025

    @vand3rlinden

    Just for the record: Another option is to use the Snap package manager, since it handles dependencies apart of the APT system.

    apt update -y
    apt install -y snapd
    systemctl restart snapd # Avoid "context canceled" errors in some cases

    snap install powershell --classic

    And restart your shell to add /snap/bin to PATH.

    As of today, this will install PowerShell 7.5.4.

    Indeed, instead of to run PowerShell with pwsh, you can run: snap run powershell to start PowerShell (tested on Debian 13)

  30. justinmbyrne commented on Dec 19, 2025

    @justinmbyrne

    Anunakin

    This solved for me:
    sudo apt install libicu76
    sudo dpkg --ignore-depends=libicu74 -i powershell_7.5.2-1.deb_amd64.deb

    Hashbrown777

    Just note that you will need to edit /var/lib/dpkg/status otherwise you will be unable to install anything else afterward (apt-get will complain that powershell is missing its dependency). Search for powershell in the file, and replace the libicu74 | libicu... icu52, with libicu76, on the Depends: line. Then run sudo apt-get -f install to update these changes.

    This sorted it for me.

    Hashbrown777: Note you can prepend libicu76 | at the start of the libicu## dependencies on that line since the pipe is a logical or. This helps to keep the other dependencies more or less intact. This is my own working depends line for reference:

    Depends: libc6, libgcc1, libgssapi-krb5-2, libstdc++6, zlib1g, libicu76 | libicu74 | libicu72 | libicu71 | libicu70 | libicu69 | libicu68 | libicu67 | libicu66 | libicu65 | libicu63 | libicu60 | libicu57 | libicu55 | libicu52, libssl3 | libssl1.1 | libssl1.0.2 | libssl1.0.0

    Thanks everyone for working on this, I just jumped from Ubuntu to Trixie and this was the last big snaggle!

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

    WG-Maintainers-Build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions