Skip to content

PowerShell Beta Linux Direct install didn't remove Alpha18 #3758

Closed

Description

During Alpha18 I use the Direct Download for Ubuntu 16.04.

Steps to reproduce

sudo apt update
sudo apt upgrade --> which found PowerShell Beta and proceed to replace Alpha18

Expected behavior

It should have removed the previous version of PowerShell (Alpha18 in my case)

Actual behavior

It couldn't remove some folders.

powershell6 install errors 2017-05-10 07-24-58

powershell6 install errors 2_2017-05-10 07-24-58

Environment data

Ubuntu 16.04.2 LTS

PS /home/maxt> $PSVersionTable                                                                                          

Name                           Value                                                                                   
----                           -----                                                                                   
PSVersion                      6.0.0-beta                                                                              
PSEdition                      Core                                                                                    
BuildVersion                   3.0.0.0                                                                                 
CLRVersion                                                                                                             
GitCommitId                    v6.0.0-beta.1                                                                           
OS                             Linux 4.4.0-77-generic #98-Ubuntu SMP Wed Apr 26 08:34:02 UTC 2017                      
Platform                       Unix                                                                                    
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
PSRemotingProtocolVersion      2.3                                                                                     
SerializationVersion           1.1.0.1                                                                                 
WSManStackVersion              3.0


Activity

  1. SteveL-MSFT commented on May 10, 2017

    @SteveL-MSFT
    Member

    I didn't get a repro. Did you do the apt-get upgrade within alpha.18 (while powershell was still running)?

  2. MaximoTrinidad commented on May 10, 2017

    @MaximoTrinidad
    Author

    I've been doing the manual dpkg and then the apt install on Alpha17. Then I use the direct download instructions for Alpha18 with no errors during the upgrade.

    Now, doing the sudo apt upgrade, is showing errors that can't remove some folder. But PowerShell Beta is installed and seems working.

    I'm not sure what happened!

    I did the Direct Download on my Windows 10 Bash and works fine.

    Answer to you question: While PowerShell was running?? No. I'm sure I started with all terminal sessions off.

    :)

  3. added
    Area-PowerShellGet
    and removed
    WG-Maintainers-Build
    on May 17, 2017
  4. SteveL-MSFT commented on May 17, 2017

    @SteveL-MSFT
    Member

    I'm seeing the same thing on Ubuntu14.04. The folders being left behind appear to be created by PowerShellGet.

    cc Manikyam Bavandla (@bmanikm)

  5. bmanikm commented on May 18, 2017

    @bmanikm
    Contributor

    PowerShellGet uses New-Item and Copy-Item cmdlets to install/save the modules.

    https://github.com/PowerShell/PowerShellGet/blob/development/PowerShellGet/PSModule.psm1#L13948
    https://github.com/PowerShell/PowerShellGet/blob/development/PowerShellGet/PSModule.psm1#L13968

    Perhaps, an additional step is required in the build step to apply the required permissions on all directories and files under $PSHome directory.

  6. MaximoTrinidad commented on May 18, 2017

    @MaximoTrinidad
    Author

    FYI

    I had to manually (with privilege) uninstall the beta, and remove the leftover folders so I can do the 'sudo apt update' followed by the 'sudo apt upgrade'.

    I have to say that I love having PowerShell added to the Ubuntu repository. I just run the two commands above and PowerShell gets installed.

    Thanks to that!!
    :)

  7. added
    WG-Maintainers-Build
    and removed
    Area-PowerShellGet
    on May 18, 2017
  8. added
    Area-PowerShellGet
    and removed
    WG-Maintainers-Build
    on Jun 10, 2017
  9. added
    Issue-Question
    on Apr 6, 2018
  10. joeyaiello commented on Jul 6, 2018

    @joeyaiello
    Contributor

    This is definitely fixed/irrelevant now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-PowerShellGetIssue-QuestionResolution-Fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions