解壓 .tar.bz2 出現 bzip2: Data integrity error when decompressing,代表壓縮資料區塊校驗失敗,檔案已損壞。無法透過指令修復內容,唯一解決途徑:重新取得完整檔案。
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover data from undamaged sections of corrupted files.
tar: 歸檔文件中異常的 EOF
tar: 錯誤不可恢復:現在退出
binary、SCP/SFTP/rsync 預設二進位)md5sum/sha256sum 比對官方發布值
bzip2recover damaged.tar.bz2
# 產生 recXXXXXXXXX 檔案,嘗試 tar -xf 解開
但 bzip2recover 僅能救回未損壞區塊,資料完整性無保證,生產環境不可依賴。
檔案損壞不可逆,重新取得是唯一正解。