Wubi安裝Ubuntu, 通過調試日志發現如何跳過自動下載鏡像文件.

灬猜想灬 12年前發布 | 3K 次閱讀 TEA 代碼注釋 Fedora 21 W3C

以下是執行一次wubi安裝ubuntu的調試日志:


 10-02 16:23 INFO   root: === wubi 12.10 rev270 ===
10-02 16:23 DEBUG  root: Logfile is c:\users\用戶名\appdata\local\temp\wubi-12.10-rev270.log

10-02 16:23 DEBUG  root: sys.argv = ['main.pyo', '--exefile="Z:\\wubi.exe"']

10-02 16:23 DEBUG  CommonBackend: data_dir=C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\data

10-02 16:23 DEBUG  WindowsBackend: 7z=C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\bin\7z.exe

10-02 16:23 DEBUG  WindowsBackend: startup_folder=C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

10-02 16:23 DEBUG  CommonBackend: Fetching basic info...

10-02 16:23 DEBUG  CommonBackend: original_exe=Z:\wubi.exe

10-02 16:23 DEBUG  CommonBackend: platform=win32

10-02 16:23 DEBUG  CommonBackend: osname=nt

10-02 16:23 DEBUG  WindowsBackend: arch=amd64

10-02 16:23 DEBUG  CommonBackend: Parsing isolist=C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\data\isolist.ini

10-02 16:23 DEBUG  CommonBackend:   Adding distro Edubuntu-i386

10-02 16:23 DEBUG  CommonBackend:   Adding distro Kubuntu-amd64

10-02 16:23 DEBUG  CommonBackend:   Adding distro Mythbuntu-i386

10-02 16:23 DEBUG  CommonBackend:   Adding distro Edubuntu-amd64

10-02 16:23 DEBUG  CommonBackend:   Adding distro Ubuntu-amd64

10-02 16:23 DEBUG  CommonBackend:   Adding distro Lubuntu-i386

10-02 16:23 DEBUG  CommonBackend:   Adding distro Ubuntu-i386

10-02 16:23 DEBUG  CommonBackend:   Adding distro Mythbuntu-amd64

10-02 16:23 DEBUG  CommonBackend:   Adding distro Kubuntu-i386

10-02 16:23 DEBUG  CommonBackend:   Adding distro Lubuntu-amd64

10-02 16:23 DEBUG  WindowsBackend: Fetching host info...

10-02 16:23 DEBUG  WindowsBackend: registry_key=Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi

10-02 16:23 DEBUG  WindowsBackend: windows version=vista

10-02 16:23 DEBUG  WindowsBackend: windows_version2=Windows 7 Professional

10-02 16:23 DEBUG  WindowsBackend: windows_sp=None

10-02 16:23 DEBUG  WindowsBackend: windows_build=7600

10-02 16:23 DEBUG  WindowsBackend: gmt=8

10-02 16:23 DEBUG  WindowsBackend: country=CN

10-02 16:23 DEBUG  WindowsBackend: timezone=Asia/Shanghai

10-02 16:23 DEBUG  WindowsBackend: windows_username=用戶名

10-02 16:23 DEBUG  WindowsBackend: user_full_name=用戶名

10-02 16:23 DEBUG  WindowsBackend: user_directory=C:\Users\用戶名

10-02 16:23 DEBUG  WindowsBackend: windows_language_code=1028

10-02 16:23 DEBUG  WindowsBackend: windows_language=Chinese (Traditional)

10-02 16:23 DEBUG  WindowsBackend: processor_name=Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz

10-02 16:23 DEBUG  WindowsBackend: bootloader=vista

10-02 16:23 DEBUG  WindowsBackend: system_drive=Drive(C: hd 25134.0 mb free ntfs)

10-02 16:23 DEBUG  WindowsBackend: drive=Drive(C: hd 25134.0 mb free ntfs)

10-02 16:23 DEBUG  WindowsBackend: drive=Drive(D: hd 25134.0 mb free ntfs)

10-02 16:23 DEBUG  WindowsBackend: drive=Drive(E: hd 15735.46875 mb free ntfs)

10-02 16:23 DEBUG  WindowsBackend: drive=Drive(F: hd 20273.5546875 mb free ntfs)

10-02 16:23 DEBUG  WindowsBackend: drive=Drive(Z: cd 0.0 mb free cdfs)

10-02 16:23 DEBUG  WindowsBackend: uninstaller_path=None

10-02 16:23 DEBUG  WindowsBackend: previous_target_dir=None

10-02 16:23 DEBUG  WindowsBackend: previous_distro_name=None

10-02 16:23 DEBUG  WindowsBackend: keyboard_id=134481924

10-02 16:23 DEBUG  WindowsBackend: keyboard_layout=us

10-02 16:23 DEBUG  WindowsBackend: keyboard_variant=

10-02 16:23 DEBUG  WindowsBackend: total_memory_mb=2030.296875

10-02 16:23 DEBUG  CommonBackend: Searching ISOs on USB devices

10-02 16:23 DEBUG  CommonBackend: Searching for local CDs

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Kubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Kubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Mythbuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Mythbuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Edubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Edubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Lubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Lubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Kubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Kubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Mythbuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Mythbuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Edubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Edubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Lubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Lubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Kubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Kubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Mythbuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Mythbuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Edubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Edubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Lubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Lubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Kubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Kubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Mythbuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Mythbuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Edubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Edubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Lubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Lubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Kubuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Kubuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Mythbuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Mythbuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Edubuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Edubuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Lubuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Lubuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 INFO   root: Running the installer...

