zip压缩文件在linux下解压出现 ”symlink error: File name too long“的问题

joison_wk 2015-07-12 01:01:42
在github上下载的 linux-at91-linux-3.6.9-at91.tar 压缩包,在windows下解压正常。 但通过samba服务将windows下的这个压缩包copy到linux目录下解压出错 压缩包中的./linux-at91-linux-3.6.9-at91/drivers/net/wireless/iwlegacy/common.h 内容变成了连接名 导致“symlink error: File name too long”, 然而查看压缩包在从windows copy到linux时没有出错(在图片界面用open with archiev manager打开文件./linux-at91-linux-3.6.9-at91/drivers/net/wireless/iwlegacy/common.h 一切显示正常)

解压错误Log 见下
inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/iodev.h
inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/iommu.c
inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/irq_comm.c
inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/kvm_main.c
finishing deferred symbolic links:
./linux-at91-linux-3.6.9-at91/arch/microblaze/boot/dts/system.dts -> ../../platform/generic/system.dts
./linux-at91-linux-3.6.9-at91/drivers/net/wireless/iwlegacy/common.h -> /******************************************************************************^J *^J * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.^J *^J * This program is free software; you can redistribute it and/or modify it^J * under the terms of version 2 of the GNU General Public License as^J * published by the Free Software Foundation.^J *^J * This program is distributed in the hope that it will be useful, but WITHOUT^J * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or^J * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for^J * more details.^J *^J * You should have received a copy of the GNU General Public License along with^J * this program; if not, write to the Free Software Foundation, Inc.,^J * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA^J *^J * The full GNU General Public License is included in this distribution in the^J * file called LICENSE.^J *^J * Contact Information:^J * Intel Linux Wireless <ilw@linux.intel.com>^J * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497^J *^J *****************************************************************************/^J#ifndef __il_core_h__^J#define __il_core_h__^J^J#include <linux/interrupt.h>^J#include <linux/pci.h>^I^I/* for struct pci_device_id */^J#include <linux/kernel.h>^J#include <linux/leds.h>^J#include <linux/wait.h>^J#include <linux/io.h>^J#include <net/mac80211.h>^J#in<<<<中间省略>>>>>> 4965 does not support HT40 channels on 2.4 GHz.^J */^J#define EEPROM_4965_REGULATORY_BAND_24_HT40_CHANNELS (2*0xA0)^I/* 14 bytes */^J^J/*^J * 5.2 GHz HT40 channels 36 (40), 44 (48), 52 (56), 60 (64),^J * 100 (104), 108 (112), 116 (120), 124 (128), 132 (136), 149 (153), 157 (161...
symlink error: File name too long

...全文
2345 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
can9010 2016-03-23
  • 打赏
  • 举报
回复
unzip 的问题 参考 https://github.com/raspberrypi/linux/issues/34 Correct "Above is a issue of unzip utility for the linux" try the above way OR yiu ca try.. Try to install p7zip $ sudo apt-get install p7zip-full and extract 7za x linux.zip
joison_wk 2015-07-19
  • 打赏
  • 举报
回复
引用 3 楼 joison_wk 的回复:
[quote=引用 楼主 joison_wk 的回复:] 在github上下载的 linux-at91-linux-3.6.9-at91.tar 压缩包,在windows下解压正常。 但通过samba服务将windows下的这个压缩包copy到linux目录下解压出错 压缩包中的./linux-at91-linux-3.6.9-at91/drivers/net/wireless/iwlegacy/common.h 内容变成了连接名 导致“symlink error: File name too long”, 然而查看压缩包在从windows copy到linux时没有出错(在图片界面用open with archiev manager打开文件./linux-at91-linux-3.6.9-at91/drivers/net/wireless/iwlegacy/common.h 一切显示正常) 解压错误Log 见下 inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/iodev.h inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/iommu.c inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/irq_comm.c inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/kvm_main.c finishing deferred symbolic links: ./linux-at91-linux-3.6.9-at91/arch/microblaze/boot/dts/system.dts -> ../../platform/generic/system.dts ./linux-at91-linux-3.6.9-at91/drivers/net/wireless/iwlegacy/common.h -> /******************************************************************************^J *^J * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.^J *^J * This program is free software; you can redistribute it and/or modify it^J * under the terms of version 2 of the GNU General Public License as^J * published by the Free Software Foundation.^J *^J * This program is distributed in the hope that it will be useful, but WITHOUT^J * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or^J * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for^J * more details.^J *^J * You should have received a copy of the GNU General Public License along with^J * this program; if not, write to the Free Software Foundation, Inc.,^J * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA^J *^J * The full GNU General Public License is included in this distribution in the^J * file called LICENSE.^J *^J * Contact Information:^J * Intel Linux Wireless <ilw@linux.intel.com>^J * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497^J *^J *****************************************************************************/^J#ifndef __il_core_h__^J#define __il_core_h__^J^J#include <linux/interrupt.h>^J#include <linux/pci.h>^I^I/* for struct pci_device_id */^J#include <linux/kernel.h>^J#include <linux/leds.h>^J#include <linux/wait.h>^J#include <linux/io.h>^J#include <net/mac80211.h>^J#in<<<<中间省略>>>>>> 4965 does not support HT40 channels on 2.4 GHz.^J */^J#define EEPROM_4965_REGULATORY_BAND_24_HT40_CHANNELS (2*0xA0)^I/* 14 bytes */^J^J/*^J * 5.2 GHz HT40 channels 36 (40), 44 (48), 52 (56), 60 (64),^J * 100 (104), 108 (112), 116 (120), 124 (128), 132 (136), 149 (153), 157 (161... symlink error: File name too long
引用 1 楼 kellyseeme 的回复:
把压缩文件名称修改下试试,感觉是你这个内容直接解压成了文件
压缩文件对文件名从来没有过特别要求,所以你提的改名我觉得不可行,问题根源我确定不在这。[/quote] 这么低级的错误 我还是不会犯的,这个不是刚开始打出来的错误,而是刚好到这个文件 的时间提示 软链接文件名太长,错误是因为本该是文件内容变成了文件连接。
joison_wk 2015-07-19
  • 打赏
  • 举报
