magento / composer

Open Software License 3.0
31 stars 23 forks source link

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

Open tereshvti opened 6 years ago

tereshvti commented 6 years ago

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 commented 5 years ago

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 commented 5 years ago

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.