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] Upgrade of Calibre failed #2771

Open
4 tasks done
Xembalo opened this issue Sep 23, 2024 · 3 comments
Open
4 tasks done

[BUG] Upgrade of Calibre failed #2771

Xembalo opened this issue Sep 23, 2024 · 3 comments
Assignees
Labels
bug Something isn't working needs-further-study
Milestone

Comments

@Xembalo
Copy link

Xembalo commented Sep 23, 2024

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

3.1.1

Windows version, edition, and architecture

Windows 11 Pro 22635.4225

Describe your issue

Upgrade of Calibre failed every time with Unigetui (installed 7.17.0, available 7.18.0)

Log says:

Starting package update operation for package id=calibre.calibre with Manager name=Winget
Given installation options are <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=Local;InstallationScope=C:\Program Files\Calibre2;CustomParameters=;RemoveDataOnUninstall=False>
Process Executable     : C:\Users\socia\AppData\Local\Microsoft\WindowsApps\winget.exe
Process Call Arguments :  update --id "calibre.calibre" --exact --source winget --accept-source-agreements --scope user --silent --disable-interactivity  --accept-package-agreements --location "C:\Program Files\Calibre2" --force --include-unknown
Working Directory      : C:\Users\socia
    |    | 
    | Es wurde kein installiertes Paket gefunden, das den Eingabekriterien entspricht.
Process Exit Code      : -1978335212
Process End Time       : 23.09.2024 19:10:25

But by using simple cmd everything works fine

C:\Users\socia>winget upgrade calibre
Gefunden calibre [calibre.calibre] Version 7.18.0
Diese Anwendung wird von ihrem Besitzer an Sie lizenziert.
Microsoft ist nicht verantwortlich und erteilt keine Lizenzen für Pakete von Drittanbietern.
Download läuft https://download.calibre-ebook.com/7.18.0/calibre-64bit-7.18.0.msi
  ██████████████████████████████   202 MB /  202 MB
Der Installer-Hash wurde erfolgreich überprüft
Paketinstallation wird gestartet...
Erfolgreich installiert

Steps to reproduce the issue

No response

UniGetUI Log

[23.09.2024 19:10:10]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.1.1
[23.09.2024 19:10:10]
[23.09.2024 19:10:10] Version Code:  3,11
[23.09.2024 19:10:11] System.FormatException: The input string '850.' was not in a correct format.
                         at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)
                         at System.Int32.Parse(String s)
                         at UniGetUI.Core.Data.CoreData.GetCodePage() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.Core.Data\CoreData.cs:line 26
[23.09.2024 19:10:11] Encoding Code Page set to 0
[23.09.2024 19:10:11] Using bundled GSudo at C:\Program Files\WingetUI\Assets\Utilities\gsudo.exe
[23.09.2024 19:10:11] Loaded language locale: de
[23.09.2024 19:10:11] Randomly-generated background API auth token for the current session: 8irr5c636e9bkq10t0bkcxlytjkfigp0ela234i92zi0lbsbxbzfxu85n38y2vgi
[23.09.2024 19:10:12] Api running on http://localhost:7058
[23.09.2024 19:10:12] Lang files were updated successfully from GitHub
[23.09.2024 19:10:12] UniGetUI is up to date
[23.09.2024 19:10:12] Downloaded new icons and screenshots successfully!
[23.09.2024 19:10:12] Command npm was not found on the system
[23.09.2024 19:10:12] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Npm
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.09.2024 19:10:12] Command pwsh.exe was not found on the system
[23.09.2024 19:10:12] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell7
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.09.2024 19:10:12] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.09.2024 19:10:14] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.09.2024 19:10:14] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.09.2024 19:10:14] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Pip
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.09.2024 19:10:14] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Winget
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: winget.exe
                      █ Executable path: C:\Users\socia\AppData\Local\Microsoft\WindowsApps\winget.exe
                      █ Call arguments: 
                      █ Version: 
                      █   System WinGet CLI Version: v1.8.1911
                      █   Microsoft.WinGet.Client PSModule version: ""
                      █   Using Native WinGet helper (COM Api)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.09.2024 19:10:15] Command scoop was not found on the system
[23.09.2024 19:10:15] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Scoop
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[23.09.2024 19:10:16] Resetting administrator rights cache for process id 17644
[23.09.2024 19:10:16] Microsoft.Powershell.Client detection has been forcefully skipped as the module is not required on the current context
[23.09.2024 19:10:16] Dependency WinGet PowerShell Module for manager Winget is present
[23.09.2024 19:10:16] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[23.09.2024 19:10:23] Found 1 available updates from Winget
[23.09.2024 19:10:23] Non-MSStore WinGet Native Icons have been forcefully disabled on code
[23.09.2024 19:10:23] Loaded icon with URL=UniGetUI.Core.IconEngine.CacheableIcon for package Id=calibre.calibre
[23.09.2024 19:10:23] Icon for package calibre.calibre stored on C:\Users\socia\AppData\Local\UniGetUI\CachedMedia\Winget\calibre.calibre.png
[23.09.2024 19:10:23] Found 235 installed packages from Winget
[23.09.2024 19:13:58] Found 235 installed packages from Winget
[23.09.2024 19:14:13] Resetting administrator rights cache for process id 17644

Package Managers Logs

Manager WinGet with version:
System WinGet CLI Version: v1.8.1911
Microsoft.WinGet.Client PSModule version: ""
Using Native WinGet helper (COM Api)

——————————————————————————————————————————


Logged native task on manager Winget. Task type is ListSources
Process start time: 23.09.2024 19:10:14
Process end time:   23.09.2024 19:10:14

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\socia\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 23.09.2024 19:10:15
Process end time:   23.09.2024 19:10:19

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 23.09.2024 19:10:15
Process end time:   23.09.2024 19:10:23

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 23.09.2024 19:10:16
Process end time:   23.09.2024 19:10:16

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 23.09.2024 19:10:19
Process end time:   23.09.2024 19:10:23

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 23.09.2024 19:13:54
Process end time:   23.09.2024 19:13:58

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Relevant information

No response

Screenshots and videos

No response

@Xembalo Xembalo added the bug Something isn't working label Sep 23, 2024
@marticliment
Copy link
Owner

Running C:\Users\socia\AppData\Local\Microsoft\WindowsApps\winget.exe update --id "calibre.calibre" --exact --source winget --accept-source-agreements --scope user --silent --disable-interactivity --accept-package-agreements --location "C:\Program Files\Calibre2" --force --include-unknown on a command prompt does work?

@marticliment marticliment added this to the Bugs milestone Sep 23, 2024
@Xembalo
Copy link
Author

Xembalo commented Sep 23, 2024

it worked after removing --scope user from command

in unigetui I do not find the place, where I set User Scope. In Package Details, "Default" is set:
grafik

In general preferences, I do not find this setting eigther

Shouldn't Unigetui recognize whether a package is installed in the system (%programfiles%) or in the user scope (%appdata%)?

Thanks a lot!

@marticliment
Copy link
Owner

It should, but somehow the package's installation settings say InstallationScope=Local;, which is weird. I will investigate this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-further-study
Projects
None yet
Development

No branches or pull requests

2 participants