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

Installation error "The checksum verification of the file failed" #15

Open
tereshvti opened this issue Jul 25, 2018 · 2 comments
Open

Comments

@tereshvti
Copy link

tereshvti commented Jul 25, 2018

Hi! I'm getting this error while installing Magento 2.2.5 metapackage. Version of this package is locked at 1.2.0

Failed: [UnexpectedValueException] 0: The checksum verification of the file failed (downloaded from https://api.github.com/repos/magento/composer/zipball/130753af2b755f1967e253deb661225942bb302c)

[UnexpectedValueException]
The checksum verification of the file failed (downloaded from https://api.github.com/repos/magento/composer/zipball/130753af2b755f1967e253deb661225942bb302c)

Exception trace:
() at phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:178
Composer\Downloader\FileDownloader->doDownload() at phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:94
Composer\Downloader\FileDownloader->download() at phar:///usr/local/bin/composer/src/Composer/Downloader/ArchiveDownloader.php:36
Composer\Downloader\ArchiveDownloader->download() at phar:///usr/local/bin/composer/src/Composer/Downloader/ZipDownloader.php:71
Composer\Downloader\ZipDownloader->download() at phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:213
Composer\Downloader\DownloadManager->download() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:186
Composer\Installer\LibraryInstaller->installCode() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:90
Composer\Installer\LibraryInstaller->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:173
Composer\Installer\InstallationManager->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:160
Composer\Installer\InstallationManager->execute() at phar:///usr/local/bin/composer/src/Composer/Installer.php:588
Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:227
Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/InstallCommand.php:119
Composer\Command\InstallCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:242
Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:842
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:193
Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:251
Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:100
Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:58
require() at /usr/local/bin/composer:24

@kamilmaliszewski
Copy link

kamilmaliszewski commented Sep 5, 2018

Hi, have you solved it? Clear the composer cache doesn't help

[Solved] In my composer.lock was wrong info about this and any other packages yet. I have revert my changes with composer.json / composer.lock and it works for me. You can try:

  1. Clear the composer cache
  2. Remove the vendors
  3. Change in composer.json version of packages to static (e.g 1.2.0) to avoid update of them
  4. Remove composer.lock
  5. Start composer install. Then it should work correclty ;)

@kirkmadera
Copy link

Removing lock file will update all versions of everything in your app to the latest allowed by composer.json when you run composer install. Be careful with this. You want to avoid messing with the lock file manually generally.

magento-devops-reposync-svc pushed a commit that referenced this issue Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants