LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-04-2019, 07:04 AM   #1
whois1230
Member
 
Registered: Sep 2018
Posts: 72

Rep: Reputation: Disabled
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. I tried to extract it, but nothing happens
 
Old 03-04-2019, 07:20 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,691

Rep: Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517
Show us.
 
2 members found this post helpful.
Old 03-04-2019, 07:26 AM   #3
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,853

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by whois1230 View Post
Hi, I downloaded Powershell Core for debian as a .deb file from github, and when I run it the installation doesn't start. I tried to extract it, but nothing happens
What do you mean by it? What did you run? Note that deb files can't be run, usually.

Did you follow the instructions?
 
2 members found this post helpful.
Old 03-04-2019, 07:57 AM   #4
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 3,847
Blog Entries: 3

Rep: Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815
It's best not to mess with packages from outside your standard repository, or outside of a select few extended repositories. Those are determined by the distro. Which distro do you have, including version?

Also, what problem are you trying to solve? Dash, Bash, Zsh, or Ksh are decades ahead of the lump Powershell. M$ is unlikely to catch up.
 
1 members found this post helpful.
Old 03-04-2019, 07:18 PM   #5
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 205

Rep: Reputation: 40
What people are saying, albeit a little abruptly, is that you need to be much more detailed in telling us what you did. For example, "I tried to extract it but nothing happens" doesn't tell us what steps you did and what was displayed afterwards. Are you using the command-line, or are you clicking on icons? And so on.
 
1 members found this post helpful.
Old 03-05-2019, 09:36 AM   #6
whois1230
Member
 
Registered: Sep 2018
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
Show us.
I posted screenshots. I need to install powershell core for the debugger AvalonialSpy(based on ILSpy).
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2019-03-04 14-00-40.jpg
Views:	6
Size:	195.0 KB
ID:	30015   Click image for larger version

Name:	Screenshot from 2019-03-04 14-00-51.jpg
Views:	6
Size:	198.9 KB
ID:	30016   Click image for larger version

Name:	Screenshot from 2019-03-04 14-00-59.jpg
Views:	5
Size:	100.7 KB
ID:	30017   Click image for larger version

Name:	Screenshot from 2019-03-04 14-01-04.jpg
Views:	5
Size:	200.6 KB
ID:	30018   Click image for larger version

Name:	Screenshot from 2019-03-04 14-01-26.jpg
Views:	5
Size:	198.1 KB
ID:	30019  

 
Old 03-05-2019, 09:38 AM   #7
whois1230
Member
 
Registered: Sep 2018
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
What do you mean by it? What did you run? Note that deb files can't be run, usually.

Did you follow the instructions?
By it I mean the .deb file. I'm new to Debian and as I used Mint before Debian, I'm used to open and install .deb files. I followed the instructions to the letter and I got several errors.
 
Old 03-05-2019, 09:41 AM   #8
whois1230
Member
 
Registered: Sep 2018
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
It's best not to mess with packages from outside your standard repository, or outside of a select few extended repositories. Those are determined by the distro. Which distro do you have, including version?

Also, what problem are you trying to solve? Dash, Bash, Zsh, or Ksh are decades ahead of the lump Powershell. M$ is unlikely to catch up.
I have Debian 9.8 stable stretch amd64 full installation. I need powershell for AvalonialSpy(a GUI for ILSpy), which is a debugger for C#, which I am learning now. I am programming with Monodevelop on Debian and Mint, and am fairly new to programming.
 
Old 03-05-2019, 09:44 AM   #9
whois1230
Member
 
Registered: Sep 2018
Posts: 72

