Unable to install PS on Ubuntu server 20.04 LTS - package dependency update
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
I tried to install powershel in a fresh install of ubuntu server 20.04 LTS, but it said I needed libicu72 or lower. This is problematic, because the default ubuntu package repo has apparently removed all libicu versions other than libicu74, which isn't listed in PowerShell's dependencies.
Here's the output for listing libicu packages:
daniel@docker1:~$ apt list libicu* Listing... Done libicu-dev/noble 74.2-1ubuntu3 amd64 libicu4j-4.4-java/noble 4.4.2.2-4 all libicu4j-java/noble 73.2-1 all libicu74/noble,now 74.2-1ubuntu3 amd64 [installed]
The solution would probably be to update the dependencies to include libicu74 or lower.
Expected behavior
That the package actually installs correctly.Actual behavior
daniel@docker1:~$ sudo apt install -y 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.
Error details
Environment data
Visuals
No response