zoukankan      html  css  js  c++  java
  • FAQ unzip无法解压文件

    [root@TEST144239 tmp]# unzip linx64_11gR2_database_1of2.zip
    Archive:  linx64_11gR2_database_1of2.zip
    warning [linx64_11gR2_database_1of2.zip]:  4652886 extra bytes at beginning or within zipfile
      (attempting to process anyway)
    error [linx64_11gR2_database_1of2.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)

     导致解压不了,有两个可能因素:

    1.zip文件,如果是从某个机器下载的,应该尽量保证是以 二进制编码方式下载,否则也会导致unzip 解压不了.

    [root@ZTE-TEST144239 ~]# ftp 10.30.1.25
    Connected to 10.30.1.25 (10.30.1.25).
    220-FileZilla Server version 0.9.31 beta
    220-written by Tim Kosse (Tim.Kosse@gmx.de)
    220 Please visit http://sourceforge.net/projects/filezilla/
    Name (10.30.1.25:root): ftp
    331 Password required for ftp
    Password:
    230 Logged on
    Remote system type is UNIX.

    #确保文件是以二进制方式获得#
    ftp> bin  
    200 Type set to I
    ftp> get /public/数据库/ORACLE/11G/linux64/p10404530_112030_Linux-x86-64_1of7.zip /var/tmp/p10404530_112030_Linx-x86-64_1of7.zip

    2.unzip命令不能解压超过2G的文件 通过查找资料有个7z的程序可以解压超过2G的压缩包

    http://pkgs.repoforge.org/p7zip/  该地址下载7zip包

    首先通过 file /bin/ls命令查看linux是32位还是64位:

    [root@TEST144239 tmp]# file /bin/ls
    /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

    所以 下载并安装p7zip-9.04-1.el3.rf.x86_64.rpm和p7zip-plugins-9.04-1.el3.rf.x86_64.rpm这两个包:

    [root@TEST144239 tmp]# rpm -ivh p7zip-9.04-1.el3.rf.x86_64.rpm
    warning: p7zip-9.04-1.el3.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
    Preparing...                ########################################### [100%]
       1:p7zip                  ########################################### [100%]
    [root@TEST144239 tmp]# rpm -ivh p7zip-plugins-9.04-1.el3.rf.x86_64.rpm
    warning: p7zip-plugins-9.04-1.el3.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
    Preparing...                ########################################### [100%]
       1:p7zip-plugins          ########################################### [100%]

  • 相关阅读:
    软件开的目录规范+sys,os,time模块
    模块与包
    匿名函数+函数递归+二分法+面向过程编程
    快捷键
    补充叠加多个装饰器:加载顺序与执行顺序+迭代器+自定义迭代器的方式:生成器+三元表达式
    闭包函数的应用+内置函数
    函数对象+函数嵌套+名称空间与作用域+闭包函数
    SP15637 Mr Youngs Picture Permutations 高维动态规划
    LG3825/BZOJ4945/LOJ2305 「NOI2017」游戏 dfs+2-SAT
    LG1198/BZOJ1012 「JSOI2008」最大数 线段树+离线
  • 原文地址:https://www.cnblogs.com/HondaHsu/p/4825370.html
Copyright © 2011-2022 走看看