安装 11.10 时发生 initrd.lz 已损坏错误

安装 11.10 时发生 initrd.lz 已损坏错误

C:\ubuntu\install\boot\initrd.lz 已损坏。每次我尝试使用 wubi 安装 ubuntu-11.10-desktop-i386 时都会弹出错误提示。安装过程快要完成时会出现错误。有人能为这个问题提出解决方案吗?这种情况经常发生。

03-19 18:01 DEBUG  TaskList: ## Running copy_installation_files...
03-19 18:01 DEBUG  WindowsBackend: Copying C:\DOCUME~1\HP_OWN~1.YOU\LOCALS~1\Temp\pyl59.tmp\data\custom-installation -> C:\ubuntu\install\custom-installation
03-19 18:01 DEBUG  WindowsBackend: Copying C:\DOCUME~1\HP_OWN~1.YOU\LOCALS~1\Temp\pyl59.tmp\winboot -> C:\ubuntu\winboot
03-19 18:01 DEBUG  WindowsBackend: Copying C:\DOCUME~1\HP_OWN~1.YOU\LOCALS~1\Temp\pyl59.tmp\data\images\Ubuntu.ico -> C:\ubuntu\Ubuntu.ico
03-19 18:01 DEBUG  TaskList: ## Finished copy_installation_files
03-19 18:01 DEBUG  TaskList: ## Running get_iso...
03-19 18:01 DEBUG  CommonBackend: Trying to use pre-specified ISO X:\ubuntu-11.10-desktop-i386.iso
03-19 18:01 DEBUG  TaskList: New task is_valid_iso
03-19 18:01 DEBUG  TaskList: ### Running is_valid_iso...
03-19 18:01 DEBUG  Distro:   checking Ubuntu ISO X:\ubuntu-11.10-desktop-i386.iso
03-19 18:01 INFO   Distro: Found a valid iso for Ubuntu: X:\ubuntu-11.10-desktop-i386.iso
03-19 18:01 DEBUG  TaskList: ### Finished is_valid_iso
03-19 18:01 DEBUG  TaskList: New task check_iso
03-19 18:01 DEBUG  TaskList: ### Running check_iso...
03-19 18:01 DEBUG  CommonBackend: Checking X:\ubuntu-11.10-desktop-i386.iso
03-19 18:01 DEBUG  Distro:   checking Ubuntu ISO X:\ubuntu-11.10-desktop-i386.iso
03-19 18:01 INFO   Distro: Found a valid iso for Ubuntu: X:\ubuntu-11.10-desktop-i386.iso
03-19 18:01 DEBUG  CommonBackend: Using distro Ubuntu i386 instead of Ubuntu amd64
03-19 18:01 DEBUG  TaskList: New task get_metalink
03-19 18:01 DEBUG  TaskList: #### Running get_metalink...
03-19 18:01 DEBUG  downloader: downloading http://releases.ubuntu.com/11.10/ubuntu-11.10-desktop-i386.metalink > C:\ubuntu\install
03-19 18:01 ERROR  CommonBackend: Cannot download metalink file http://releases.ubuntu.com/11.10/ubuntu-11.10-desktop-i386.metalink err=[Errno 4] IOError: <urlopen error (7, 'getaddrinfo failed')>
03-19 18:01 DEBUG  downloader: downloading http://cdimage.ubuntu.com/daily-live/current/oneiric-desktop-i386.metalink > C:\ubuntu\install
03-19 18:01 ERROR  CommonBackend: Cannot download metalink file2 http://cdimage.ubuntu.com/daily-live/current/oneiric-desktop-i386.metalink err=[Errno 4] IOError: <urlopen error (7, 'getaddrinfo failed')>
03-19 18:01 DEBUG  TaskList: #### Finished get_metalink
03-19 18:01 ERROR  CommonBackend: ERROR: the metalink file is not available, cannot check the md5 for X:\ubuntu-11.10-desktop-i386.iso, ignoring
03-19 18:01 DEBUG  TaskList: ### Finished check_iso
03-19 18:01 DEBUG  TaskList: New task copy_file
03-19 18:01 DEBUG  CommonBackend: Copying X:\ubuntu-11.10-desktop-i386.iso > C:\ubuntu\install\installation.iso
03-19 18:01 DEBUG  TaskList: ### Running copy_file...
03-19 18:01 DEBUG  TaskList: ### Finished copy_file
03-19 18:01 DEBUG  TaskList: ## Finished get_iso
03-19 18:01 DEBUG  TaskList: ## Running extract_kernel...
03-19 18:01 DEBUG  CommonBackend: Extracting files from ISO C:\ubuntu\install\installation.iso
03-19 18:01 DEBUG  WindowsBackend:   extracting md5sum.txt from C:\ubuntu\install\installation.iso
03-19 18:01 DEBUG  WindowsBackend:   extracting casper\vmlinuz from C:\ubuntu\install\installation.iso
03-19 18:01 DEBUG  WindowsBackend:   extracting casper\initrd.lz from C:\ubuntu\install\installation.iso
03-19 18:01 DEBUG  CommonBackend: Checking kernel, initrd and md5sums
03-19 18:01 DEBUG  CommonBackend:   checking C:\ubuntu\install\boot\vmlinuz
03-19 18:01 DEBUG  CommonBackend:   C:\ubuntu\install\boot\vmlinuz md5 = fde150f5c6fd2de66ed7876efbfcc4c7 == fde150f5c6fd2de66ed7876efbfcc4c7
03-19 18:01 DEBUG  CommonBackend:   checking C:\ubuntu\install\boot\initrd.lz
03-19 18:01 DEBUG  CommonBackend:   C:\ubuntu\install\boot\initrd.lz md5 = 8900200c764438c1b124dff5ae92c763 != d6baee1e11f1d6de6eba6bd43dbde352
03-19 18:01 ERROR  TaskList: File C:\ubuntu\install\boot\initrd.lz is corrupted
Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\backend.py", line 623, in extract_kernel
Exception: File C:\ubuntu\install\boot\initrd.lz is corrupted
03-19 18:01 DEBUG  TaskList: # Cancelling tasklist
03-19 18:01 ERROR  root: File C:\ubuntu\install\boot\initrd.lz is corrupted
Traceback (most recent call last):
  File "\lib\wubi\application.py", line 58, in run
  File "\lib\wubi\application.py", line 132, in select_task
  File "\lib\wubi\application.py", line 158, in run_installer
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\backend.py", line 623, in extract_kernel
Exception: File C:\ubuntu\install\boot\initrd.lz is corrupted
03-19 18:01 DEBUG  TaskList: # Finished tasklist

