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

Choco does not detect if the installation of packages has been interrupted #2757

Closed
dcllt opened this issue Jul 5, 2022 · 5 comments
Closed
Milestone

Comments

@dcllt
Copy link

dcllt commented Jul 5, 2022

What You Are Seeing?

It seems like if user or something else cancel during download or installation, Choco treats package as successful. I can find the package by running 'choco list -l' .I saw this issue was already reported and closed here #198 . Despite this the problem seems to have reappeared.

What is Expected?

Detect if package installation was not completed.

How Did You Get This To Happen? (Steps to Reproduce)

Abort package installation by pressing Ctrl+C

System Details

This is on Choco 1.1.0

Also on Choco 1.4.0

Additional Information

Zendesk Ticket

@romain-marie
Copy link

Hello, same problem for me.

@vexx32
Copy link
Member

vexx32 commented Sep 30, 2022

Thanks for the report!

I haven't been able to reproduce what's being described here so far. Can you define:

  • Which package(s) you're seeing this with
  • Which terminal you're using to run choco (cmd? Windows Terminal? PowerShell? etc)
  • When during the installation you're pressing Ctrl+C
  • What operating system you're running choco on

I think we need additional detail here to have a better idea of what's going on and be able to reliably reproduce the issue.

@vexx32 vexx32 self-assigned this Sep 30, 2022
@romain-marie
Copy link

Hello, here are the steps to reproduce :

  1. Have a Windows 10 pro 21H2 with chocolatey 1.1.0 installed, following instructions here : https://chocolatey.org/install
  2. Open powershell as administrator
  3. Enter choco install firefox then [ENTER]
  4. Wait for the line Do you want to run the script ... ?
  5. Close powershell window OR turn off PC (immediatly or during download or installation after hitting y)
  6. Open powershell again, enter choco list -l : firefox is listed, but is not installed on pc

@vexx32 vexx32 added this to the 1.x milestone Oct 3, 2022
@vexx32
Copy link
Member

vexx32 commented Oct 3, 2022

Thanks for that! I can confirm I'm seeing the same behaviour in my own environment as well. Definitely looks like something is going wrong with the pending files that we normally use to track incomplete package installations 🤔

As a workaround, you can choco uninstall firefox --skip-powershell to remove the package files before reinstalling, or use choco install firefox --force to forcibly reinstall the package, which will rerun the installer.

@pauby
Copy link
Member

pauby commented Aug 28, 2024

Duplicate of #619

@pauby pauby marked this as a duplicate of #619 Aug 28, 2024
@pauby pauby closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants