WhitewaterFoundry / Pengwin

A Linux distro optimized for WSL based on Debian.
Other
1.48k stars 105 forks source link

Can't run pengwin-setup as default user #576

Closed nfet closed 4 years ago

nfet commented 4 years ago

Repro Steps

  1. Open a Pengwin Linux WSL Shell
  2. Verify that user is the default user: tony
     $ whoami
     tony
  3. run pengwin-setup on the command line
  4. Result is an ascii popup window with the following information:

    Window Title: Wrong User

    pengwin-setup was ran with the user "tony". Run pengwin-setup from the default user and without sudo

Other Info

Default User: tony OS: Windows 10 Home

WSL Pengwin Info:

env $PATH

10:12:42 ~> echo $PATH
/home/tony/.pyenv/plugins/pyenv-virtualenv/shims:/home/tony/.pyenv/shims:/home/tony/.pyenv/bin:/home/tony/.sdkman/candidates/java/current/bin:/usr/lib/jvm/java-11-amazon-corretto/bin:/home/linuxbrew/.linuxbrew/bin:/home/tony/bin:/home/tony/.local/bin:/home/tony/.bash_profile.d/bash/bin:/home/tony/bin:/home/tony/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Windows

uname -a

10:10:26 ~> uname -a
Linux JANEWAY 4.19.84-microsoft-standard #1 SMP Wed Nov 13 11:44:37 UTC 2019 x86_64 GNU/Linux

apt-cache policy pengwin-setup

10:02:35 ~> apt-cache policy pengwin-setup
pengwin-setup:
  Installed: 0.1-1197
  Candidate: 0.1-1197
  Version table:
 *** 0.1-1197 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status
     0.1-1182 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1159 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1155 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1150 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1147 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1143 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1123 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1106 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1083 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1049 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1037 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1027 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-1012 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-986 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-979 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-851 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-834 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-770 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-564 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-542 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-524 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-510 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-488 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-424 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-414 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-347 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages
     0.1-341 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-setup/debian buster/main amd64 Packages

apt-cache policy pengwin-base

10:03:06 ~> apt-cache policy pengwin-base
pengwin-base:
  Installed: 0.1-309
  Candidate: 0.1-309
  Version table:
 *** 0.1-309 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status
     0.1-298 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-257 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-239 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-229 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-221 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-214 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-192 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-182 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-160 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-134 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-115 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-76 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
     0.1-5 500
        500 https://packagecloud.io/whitewaterfoundry/pengwin-base/debian buster/main amd64 Packages
crramirez commented 4 years ago

Hello,

The problem is the PATH it is not including the Windows PATH. Your issue follow the same pattern of others in the same regard. All include in the PATH pyenv. What make me think that something related to Python is overwriting the PATH at launch. The other explanation is that you modified /etc/wsl.conf to exclude Windows Paths.

Regards, Carlos

nfet commented 4 years ago

Hello,

The problem is the PATH it is not including the Windows PATH. Your issue follow the same pattern of others in the same regard. All include in the PATH pyenv. What make me think that something related to Python is overwriting the PATH at launch. The other explanation is that you modified /etc/wsl.conf to exclude Windows Paths.

Regards, Carlos

Hi @crramirez , Thank's for identifying the issue. I have identified the line in my .bashrc that was removing the Windows PATH. Restoring the Windows PATH resolved the issue.

Cheers, Tony L.