答案1

Wubi 在安装时会检查 ISO 的 md5sum。本例中 ISO 处于X:\

03-19 18:01 INFO   Distro: Found a valid iso for Ubuntu: X:\ubuntu-11.10-desktop-i386.iso

因此 Wubi 尝试下载包含 md5sum 的 metalink 文件,以便验证 ISO。但下载失败(未连接到互联网?),因此它跳过了该步骤。

03-19 18:01 ERROR  CommonBackend: Cannot download metalink file http://releases.ubuntu.com/11.10/ubuntu-11.10-desktop-i386.metalink err=[Errno 4] IOError: <urlopen error (7, 'getaddrinfo failed')>
...
03-19 18:01 ERROR  CommonBackend: ERROR: the metalink file is not available, cannot check the md5 for X:\ubuntu-11.10-desktop-i386.iso, ignoring

但它仍然使用写入 ISO 的 md5sum 检查从 ISO 中提取的 vmlinuz 和 initrd.lz。这就是它失败的地方。

03-19 18:01 DEBUG  CommonBackend:   checking C:\ubuntu\install\boot\initrd.lz
03-19 18:01 DEBUG  CommonBackend:   C:\ubuntu\install\boot\initrd.lz md5 = 8900200c764438c1b124dff5ae92c763 != d6baee1e11f1d6de6eba6bd43dbde352
03-19 18:01 ERROR  TaskList: File C:\ubuntu\install\boot\initrd.lz is corrupted

总而言之,您的 CD/ISO 似乎已损坏。请下载一张新的。

相关内容