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

[Bug] Cannot uninstall package if installation failed and manifest is no longer available #6199

Open
ymartin59 opened this issue Oct 21, 2024 · 2 comments
Labels

Comments

@ymartin59
Copy link

Bug Report

Current Behavior

If a package installation has failed and then manifest has been removed from corresponding bucket, then scoop is stuck with package reference and cannot be uninstall to clean update list

❯ scoop status '*'
Scoop is up to date.

Name   Installed Version Latest Version Missing Dependencies Info
----   ----------------- -------------- -------------------- ----
vcxsrv                                                       Install failed, Manifest removed

❯ scoop uninstall vcxsrc
ERROR 'vcxsrc' isn't installed.

❯ scoop reset vcxsrc
ERROR 'vcxsrc' isn't installed

❯ scoop cleanup vcxsrc
ERROR 'vcxsrc' isn't installed.

❯ scoop uninstall -p vcxsrc
ERROR 'vcxsrc' isn't installed.

❯ scoop info vcxsrc
Could not find manifest for 'vcxsrc' in local buckets.

Expected Behavior

It should be possible to force package reference removal in a way, ignoring lack of online manifest in bucket.

Possible Solution

Add a "force" option to ignore manifest loss.

System details

Windows version: 10

OS architecture: 64bit

PowerShell version: 5.1.19041.5007

Additional software:

Scoop Configuration

{
    "root_path":  "C:\\Users\\yma\\Tools\\Scoop",
    "last_update":  "2024-10-21T14:38:39.3228135+02:00",
    "scoop_branch":  "master",
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop",
    "aria2-enabled":  true
}
@ymartin59 ymartin59 added the bug label Oct 21, 2024
@ymartin59
Copy link
Author

For an unknown reason, uninstall operation has now succeeded

❯ scoop status '*'
Scoop is up to date.

Name   Installed Version Latest Version Missing Dependencies Info
----   ----------------- -------------- -------------------- ----
vcxsrv                                                       Install failed, Manifest removed

❯ scoop uninstall vcxsrv
ERROR 'vcxsrv' isn't installed correctly.
Removing older version (21.1.13.0).
'vcxsrv' was uninstalled.

❯ scoop status '*'
Scoop is up to date.
Everything is ok!

@ymartin59
Copy link
Author

May it be related to another issue I am facing with bucket registration?
#3591 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant