Skip to content

[DSR] - Debian 12 x64 #19889

Closed
Closed

Description

@Chouffy

Name of the Distribution

Debian

Version of the Distribution

12

Package Types

  • Deb
  • RPM
  • Tar.gz
  • Snap - Stop! Please file your issue in PowerShell-Snap instead.

Processor Architecture

amd64

.NET Core Support

Distribution Requirements

  • The version of the Distribution is supported for at least one year.
  • The version of the Distribution is not an interim release or equivalent.

Exemption Justification

No response

Progress

For PowerShell Team ONLY

  • Docker image created
  • Docker image published
  • Distribution tested
  • Update packages.microsoft.com deployment
  • Lifecycle updated
  • Documentation Updated

Activity

  1. added
    Distribution-Request
    Needs-Triage
    on Jul 4, 2023
  2. Chouffy commented on Jul 4, 2023

    @Chouffy
    Author

    Note on possible workaround: It's possible to install Powershell on Debian 12 via Snap, but it's not ideal :)

  3. 237dmitry commented on Jul 4, 2023

    @237dmitry

    As a linux user I recommend to install from tarball (not dpkg, not snap (!!!) or another package manager). Unpack pwsh distribution to /opt/pwsh Make simlink of pwsh to the path. Set additional permission for Test-Connection cmdlet:

    sudo setcap cap_net_raw=eip /opt/pwsh/pwsh     # the real path to executable pwsh

    You can change installation path as you want.

  4. kasini3000 commented on Jul 4, 2023

    @kasini3000
  5. changed the title [-]Distribution Support Request[/-] [+]Distribution Support Request - Debian 12[/+] on Jul 13, 2023
  6. tsugliani commented on Sep 1, 2023

    @tsugliani

    Very interested for this, as we are upgrading to Debian 12 (Bookworm)

    Seems to be missing in the microsoft bookworm repo, available on debian 10/11

    [ ] Update packages.microsoft.com deployment

    ❯ cat /etc/apt/sources.list.d/microsoft.list
    deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm main
  7. Erich-Chen commented on Sep 21, 2023

    @Erich-Chen

    It works by following Microsoft installation guide for bullseye, then manually editing file /etc/apt/sources.list.d/microsoft.list before install.

    # Save the public repository GPG keys
    curl https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --yes --dearmor --output /usr/share/keyrings/microsoft.gpg
    
    # Register the Microsoft Product feed
    sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main" > /etc/apt/sources.list.d/microsoft.list'
    
    # Edit file /etc/apt/sources.list.d/microsoft.list
    # deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm main
    
    # Install PowerShell
    sudo apt update && sudo apt install -y powershell
    
    # Start PowerShell
    pwsh
    
  8. prakashguru commented on Oct 18, 2023

    @prakashguru

    +1 for this.

    Travis Plunk (@TravisEz13) Will it possible for you to have a look at this? Something similar we have to do like debian 11 #10923

  9. ExNought commented on Oct 31, 2023

    @ExNought

    I am biting nails to get PowerShell on Debian 12. This is affecting my work since I am already on Debian 12 and VSC does not recognize PowerShell anymore. I currently use PowerShell from the legacy sources.

  10. rhubarb-geek-nz commented on Nov 22, 2023

    @rhubarb-geek-nz

    What is the issue with downloading the Debian package directly from the releases page?

    https://github.com/PowerShell/PowerShell/releases/download/v7.4.0/powershell_7.4.0-1.deb_amd64.deb

  11. eliminmax commented on Nov 25, 2023

    @eliminmax

    What is the issue with downloading the Debian package directly from the releases page?

    https://github.com/PowerShell/PowerShell/releases/download/v7.4.0/powershell_7.4.0-1.deb_amd64.deb

    It won't get updated with APT that way, and there's no guarantee that it will work on any particular version of Debian.

  12. prakashguru commented on Nov 25, 2023

    @prakashguru

    Dear Eli Array Minkoff (@eliminmax) I dont think there will be an issue to download manually the powershell and install it on my machine.

    But some of our customers using our application which has powershell as a dependency unable to install it on debian 12 because powershell is not published for debian 12.

    There are heavily restricted environments where installing packages outside of the official repositories are prohibited.

    So it is important and required to be published!

  13. AndrewSav commented on Nov 25, 2023

    @AndrewSav

    rhubarb-geek-nz for anyone who had ever worked in an enterprise environment it is obvious why this would not be very manageable. MS start to provide those for a reason, and for the same reason we ask them to continue to do so.

  14. rhubarb-geek-nz commented on Nov 25, 2023

    @rhubarb-geek-nz

    rhubarb-geek-nz for anyone who had ever worked in an enterprise environment it is obvious why this would not be very manageable. MS start to provide those for a reason, and for the same reason we ask them to continue to do so.

    Absolutely true but it is not a show stopper. The published debian file does work and it is not a rebuild required, just an addition to the packages.microsoft.com. If you are in an enterprise environment you may be hosting your own APT repositories or using downloads directly with curl when creating docker images.

    If you check the recent debian packages on packages.microsoft.com they are the same file

    #!/bin/sh -e
    
    for o in debian ubuntu
    do
            for v in 10 11 12 18.04 18.10 19.04 19.20 20.04 20.10 21.04 21.10 22.04 22.10 23.04 23.10
            do
                    if curl https://packages.microsoft.com/$o/$v/prod/pool/main/p/powershell/powershell_7.4.0-1.deb_amd64.deb --output powershell_7.4.0-1.$o.$v.deb_amd64.deb --location --fail --silent
                    then
                            sha256sum powershell_7.4.0-1.$o.$v.deb_amd64.deb
                    fi
            done
    done
    
    550331e243a7311e1bf0ca83d8c96c5e78ba82a765c4a9ba34aa0db6eb9a9f22  powershell_7.4.0-1.debian.10.deb_amd64.deb
    550331e243a7311e1bf0ca83d8c96c5e78ba82a765c4a9ba34aa0db6eb9a9f22  powershell_7.4.0-1.debian.11.deb_amd64.deb
    550331e243a7311e1bf0ca83d8c96c5e78ba82a765c4a9ba34aa0db6eb9a9f22  powershell_7.4.0-1.ubuntu.18.04.deb_amd64.deb
    550331e243a7311e1bf0ca83d8c96c5e78ba82a765c4a9ba34aa0db6eb9a9f22  powershell_7.4.0-1.ubuntu.20.04.deb_amd64.deb
    550331e243a7311e1bf0ca83d8c96c5e78ba82a765c4a9ba34aa0db6eb9a9f22  powershell_7.4.0-1.ubuntu.22.04.deb_amd64.deb
    

    The packages.microsoft.com repository for Ubuntu 22.04 amd64 is problematic because the dotnet-sdk-6.0 conflict with those distributed by ubuntu themselves. They have different version suffixes and install in different directories.

    $ dpkg -l | grep "dotnet
    > aspnet"
    ii  aspnetcore-runtime-6.0                6.0.125-0ubuntu1~22.04.1                amd64        ASP dotNET Core runtime
    ii  aspnetcore-runtime-7.0                7.0.114-0ubuntu1~22.04.1                amd64        ASP dotNET Core runtime
    ii  aspnetcore-targeting-pack-6.0         6.0.125-0ubuntu1~22.04.1                amd64        Internal - targeting pack for Microsoft.AspNetCore.App 6.0
    ii  aspnetcore-targeting-pack-7.0         7.0.114-0ubuntu1~22.04.1                amd64        Internal - targeting pack for Microsoft.AspNetCore.App 7.0
    ii  dotnet-apphost-pack-6.0               6.0.125-0ubuntu1~22.04.1                amd64        Internal - targeting pack for Microsoft.NETCore.App 6.0
    ii  dotnet-apphost-pack-7.0               7.0.114-0ubuntu1~22.04.1                amd64        Internal - targeting pack for Microsoft.NETCore.App 7.0
    rc  dotnet-host                           6.0.125-0ubuntu1~22.04.1                amd64        dotNET host command line
    ii  dotnet-host-7.0                       7.0.114-0ubuntu1~22.04.1                amd64        dotNET host command line
    ii  dotnet-hostfxr-6.0                    6.0.125-0ubuntu1~22.04.1                amd64        dotNET host resolver
    ii  dotnet-hostfxr-7.0                    7.0.114-0ubuntu1~22.04.1                amd64        dotNET host resolver
    ii  dotnet-runtime-6.0                    6.0.125-0ubuntu1~22.04.1                amd64        dotNET runtime
    ii  dotnet-runtime-7.0                    7.0.114-0ubuntu1~22.04.1                amd64        dotNET runtime
    ii  dotnet-sdk-6.0                        6.0.125-0ubuntu1~22.04.1                amd64        dotNET 6.0 Software Development Kit
    ii  dotnet-sdk-7.0                        7.0.114-0ubuntu1~22.04.1                amd64        dotNET 7.0 Software Development Kit
    ii  dotnet-targeting-pack-6.0             6.0.125-0ubuntu1~22.04.1                amd64        Internal - targeting pack for Microsoft.NETCore.App 6.0
    ii  dotnet-targeting-pack-7.0             7.0.114-0ubuntu1~22.04.1                amd64        Internal - targeting pack for Microsoft.NETCore.App 7.0
    ii  dotnet-templates-6.0                  6.0.125-0ubuntu1~22.04.1                amd64        dotNET 6.0 templates
    ii  dotnet-templates-7.0                  7.0.114-0ubuntu1~22.04.1                amd64        dotNET 7.0 templates
    $ ls -ld /usr/bin/dotnet
    lrwxrwxrwx 1 root root 20 Nov 13 14:08 /usr/bin/dotnet -> ../lib/dotnet/dotnet
    

    I have asked for a couple of years for armhf and aarch64 debian files but them not existing does not prevent me creating my own APT repository with repackaged files for armhf/aarch64.

  15. 49 remaining items

  16. AndrewSav commented on Oct 9, 2024

    @AndrewSav

    March 16 - "in the next couple of months"
    June 5 - "this is priority 1 on our backlog"
    August 24 - "planning to begin to release new distros at the beginning of September"
    September 18 - "this distribution has published" - it was not and the issue was closed
    Sepetmber 24 - "hopefully this week" - the issue remains closed
    October 2 - the issue is reopened

    Two weeks after the last communication there is still nothing. My prediction: they will soon realise that it's not feasible making any commitments and then looking like this, so they will keep silent in the future. It's much easier to ignore, does not make any worse of an impression than it has already and good for one's health.

    The current pace means Microsoft will be releasing powershell for versions of Debian less than 6 months from the next major version of Debian (13, early 2025)

    I wish I could excercise optimism with such abandon!

  17. 24mu13 commented on Oct 10, 2024

    @24mu13

    What's about to maintain the Debian package in their ecosystem?
    https://www.debian.org/doc/manuals/debmake-doc/index.en.html

    Do you think is feasible from licensing perspective?

  18. nanonyme commented on Oct 10, 2024

    @nanonyme

    Hey Folks -- thanks for the feedback. We are finishing some internal pipeline work and will post the deb files to Packages - PMC - shortly. (hopefully this week)

    Hey, would it be possible to provide any visibility over the work? If there are blockers, it would be useful to know exactly what and see their resolution's progress. Currently for us outsiders it looks very much like nothing's happening.

  19. mbentley commented on Oct 10, 2024

    @mbentley

    What's about to maintain the Debian package in their ecosystem? https://www.debian.org/doc/manuals/debmake-doc/index.en.html

    Do you think is feasible from licensing perspective?

    Guide for Debian Maintainers

    That would likely increase the difficulty of maintenance for them and not really add any value; plus Debian has different support lifecycles than what I would guess that Microsoft likely would want to follow. When you have software that updates pretty frequently and may evolve quickly, having their own package repo would allow them to more easily get packages for new versions available in a wider number of distros and not have to go through backports.

  20. 24mu13 commented on Oct 12, 2024

    @24mu13

    What's about to maintain the Debian package in their ecosystem? https://www.debian.org/doc/manuals/debmake-doc/index.en.html
    Do you think is feasible from licensing perspective?

    Guide for Debian Maintainers

    That would likely increase the difficulty of maintenance for them and not really add any value; plus Debian has different support lifecycles than what I would guess that Microsoft likely would want to follow. When you have software that updates pretty frequently and may evolve quickly, having their own package repo would allow them to more easily get packages for new versions available in a wider number of distros and not have to go through backports.

    Guide for Debian Maintainers

    I meant the community (us) would maintain it, not Microsoft; we saw in fact that Microsoft is not able neither to keep the very slow Debian lifecycle... I really appreciate their effort to embrace (and somehow "buy" actually) the open-source culture, but this doesn't necessarily mean to control every aspect of it: Debian has his own ecosystem, and I don't really see the value of having a separate Microsoft repository for maintaining various package systems...

  21. rhubarb-geek-nz commented on Oct 12, 2024

    @rhubarb-geek-nz

    I am happy that Ubuntu repackages the dotnet-sdk and provides regular updates. I have asked Canonical to Add PowerShell to APT repository

    Given Debian is a base for so many distributions and its pace, I don't think it is appropriate for either dotnet-sdk or PowerShell. The packages.microsoft.com generally does a good job providing up to date packages for Debian.

  22. 24mu13 commented on Oct 12, 2024

    @24mu13

    I am happy that Ubuntu repackages the dotnet-sdk and provides regular updates. I have asked Canonical to Add PowerShell to APT repository

    Given Debian is a base for so many distributions and its pace, I don't think it is appropriate for either dotnet-sdk or PowerShell. The packages.microsoft.com generally does a good job providing up to date packages for Debian.

    I don't get the point: are you happy with Ubuntu packages or Microsoft repository (or both)?

  23. rhubarb-geek-nz commented on Oct 12, 2024

    @rhubarb-geek-nz

    I don't get the point: are you happy with Ubuntu packages or Microsoft repository?

    I am happy with packages.microsoft.com for Debian. But for Ubuntu, given it has already diverged by hosting dotnet-sdk and this project is very reluctant to produce a working Ubuntu package for 24.04, I suggest Ubuntu would be better for Ubuntu.

  24. 24mu13 commented on Oct 24, 2024

    @24mu13

    We've got the package finally! Thank you Microsoft

  25. theJasonHelmick commented on Oct 29, 2024

    @theJasonHelmick
    Collaborator

    This package is now available at PMC. For more information see the PMC Readme:
    https://packages.microsoft.com/docs/readme.txt 

    We are still working on the docker image pipeline. I will post an update when we have published
    images to the MCR.

  26. theJasonHelmick commented on Jan 7, 2025

    @theJasonHelmick
    Collaborator

    The Debian 12 distribution is released to PMC and MCR.

  27. microsoft-github-policy-service commented on Jan 7, 2025

    @microsoft-github-policy-service
    Contributor

    📣 Hey Chouffy, how did we do? We would love to hear your feedback with the link below! 🗣️

    🔗 https://aka.ms/PSRepoFeedback

  28. removed
    KeepOpen
    on Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Distribution-RequestWG-NeedsReview

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions