Repository navigation
Closed
Labels
WG-Maintainers-Buildspecific to affecting the build
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
- Install latest version of Debian with
wsl --install Debian - 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- Update with
sudo apt update && sudo apt upgrade -y - Install
wgetwithsudo apt install -y wget - 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]- 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/AEnvironment 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 UnicodeVisuals
No response
Related To
Reacted by Shane Frasier, Nicolas Rodriguez, Hugo-C, Dan Albrecht, Taomyn, bakamake and Hendrik
Metadata
Metadata
Assignees
Labels
WG-Maintainers-Buildspecific to affecting the build
Activity
similar-issues-ai commentedon Aug 15, 2025
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.
RichardSlater commentedon Aug 15, 2025
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.
237dmitry commentedon Aug 15, 2025
Try with 76? Both versions work on Arch: 7.5.2 and 7.6.0-preview.4
RichardSlater commentedon Aug 15, 2025
The issue is with the
.debnot the binary, the binary runs just fine.libicu76is 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 dependencylibicu74 | libicu72 | libicu71 | libicu70 | libicu69 | libicu68 | libicu67 | libicu66 | libicu65 | libicu63 | libicu60 | libicu57 | libicu55 | libicu52in 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 forlibicu76.fix(): add libicu76 dependency
Steffen70 commentedon Aug 19, 2025
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
libicu74package created withequivs. The dummy package satisfies the Powershell dependency onlibicu74, allowing installation while using the actuallibicu76library provided by Debian 13.The dummy package control file looks like this:
After installing this dummy package, installing Powershell via
aptfrom the bookworm repo works flawlessly on Debian 13.This is a useful workaround until an updated Powershell package supporting
libicu76is officially released.jsf9k commentedon Aug 20, 2025
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.
kasini3000 commentedon Aug 23, 2025
an unofficial temporary solution:
viperthunder commentedon Aug 24, 2025
This is also an issue with Pwsh LTS v7.4.11 on Debian13.
scibotaru commentedon Aug 26, 2025
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.debHave fun with PowerShell on Trixie!
Anunakin commentedon Sep 2, 2025
This solved for me:
sudo apt install libicu76sudo dpkg --ignore-depends=libicu74 -i powershell_7.5.2-1.deb_amd64.debAdd workaround for outdated dependency of PowerShell/PowerShell
Scetrov commentedon Sep 3, 2025
I hate the fact that works, but well spotted.
3 remaining items
mcx808 commentedon Sep 11, 2025
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.
RichardSlater commentedon Sep 12, 2025
While the change made it into mainline, it hasn't yet made it into a release of
7.5or7.6-preview*.Hashbrown777 commentedon Sep 24, 2025
Just note that you will need to edit
/var/lib/dpkg/statusotherwise you will be unable to install anything else afterward (apt-get will complain that powershell is missing its dependency).Search for
powershellin the file, and replace thelibicu74 | libicu... icu52,withlibicu76,on theDepends:line.Then run
sudo apt-get -f installto update these changes.schwaerz commentedon Oct 13, 2025
I wonder when we can expect a release of the new package?
RichardSlater commentedon Oct 14, 2025
In-line with .NET 10 release; which is when official
libicu76support is added to .NET 10 - should be in about a month going by previous releases.Oscaruzzo commentedon Oct 27, 2025
Why is this closed? It still happens with 7.5.4
fdcastel commentedon Oct 27, 2025
Fixed in
preview.5:daxian-dbw commentedon Oct 27, 2025
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
rzippo commentedon Nov 13, 2025
That table you linked now says that .NET 9.0 also supports Debian 13.
daxian-dbw commentedon Nov 17, 2025
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.
Scetrov commentedon Nov 21, 2025
My read on this is that there was a view within Microsoft that adding support for
libicu76would 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 withlibicu76so 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.fdcastel commentedon Dec 13, 2025
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 --classicAnd restart your shell to add
/snap/binto PATH.As of today, this will install PowerShell 7.5.4.
vand3rlinden commentedon Dec 13, 2025
Indeed, instead of to run PowerShell with
pwsh, you can run:snap run powershellto start PowerShell (tested on Debian 13)justinmbyrne commentedon Dec 19, 2025
Anunakin
Hashbrown777
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.0Thanks everyone for working on this, I just jumped from Ubuntu to Trixie and this was the last big snaggle!