Try installing PowerShell on Debian-9 using the instructions for Debian-8.
Not sure. :) I just wanted to draw attention to the fact that it doesn't install, in case you hadn't gotten around to testing it yet.
The following packages have unmet dependencies:
powershell : Depends: libssl1.0.0 but it is not installable
Depends: libicu52 bit it is not installable
For libssl, Debian stretch has libssl1.0.2 installed. I'm not sure about the other library though.
root@myserver:/# cat /etc/debian_version
9.0
Looks like it's libicu57
for Debian 9.
This seems to also be the case for Kali. The install instructions here don't work. Missing libicu55
, only libicu57
is in the repos.
Installing the Ubuntu libicu55
package works to make it install, but the PowerShell process segfaults after running for a few seconds. Also confirmed on Debian 9. The trick of installing Ubuntu libicu55
package worked prior to beta.
Try to pull the network cable. Not even kidding. Powershell tries to communicate with 40.114.241.141. When it finds it, it fails getting a certificate from 40.114.241.141 and libcrypt or something like that crashes.
@KonstMisch Wow! That is kind of funny, but yeah I can confirm that unplugging the network cable fixes the issue for me.
Debian 9 has libcurl3 libssl1.0.2 libunwind8 libicu57 and PowerShell needs libssl1.0.0 and libicu55 in case of the Ubuntu 16.04 LTS deb Package.
You can install this package by changing the dependencies in the deb archive like this:
https://serverfault.com/questions/250224/how-do-i-get-apt-get-to-ignore-some-dependencies#answer-383958
Just change to the version in Debian (e.g. libssl1.0.2 libicu57) and install using dpkg -i package
It is a shame, there isn't a package for Debian 9 Stretch which is now current stable branch.
/cc @TravisEz13 Could you please look the Issue?
I assume you are referring to #3961
That IP address is AppInsights which is used to send startup telemetry. You can just follow the instructions to disable telemetry rather than pulling the network cable.
Just edit your apt sources:
cat /etc/apt/sources.list.d/microsoft.list
deb [arch=amd64] https://packages.microsoft.com/debian/stretch/prod stretch main
And libicu60 in Debian testing...
Just edit your apt sources:
cat /etc/apt/sources.list.d/microsoft.list
deb [arch=amd64] https://packages.microsoft.com/debian/stretch/prod stretch main
that does not help, the same issue on debian9
@melezhik Please open new issue with repo steps.
Have been facing the same problem.
And even tried to install manually disabling the dependencies(this approach makes PowerShell works
but makes apt-get not usable馃槉)
After some research found out that the Debian 9 repos don't include libicu57
So the next solution worked for me:
sudo add-apt-repository "deb http://ftp.de.debian.org/debian stretch main"
sudo apt-get update
sudo apt install powershell
.
[Optional] The final touch (to start PowerShell and set it as a default shell):
##set PowerShell as a default shell
chsh -s $(which pwsh)
## start shell
pwsh
I'm unable to get PS 7.0.2 to 'install' in my container's Dockerfile, based on Debian 9. I've tried @stadub 's suggestion, and one from: https://github.com/WhitewaterFoundry/Pengwin/issues/502
The following packages have unmet dependencies:
powershell : Depends: libssl1.0.2 but it is not installable
Depends: libicu57 but it is not installable
E: Unable to correct problems, you have held broken packages.
FROM mcr.microsoft.com/dotnet/core/sdk:3.1
# Add repository for missing dependencies
#&& add-apt-repository "deb http://ftp.de.debian.org/debian stretch main" \
&& add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/debian/10/prod buster main" \
&& apt-get update \
Any other ideas, please?
T. I. A.
@arcotek-ltd Do you follow https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/docs-conceptual/install/Installing-PowerShell-Core-on-Linux.md#debian-9?
GitHubThe official PowerShell documentation sources. Contribute to MicrosoftDocs/PowerShell-Docs development by creating an account on GitHub.
Most helpful comment
Just edit your apt sources:
cat /etc/apt/sources.list.d/microsoft.list
deb [arch=amd64] https://packages.microsoft.com/debian/stretch/prod stretch main