The error after trying to upgrade crystal on a linux server.
Downloading packages:
crystal-0.29.0-1.x86_64.rpm | 28 MB 00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : crystal-0.29.0-1.x86_64 1/1
Error unpacking rpm package crystal-0.29.0-1.x86_64
error: unpacking of archive failed on file /usr/share/crystal/src/lib_c/amd64-u
nknown-openbsd: cpio: rename
Verifying : crystal-0.29.0-1.x86_64 1/1
Failed:
crystal.x86_64 0:0.29.0-1
Fix
Delete everything inside /usr/share/crystal/
.
rm -rf /usr/share/crystal/*
zsh: sure you want to delete all the files in /usr/share/crystal [yn]? y
Try installing it again with success.
yum install crystal
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
* base: centos-distro.1gservers.com
* centos-sclo-rh: centos-distro.1gservers.com
* centos-sclo-sclo: centos-distro.1gservers.com
* epel: pubmirror2.math.uh.edu
* extras: centos-distro.1gservers.com
* remi-safe: mirrors.mediatemple.net
* updates: centos-distro.1gservers.com
Resolving Dependencies
--> Running transaction check
---> Package crystal.x86_64 0:0.29.0-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================
Package Arch Version Repository Size
===============================================================================
Installing:
crystal x86_64 0.29.0-1 crystal 28 M
Transaction Summary
===============================================================================
Install 1 Package
Total download size: 28 M
Installed size: 86 M
Is this ok [y/d/N]: y
Downloading packages:
crystal-0.29.0-1.x86_64.rpm | 28 MB 00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : crystal-0.29.0-1.x86_64 1/1
Verifying : crystal-0.29.0-1.x86_64 1/1
Installed:
crystal.x86_64 0:0.29.0-1
Complete!