question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PowerShell fails to install on Debian-9

See original GitHub issue

Steps to reproduce

Try installing PowerShell on Debian-9 using the instructions for Debian-8.

Expected behavior

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.

Actual behavior

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.

Environment data

root@myserver:/# cat /etc/debian_version
9.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
lgomezgonzcommented, Jan 8, 2018

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

2reactions
michaelsynccommented, Dec 14, 2020

@iSazonov Sorry. I missed that out. The issue was that I don’t have those libraries pre-installed. Not sure if apt-get-install -f will install those dependenceis.

I have used the following steps that don’t require me to apt-get install -y powershell and it works for me.

# install the requirements
sudo apt-get install -y \
        less \
        locales \
        ca-certificates \
        libicu63 \
        libssl1.1 \
        libc6 \
        libgcc1 \
        libgssapi-krb5-2 \
        liblttng-ust0 \
        libstdc++6 \
        zlib1g \
        curl

# Download the powershell '.tar.gz' archive
curl -L  https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell-7.1.0-linux-x64.tar.gz -o /tmp/powershell.tar.gz

# Create the target folder where powershell will be placed
sudo mkdir -p /opt/microsoft/powershell/7

# Expand powershell to the target folder
sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7

# Set execute permissions
sudo chmod +x /opt/microsoft/powershell/7/pwsh

# Create the symbolic link that points to pwsh
sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh

# Start PowerShell
pwsh
Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Cannot install Powershell core
Hi, I downloaded Powershell Core for debian as a .deb file from github, and when I run it the installation doesn't start.
Read more >
Install PowerShell in Debian 9
To install Microsoft PowerShell in Debian 9, run Install GPG keys Add repository Install powershell To start powershell…
Read more >
Install PowerShell on Linux
Learn about the Linux distributions supported by PowerShell. ... PowerShell can be installed on different Linux distributions.
Read more >
How to Fix “E: unable to locate package” Error in Debian 9
Save and close the file. Then update the system packages list using the command below. # apt update. Now try to install the...
Read more >
Installing PowerShell on Debian Linux
Information about installing PowerShell on Debian Linux.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found