数日前、chocolatey を使用して Windows マシンに vivaldi をインストールしました。このパッケージは vivaldi.install という名前のパッケージを使用してインストールしchoco install vivaldi.install
ましchoco install vivaldi
た。Krita のインストールとアンインストール、および再インストールをテストしまし
たが、問題はありませんでした
。
これらは、同じアンインストール操作を入力して実行しようとした方法ですが、方法が見つかりませんでしたchoco install krita
choco uninstall krita
choco install krita
choco uninstall 'vivaldi.install 3.6.2165.40'
choco uninstall 'vivaldi.install 3.6.2165.40' --remove-dependencies
choco uninstall vivaldi.install
choco uninstall vivaldi
ちなみに、チョコレートがパッケージvivaldi.installおよび3.6.2165.40choco uninstall vivaldi.install 3.6.2165.40
をアンインストールしようとしたため、アポストロフィなしで入力しても機能しませんでした。
最初に、管理者としてpowershellを試して、インストールされているすべてのパッケージを一覧表示しました
PS C:\WINDOWS\system32> choco list --localonly
そしてこれを手に入れた
chocolatey 0.11.3
chocolatey-core.extension 1.3.5.1
chocolatey-dotnetfx.extension 1.0.1
chocolatey-visualstudio.extension 1.10.0
DotNet4.5.2 4.5.2.20140902
dotnetfx 4.8.0.20190930
Firefox 96.0.1
KB2919355 1.0.20160915
KB2919442 1.0.20160915
microsoft-teams 1.4.00.32771
peazip 8.4.0
peazip.install 8.4.0
visualstudio-installer 2.0.2
visualstudio2022community 117.0.5.0
vivaldi.install 3.6.2165.40
vscodium 1.63.2
vscodium.install 1.63.2
17 packages installed.
Did you know Pro / Business automatically syncs with Programs and
Features? Learn more about Package Synchronizer at
https://chocolatey.org/compare
次に、リストされているバージョンを含めるためにアポストロフィの間にリストされているパッケージをアンインストールしようとしましたが、私が知る限り、実際のパッケージ名を考慮して vivaldi または vivaldi.install という単語で十分なはずですが、このコードの後に他のコードがあります私が試した方法
PS C:\WINDOWS\system32> choco uninstall 'vivaldi.install 3.6.2165.40'
Chocolatey v0.11.3
Uninstalling the following packages:
vivaldi.install 3.6.2165.40
vivaldi.install 3.6.2165.40 is not installed. Cannot uninstall a non-existent package.
Chocolatey uninstalled 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- vivaldi.install 3.6.2165.40 - vivaldi.install 3.6.2165.40 is not installed. Cannot uninstall a non-existent package.
If a package uninstall is failing and/or you've already uninstalled the
software outside of Chocolatey, you can attempt to run the command
with `-n` to skip running a chocolateyUninstall script, additionally
adding `--skip-autouninstaller` to skip an attempt to automatically
remove system-installed software. Only the packaging files are removed
and not things like software installed to Programs and Features.
If a package is failing because it is a dependency of another package
or packages, then you may first need to consider if it needs to be
removed as packages have dependencies for a reason. If
you decide that you still want to remove it, head into
`$env:ChocolateyInstall\lib` and find the package folder you want to
be removed. Then delete the folder for the package. You should use
this option only as a last resort.
次に、同じことを試みましたが、依存関係も削除しました
PS C:\WINDOWS\system32> choco uninstall 'vivaldi.install 3.6.2165.40' --remove-dependencies
Chocolatey v0.11.3
Uninstalling the following packages:
vivaldi.install 3.6.2165.40
vivaldi.install 3.6.2165.40 is not installed. Cannot uninstall a non-existent package.
Chocolatey uninstalled 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- vivaldi.install 3.6.2165.40 - vivaldi.install 3.6.2165.40 is not installed. Cannot uninstall a non-existent package.
If a package uninstall is failing and/or you've already uninstalled the
software outside of Chocolatey, you can attempt to run the command
with `-n` to skip running a chocolateyUninstall script, additionally
adding `--skip-autouninstaller` to skip an attempt to automatically
remove system-installed software. Only the packaging files are removed
and not things like software installed to Programs and Features.
If a package is failing because it is a dependency of another package
or packages, then you may first need to consider if it needs to be
removed as packages have dependencies for a reason. If
you decide that you still want to remove it, head into
`$env:ChocolateyInstall\lib` and find the package folder you want to
be removed. Then delete the folder for the package. You should use
this option only as a last resort.
パッケージ名 vivaldi.install だけを書くなど、他の方法も試しました
PS C:\WINDOWS\system32> choco uninstall vivaldi.install
Chocolatey v0.11.3
Uninstalling the following packages:
vivaldi.install
vivaldi.install v3.6.2165.40
The package vivaldi.install wants to run 'chocolateyuninstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y
ERROR: You cannot call a method on a null-valued expression.
vivaldi.install uninstall not successful.
Error while running 'C:\ProgramData\chocolatey\lib\vivaldi.install\tools\chocolateyuninstall.ps1'.
See log for details.
vivaldi.install not uninstalled. An error occurred during uninstall:
vivaldi.install uninstall not successful.
Chocolatey uninstalled 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- vivaldi.install (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\vivaldi.install\tools\chocolateyuninstall.ps1'.
See log for details.
If a package uninstall is failing and/or you've already uninstalled the
software outside of Chocolatey, you can attempt to run the command
with `-n` to skip running a chocolateyUninstall script, additionally
adding `--skip-autouninstaller` to skip an attempt to automatically
remove system-installed software. Only the packaging files are removed
and not things like software installed to Programs and Features.
If a package is failing because it is a dependency of another package
or packages, then you may first need to consider if it needs to be
removed as packages have dependencies for a reason. If
you decide that you still want to remove it, head into
`$env:ChocolateyInstall\lib` and find the package folder you want to
be removed. Then delete the folder for the package. You should use
this option only as a last resort.
また、プログラムの名前だけを使用してみました
PS C:\WINDOWS\system32> choco uninstall vivaldi
Chocolatey v0.11.3
Uninstalling the following packages:
vivaldi
You are uninstalling vivaldi, which is likely a metapackage for an
*.install/*.portable package that it installed
(vivaldi represents discoverability).
Would you like to uninstall vivaldi.install as well?([Y]es/[N]o): y
vivaldi is not installed. Cannot uninstall a non-existent package.
vivaldi.install v3.6.2165.40
The package vivaldi.install wants to run 'chocolateyuninstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y
ERROR: You cannot call a method on a null-valued expression.
vivaldi.install uninstall not successful.
Error while running 'C:\ProgramData\chocolatey\lib\vivaldi.install\tools\chocolateyuninstall.ps1'.
See log for details.
vivaldi.install not uninstalled. An error occurred during uninstall:
vivaldi.install uninstall not successful.
Chocolatey uninstalled 0/2 packages. 2 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- vivaldi.install (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\vivaldi.install\tools\chocolateyuninstall.ps1'.
See log for details.
- vivaldi - vivaldi is not installed. Cannot uninstall a non-existent package.
If a package uninstall is failing and/or you've already uninstalled the
software outside of Chocolatey, you can attempt to run the command
with `-n` to skip running a chocolateyUninstall script, additionally
adding `--skip-autouninstaller` to skip an attempt to automatically
remove system-installed software. Only the packaging files are removed
and not things like software installed to Programs and Features.
If a package is failing because it is a dependency of another package
or packages, then you may first need to consider if it needs to be
removed as packages have dependencies for a reason. If
you decide that you still want to remove it, head into
`$env:ChocolateyInstall\lib` and find the package folder you want to
be removed. Then delete the folder for the package. You should use
this option only as a last resort.