小虎刚刚想要在ubuntu上解压在win上打包的图片数据。发现无法解压,因为压缩编码方式ubuntu无法识别。
背景
运行环境:
win11 + Ubuntu 20.04
报错:
warning 205259738 extra bytes at beginning or within zipfile
error start of central directory not found;
zipfile corrupt.
解决代码
sudo apt-get install fastjar
jar xvf yourzip.zip
类似报错
Archive: Cityscapes.zip
warning [Cityscapes.zip]: 3909008000 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [Cityscapes.zip]: start of central directory not found;
zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)