回复
引用 楼主 joison_wk 的回复:
在github上下载的 linux-at91-linux-3.6.9-at91.tar 压缩包,在windows下解压正常。 但通过samba服务将windows下的这个压缩包copy到linux目录下解压出错 压缩包中的./linux-at91-linux-3.6.9-at91/drivers/net/wireless/iwlegacy/common.h 内容变成了连接名 导致“symlink error: File name too long”, 然而查看压缩包在从windows copy到linux时没有出错(在图片界面用open with archiev manager打开文件./linux-at91-linux-3.6.9-at91/drivers/net/wireless/iwlegacy/common.h 一切显示正常) 解压错误Log 见下 inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/iodev.h inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/iommu.c inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/irq_comm.c inflating: ./linux-at91-linux-3.6.9-at91/virt/kvm/kvm_main.c finishing deferred symbolic links: ./linux-at91-linux-3.6.9-at91/arch/microblaze/boot/dts/system.dts -> ../../platform/generic/system.dts ./linux-at91-linux-3.6.9-at91/drivers/net/wireless/iwlegacy/common.h -> /******************************************************************************^J *^J * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.^J *^J * This program is free software; you can redistribute it and/or modify it^J * under the terms of version 2 of the GNU General Public License as^J * published by the Free Software Foundation.^J *^J * This program is distributed in the hope that it will be useful, but WITHOUT^J * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or^J * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for^J * more details.^J *^J * You should have received a copy of the GNU General Public License along with^J * this program; if not, write to the Free Software Foundation, Inc.,^J * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA^J *^J * The full GNU General Public License is included in this distribution in the^J * file called LICENSE.^J *^J * Contact Information:^J * Intel Linux Wireless <ilw@linux.intel.com>^J * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497^J *^J *****************************************************************************/^J#ifndef __il_core_h__^J#define __il_core_h__^J^J#include <linux/interrupt.h>^J#include <linux/pci.h>^I^I/* for struct pci_device_id */^J#include <linux/kernel.h>^J#include <linux/leds.h>^J#include <linux/wait.h>^J#include <linux/io.h>^J#include <net/mac80211.h>^J#in<<<<中间省略>>>>>> 4965 does not support HT40 channels on 2.4 GHz.^J */^J#define EEPROM_4965_REGULATORY_BAND_24_HT40_CHANNELS (2*0xA0)^I/* 14 bytes */^J^J/*^J * 5.2 GHz HT40 channels 36 (40), 44 (48), 52 (56), 60 (64),^J * 100 (104), 108 (112), 116 (120), 124 (128), 132 (136), 149 (153), 157 (161... symlink error: File name too long
引用 1 楼 kellyseeme 的回复:
把压缩文件名称修改下试试,感觉是你这个内容直接解压成了文件
压缩文件对文件名从来没有过特别要求,所以你提的改名我觉得不可行,问题根源我确定不在这。
沭水河畔 2015-07-14
  • 打赏
  • 举报
回复
对于tar文件,应该这样解压: tar -xvf linux-at91-linux-3.6.9-at91.tar 楼主确认一下。
KEL-1 2015-07-12
  • 打赏
  • 举报
回复
把压缩文件名称修改下试试,感觉是你这个内容直接解压成了文件

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