10-02 16:23 INFO   WinuiPage: appname=wubi, localedir=C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\translations, languages=['zh_CN', 'zh']

10-02 16:23 INFO   WinuiPage: appname=wubi, localedir=C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\translations, languages=['zh_CN', 'zh']

10-02 16:23 DEBUG  WinuiInstallationPage: target_drive=D:, installation_size=15000MB, distro_name=Ubuntu, language=en_US, locale=en_US.UTF-8, username=用戶名

10-02 16:23 INFO   root: Received settings

10-02 16:23 DEBUG  CommonBackend: Searching for local CD

10-02 16:23 DEBUG  Distro:   checking whether C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether D:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain D:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether E:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain E:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether F:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro:     does not contain F:\casper\filesystem.squashfs

10-02 16:23 DEBUG  Distro:   checking whether Z:\ is a valid Ubuntu CD

10-02 16:23 DEBUG  Distro: could not get info None

10-02 16:23 DEBUG  CommonBackend: Searching for local ISO

10-02 16:23 INFO   WinuiPage: appname=wubi, localedir=C:\Users\用戶名\AppData\Local\Temp\pylF3F0.tmp\translations, languages=['en_US', 'en']

10-02 16:23 DEBUG  TaskList: # Running tasklist...

10-02 16:23 DEBUG  TaskList: ## Running select_target_dir...

10-02 16:23 INFO   WindowsBackend: Installing into D:\ubuntu

10-02 16:23 DEBUG  TaskList: ## Finished select_target_dir

10-02 16:23 DEBUG  TaskList: ## Running create_dir_structure...

10-02 16:23 DEBUG  CommonBackend: Creating dir D:\ubuntu

10-02 16:23 DEBUG  CommonBackend: Creating dir D:\ubuntu\disks

10-02 16:23 DEBUG  CommonBackend: Creating dir D:\ubuntu\install

10-02 16:23 DEBUG  CommonBackend: Creating dir D:\ubuntu\install\boot

10-02 16:23 DEBUG  CommonBackend: Creating dir D:\ubuntu\disks\boot

10-02 16:23 DEBUG  CommonBackend: Creating dir D:\ubuntu\disks\boot\grub

10-02 16:23 DEBUG  CommonBackend: Creating dir D:\ubuntu\install\boot\grub

10-02 16:23 DEBUG  TaskList: ## Finished create_dir_structure

10-02 16:23 DEBUG  TaskList: ## Running create_uninstaller...

10-02 16:23 DEBUG  WindowsBackend: Copying uninstaller Z:\wubi.exe -> D:\ubuntu\uninstall-wubi.exe

10-02 16:23 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi UninstallString D:\ubuntu\uninstall-wubi.exe

10-02 16:23 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi InstallationDir D:\ubuntu

10-02 16:23 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi DisplayName Ubuntu

10-02 16:23 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi DisplayIcon D:\ubuntu\Ubuntu.ico

10-02 16:23 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi DisplayVersion 12.10-rev270

10-02 16:23 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi Publisher Ubuntu

10-02 16:23 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi URLInfoAbout http://www.ubuntu.com

10-02 16:23 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi HelpLink http://www.ubuntu.com/support

10-02 16:23 DEBUG  TaskList: ## Finished create_uninstaller

10-02 16:23 DEBUG  TaskList: ## Running create_preseed_diskimage...

10-02 16:23 DEBUG  TaskList: ## Finished create_preseed_diskimage

10-02 16:23 DEBUG  TaskList: ## Running get_diskimage...

10-02 16:23 DEBUG  TaskList: New task download

10-02 16:23 DEBUG  TaskList: ### Running download...

10-02 16:23 DEBUG  downloader: downloading http://releases.ubuntu.com/12.10/ubuntu-12.10-wubi-amd64.tar.xz > D:\ubuntu\disks\ubuntu-12.10-wubi-amd64.tar.xz

10-02 16:23 DEBUG  TaskList: # Finished tasklist
</td> </tr> </tbody> </table>
</div>









通過以上日志發現:


wubi搜索鏡像文件的順序如下:
1. Live USB (就是U盤鏡像了)
2. 本地光驅中的鏡像 (使用物理光驅掛載CD光盤)
3. 本地硬盤分區鏡像 (使用虛擬光驅掛載下載的ISO鏡像文件)
4. 本地ISO鏡像文件 (和wubi.exe放在同一個目錄)
5. 聯網自動下載

只要搜索到了前4步中的任何一個可用的鏡像文件,wubi就會將其復制到安裝目錄進行安裝了.
這樣就不用漫漫等待wubi自身下載浪費的大把時間了.







 本文由用戶 灬猜想灬 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
寫博客

博客分類

推薦閱讀

Wubi安裝Ubuntu, 通過調試日志發現如何跳過自動下載鏡像文件.

以下是執行一次wubi安裝ubuntu的調試日志: 10-02 16:23 INFO ? root: === wubi 12.10 rev270 === 10-02 16:23 DEBUG ?r...

Ubuntu安裝Oracle-XE-Client

第一次在 Ubuntu 下寫blog中的東東,好久沒有更新了,今天來點兒吧 安裝oracle-xe-client第一個我們要考慮的就是交換分區是否足夠大, This system does no...

Ubuntu在內網通過配置代理更新源

在終端首先配置代理: export http_proxy="http://用戶名:密碼@代理IP:代理端口" 然后在ubuntu添加apt-get的中國(搜狐)的源: sudo echo 'de...

下載google離線安裝包

正式版 http://www.google.com/chrome/eula.html?hl=zh-CN&standalone=1 測試版 http://www.google.com/chrome...
  • sesese色