Original Poster
Rep: Reputation: Disabled
I will post the output of the instructions given for Debian on https://docs.microsoft.com/en-us/pow...ell-6#debian-9
Code:
user@debian:~$ sudo ufw status
[sudo] password for user: 
Status: active
user@debian:~$ sudo apt-get update
Ign:1 http://ftp.uni-mainz.de/debian stretch InRelease
Get:2 https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease [3,232 B]
Get:3 https://download.mono-project.com/repo/debian stable-stretch InRelease [5,878 B]
Hit:4 http://security.debian.org stretch/updates InRelease                     
Get:5 https://download.mono-project.com/repo/debian vs-stretch InRelease [5,879 B]
Ign:2 https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease
Get:6 https://repo.windscribe.com/debian stretch InRelease [7,326 B]
Ign:3 https://download.mono-project.com/repo/debian stable-stretch InRelease   
Ign:5 https://download.mono-project.com/repo/debian vs-stretch InRelease       
Hit:7 http://ftp.uni-mainz.de/debian stretch-updates InRelease
Hit:8 http://ftp.uni-mainz.de/debian stretch Release
Ign:6 https://repo.windscribe.com/debian stretch InRelease
Fetched 22.3 kB in 2s (10.4 kB/s)
Reading package lists... Done
W: https://packages.microsoft.com/repos/microsoft-debian-stretch-prod/dists/stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
W: The repository 'https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: https://download.mono-project.com/repo/debian/dists/stable-stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: https://download.mono-project.com/repo/debian stable-stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A6A19B38D3D831EF
W: The repository 'https://download.mono-project.com/repo/debian stable-stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://security.debian.org/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: https://download.mono-project.com/repo/debian/dists/vs-stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: https://download.mono-project.com/repo/debian vs-stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A6A19B38D3D831EF
W: The repository 'https://download.mono-project.com/repo/debian vs-stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: https://repo.windscribe.com/debian/dists/stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: https://repo.windscribe.com/debian stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D5AD3767530B91D0
W: The repository 'https://repo.windscribe.com/debian stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://ftp.uni-mainz.de/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.uni-mainz.de/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
user@debian:~$ sudo apt-get install curl gnupg apt-transport-https
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-transport-https is already the newest version (1.4.9).
curl is already the newest version (7.52.1-5+deb9u9).
gnupg is already the newest version (2.1.18-8~deb9u4).
The following package was automatically installed and is no longer required:
  libmono-system-runtime-interopservices-runtimeinformation4.0-cil
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
user@debian:~$ curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   983  100   983    0     0   5342      0 --:--:-- --:--:-- --:--:--  5371
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
user@debian:~$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > /etc/apt/sources.list.d/microsoft.list'
user@debian:~$ sudo apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://ftp.uni-mainz.de/debian stretch InRelease
Hit:3 http://ftp.uni-mainz.de/debian stretch-updates InRelease
Hit:4 http://ftp.uni-mainz.de/debian stretch Release
Get:5 https://download.mono-project.com/repo/debian stable-stretch InRelease [5,878 B]
Get:6 https://download.mono-project.com/repo/debian vs-stretch InRelease [5,879 B]
Get:7 https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease [3,232 B]
Ign:5 https://download.mono-project.com/repo/debian stable-stretch InRelease
Ign:6 https://download.mono-project.com/repo/debian vs-stretch InRelease
Ign:7 https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease
Get:9 https://repo.windscribe.com/debian stretch InRelease [7,326 B]
Ign:9 https://repo.windscribe.com/debian stretch InRelease
Fetched 22.3 kB in 0s (30.7 kB/s)
Reading package lists... Done
W: http://security.debian.org/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.uni-mainz.de/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.uni-mainz.de/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: https://download.mono-project.com/repo/debian/dists/stable-stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: https://download.mono-project.com/repo/debian stable-stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A6A19B38D3D831EF
W: The repository 'https://download.mono-project.com/repo/debian stable-stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: https://download.mono-project.com/repo/debian/dists/vs-stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: https://download.mono-project.com/repo/debian vs-stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A6A19B38D3D831EF
W: The repository 'https://download.mono-project.com/repo/debian vs-stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: https://packages.microsoft.com/repos/microsoft-debian-stretch-prod/dists/stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
W: The repository 'https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: https://repo.windscribe.com/debian/dists/stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: https://repo.windscribe.com/debian stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D5AD3767530B91D0
W: The repository 'https://repo.windscribe.com/debian stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
user@debian:~$ sudo apt-get install -y powershell
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libmono-system-runtime-interopservices-runtimeinformation4.0-cil
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  liblttng-ust-ctl2 liblttng-ust0 liburcu4
The following NEW packages will be installed:
  liblttng-ust-ctl2 liblttng-ust0 liburcu4 powershell
0 upgraded, 4 newly installed, 0 to remove and 3 not upgraded.
Need to get 58.3 MB of archives.
After this operation, 159 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  powershell
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
user@debian:~$ pwsh
bash: pwsh: command not found
user@debian:~$
 
Old 03-05-2019, 03:47 PM   #10
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,853

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
There is a problem with your key management, which will probbably affect the installation of any software, not just Powershell:
Quote:
The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
As a result, Powershell is not installed:
Quote:
WARNING: The following packages cannot be authenticated!
powershell
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
Note that lines starting with an E indicate an error, meaning that apt can’t accomplish the task.

You could try the allow-unauthenticated option. But installing packages without authenticating them is risky, and you better fix the key problem.

EDIT: Similar problem with solution here: https://www.linuxquestions.org/quest...or-4175627172/

Last edited by berndbausch; 03-05-2019 at 04:20 PM. Reason: wording
 
1 members found this post helpful.
Old 03-08-2019, 02:24 PM   #11
whois1230
Member
 
Registered: Sep 2018
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
There is a problem with your key management, which will probbably affect the installation of any software, not just Powershell:


As a result, Powershell is not installed:

Note that lines starting with an E indicate an error, meaning that apt canít accomplish the task.

You could try the allow-unauthenticated option. But installing packages without authenticating them is risky, and you better fix the key problem.

EDIT: Similar problem with solution here: https://www.linuxquestions.org/quest...or-4175627172/
I read the thread you refer to but could not find a solution there. If someone could explain how to fix this without the allow-unauthenticated option?
 
Old 03-08-2019, 03:52 PM   #12
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,853

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You could google the error. It seems that deleting or renaming the keyring file or changing its permissions may help. For example, https://lists.debian.org/debian-user.../msg00346.html.

Seems to be a bug.
 
1 members found this post helpful.
Old 03-09-2019, 07:53 AM   #13
whois1230
Member
 
Registered: Sep 2018
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
You could google the error. It seems that deleting or renaming the keyring file or changing its permissions may help. For example, https://lists.debian.org/debian-user.../msg00346.html.

Seems to be a bug.
Thanks, your answer solved the problem. Marking as solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Install Microsoft PowerShell 6.1.1 on Ubuntu 18.04 LTS LXer Syndicated Linux News 0 01-19-2019 12:11 AM
LXer: Vivaldi's New Qwant Privacy-Focused Search Engine, Microsoft Makes PowerShell Core a Snap, Red Hat Ansible Engine 2.6 Now Available, A LXer Syndicated Linux News 0 07-21-2018 01:15 PM
PowerShell Core 6.0 Available On Linux dugan Linux - News 0 01-12-2018 12:44 PM
LXer: Microsoft open-sources PowerShell for Linux, Macs. Repeat, Microsoft open-sources PowerShell for Linux LXer Syndicated Linux News 0 08-19-2016 03:50 AM
powershell on slackware? slinky2004 Slackware 2 10-07-2005 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration