Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Package Issue]: Cygwin.Cygwin #133260

Open
2 tasks done
jtnord opened this issue Jan 8, 2024 · 1 comment
Open
2 tasks done

[Package Issue]: Cygwin.Cygwin #133260

jtnord opened this issue Jan 8, 2024 · 1 comment
Labels
DSC Involves Desired State Configuration Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@jtnord
Copy link

jtnord commented Jan 8, 2024

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

install fails

Steps to reproduce

as a user without admin perms winget configure --file blah.yaml

where blah.yaml contains

  - resource: Microsoft.WinGet.DSC/WinGetPackage
    id: cygwin
    directives:
      description: Install cygwin
      allowPrerelease: true
    settings:
      id:  Cygwin.Cygwin
      source: winget

Actual behavior

install fails

cygwin log contains ->

2024/01/08 12:01:41 Starting cygwin install, version 2.928
2024/01/08 12:01:41 User has NO backup/restore rights
2024/01/08 12:01:41 User has NO symlink creation right
2024/01/08 12:01:41 io_stream_cygfile: fopen(/etc/setup/setup.rc) failed 2 No such file or directory
2024/01/08 12:01:41 Current Directory: C:\Windows\system32
2024/01/08 12:01:41 root: C:\cygwin64 user
2024/01/08 12:01:41 Changing gid back to original
2024/01/08 12:01:41 Selected local directory: C:\Windows\system32
2024/01/08 12:01:41 net: Preconfig
2024/01/08 12:01:42 site: https://mirror.aarnet.edu.au/pub/sourceware/cygwin/
...
2024/01/08 12:01:50   74 install openssl         3.0.12-1                 
2024/01/08 12:01:50 mbox fatal: Can't open C:\Windows\system32/https%3a%2f%2fmirror.aarnet.edu.au%2fpub%2fsourceware%2fcygwin%2f/x86_64/release/popt/libpopt-common/libpopt-common-1.19-1.tar.xz.tmp for writing: No such file or directory
2024/01/08 12:01:50 unattended_mode is set at mbox: returning default value
2024/01/08 12:01:50 Ending cygwin install

Expected behavior

install succeeds.
download uses a temp directory and not the current directory for downloading packages (and never system32!)

Environment

Windows Package Manager v1.6.3482
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.2861
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3482.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Screenshots and Logs

2024/01/08 12:01:50 mbox fatal: Can't open C:\Windows\system32/https%3a%2f%2fmirror.aarnet.edu.au%2fpub%2fsourceware%2fcygwin%2f/x86_64/release/popt/libpopt-common/libpopt-common-1.19-1.tar.xz.tmp for writing: No such file or directory
2024/01/08 12:01:50 unattended_mode is set at mbox: returning default value
2024/01/08 12:01:50 Ending cygwin install
@jtnord jtnord added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Jan 8, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Jan 8, 2024
@stephengillie stephengillie added DSC Involves Desired State Configuration and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Jan 8, 2024
@denelon
Copy link
Contributor

denelon commented Jan 8, 2024

Cygwin is a portable application. WinGet is acting as the installer in this case, and depending on whether the package is installed in "user" scope or "machine" scope, or whether the device has developer mode enabled, the installation location will vary.

I was wrong. I just took a peek at the manifest to double check. It's an .exe based installer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DSC Involves Desired State Configuration Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants