Wubi:“全局名称‘sig’未定义”

Wubi:“全局名称‘sig’未定义”

我正在尝试使用 Daemon Tools 安装的 ISO 文件中提供的 Wubi 从 Windows 7 SP1 x64 Ultimate 安装 Kubuntu 14.04 x64。

我收到此错误信息:

在此处输入图片描述

当我处于这个阶段时:

在此处输入图片描述

使用以下参数启动安装后:

在此处输入图片描述

为什么?


最后几行C:\Users\francky\AppData\Local\Temp\wubi-14.04-rev286.log

[...]
11-14 15:34 DEBUG  TaskList: ## Finished uncompress_target_dir
11-14 15:34 DEBUG  TaskList: ## Running create_uninstaller...
11-14 15:34 DEBUG  WindowsBackend: Copying uninstaller J:\wubi.exe -> D:\ubuntu\uninstall-wubi.exe
11-14 15:34 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi UninstallString D:\ubuntu\uninstall-wubi.exe
11-14 15:34 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi InstallationDir D:\ubuntu
11-14 15:34 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi DisplayName Kubuntu
11-14 15:34 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi DisplayIcon D:\ubuntu\Kubuntu.ico
11-14 15:34 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi DisplayVersion 14.04-rev286
11-14 15:34 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi Publisher Kubuntu
11-14 15:34 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi URLInfoAbout http://www.kubuntu.org
11-14 15:34 DEBUG  registry: Setting registry key -2147483646 Software\Microsoft\Windows\CurrentVersion\Uninstall\Wubi HelpLink http://www.ubuntu.com/support
11-14 15:34 DEBUG  TaskList: ## Finished create_uninstaller
11-14 15:34 DEBUG  TaskList: ## Running copy_installation_files...
11-14 15:34 DEBUG  WindowsBackend: Copying C:\Users\francky\AppData\Local\Temp\pyl5D7F.tmp\data\custom-installation -> D:\ubuntu\install\custom-installation
11-14 15:34 DEBUG  WindowsBackend: Copying C:\Users\francky\AppData\Local\Temp\pyl5D7F.tmp\winboot -> D:\ubuntu\winboot
11-14 15:34 DEBUG  WindowsBackend: Copying C:\Users\francky\AppData\Local\Temp\pyl5D7F.tmp\data\images\Kubuntu.ico -> D:\ubuntu\Kubuntu.ico
11-14 15:34 DEBUG  TaskList: ## Finished copy_installation_files
11-14 15:34 DEBUG  TaskList: ## Running get_iso...
11-14 15:34 DEBUG  CommonBackend: Could not find any ISO or CD, downloading one now
11-14 15:34 DEBUG  TaskList: New task get_metalink
11-14 15:34 DEBUG  TaskList: ### Running get_metalink...
11-14 15:34 DEBUG  downloader: downloading http://cdimage.ubuntu.com/kubuntu/releases/14.04/release/kubuntu-14.04-desktop-amd64.metalink > D:\ubuntu\install
11-14 15:34 DEBUG  downloader: Download start filename=D:\ubuntu\install\kubuntu-14.04-desktop-amd64.metalink, url=http://cdimage.ubuntu.com/kubuntu/releases/14.04/release/kubuntu-14.04-desktop-amd64.metalink, basename=kubuntu-14.04-desktop-amd64.metalink, length=1047, text=None
11-14 15:34 DEBUG  downloader: download finished (read 1047 bytes)
11-14 15:34 DEBUG  downloader: downloading http://cdimage.ubuntu.com/kubuntu/releases/14.04/release/MD5SUMS-metalink > D:\ubuntu\install
11-14 15:34 DEBUG  downloader: Download start filename=D:\ubuntu\install\MD5SUMS-metalink, url=http://cdimage.ubuntu.com/kubuntu/releases/14.04/release/MD5SUMS-metalink, basename=MD5SUMS-metalink, length=576, text=None
11-14 15:34 DEBUG  downloader: download finished (read 576 bytes)
11-14 15:34 DEBUG  downloader: downloading http://cdimage.ubuntu.com/kubuntu/releases/14.04/release/MD5SUMS-metalink.gpg > D:\ubuntu\install
11-14 15:34 DEBUG  downloader: Download start filename=D:\ubuntu\install\MD5SUMS-metalink.gpg, url=http://cdimage.ubuntu.com/kubuntu/releases/14.04/release/MD5SUMS-metalink.gpg, basename=MD5SUMS-metalink.gpg, length=933, text=None
11-14 15:34 DEBUG  downloader: download finished (read 933 bytes)
11-14 15:34 ERROR  TaskList: global name 'sig' is not defined
Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\backend.py", line 458, in get_metalink
  File "\lib\wubi\backends\common\backend.py", line 270, in check_metalink
  File "\lib\wubi\backends\common\signature.py", line 41, in verify_gpg_signature
  File "\lib\openpgp\sap\api.py", line 1202, in verify_str
  File "\lib\openpgp\sap\api.py", line 1100, in verify_msg
  File "\lib\openpgp\sap\crypto.py", line 445, in verify
  File "\lib\openpgp\sap\crypto.py", line 174, in hash_context
NameError: global name 'sig' is not defined
11-14 15:34 DEBUG  TaskList: # Cancelling tasklist
11-14 15:34 ERROR  TaskList: Cannot download the metalink and therefore the ISO
Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\backend.py", line 595, in get_iso
  File "\lib\wubi\backends\common\backend.py", line 406, in download_iso
Exception: Cannot download the metalink and therefore the ISO
11-14 15:34 ERROR  root: global name 'sig' is not defined
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 458, in get_metalink
  File "\lib\wubi\backends\common\backend.py", line 270, in check_metalink
  File "\lib\wubi\backends\common\signature.py", line 41, in verify_gpg_signature
  File "\lib\openpgp\sap\api.py", line 1202, in verify_str
  File "\lib\openpgp\sap\api.py", line 1100, in verify_msg
  File "\lib\openpgp\sap\crypto.py", line 445, in verify
  File "\lib\openpgp\sap\crypto.py", line 174, in hash_context
NameError: global name 'sig' is not defined
11-14 15:34 DEBUG  TaskList: # Cancelling tasklist
11-14 15:34 DEBUG  TaskList: # Finished tasklist

wubi1510r298.exe我在使用时遇到了同样的问题https://www.dropbox.com/sh/6uqomp8l1frcd1y/AAAhSCimTaYE-94egbmc1X_na?dl=0,在两台不同的计算机上。

当我尝试安装 Ubuntu 而不是 Kubuntu 时也遇到了同样的问题。

答案1

gpg 签名的哈希算法已从 sha1 更改为 sha512,并且所使用的 Wubi 模块不支持 sha512。

我上传了一个补丁到launchpad.net(源代码)

该补丁仍然不提供 sha512 支持,但它提供了更好的错误处理。因此它将以下消息写入日志...

WARNING saplog: A signature from ID:'46181433FBB75451' has an unsupported hash algorithm:10(SHA512).
ERROR  CommonBackend: Could not verify signature for metalink md5sums
ERROR  CommonBackend: Cannot authenticate the metalink file, it might be corrupt

...但没有未处理的致命错误阻止安装。

如果您想修补现有的 wubi.exe,则无需从源代码构建整个 wubi.exe。

如果从源复制 api.py(源路径:/src/openpgp/sap/api.py)使用 7z 压缩包复制到你的 wubi.exe(目标路径:/lib/openpgp/sap/api.py) 它也应该可以工作。

如果你不想修补任何东西,这里也已经是修复版本了。五笔14043.exewubi14043SB安装包wubi1504SB安装包使用额外的 api.py 。wubi1510r299.exe使用来自源代码的新构建。

答案2

我已经设法在 Ubuntu 14.04.3 上绕过了这个问题(100% 有效)。您可以尝试在 Kubuntu 14.04.3 上运行相同的方法(应该有效)或分析更改的 isolist.ini 文件(查看注释)并相应地更新 wubi1510r298.exe 以运行较新的版本。

以下是说明(针对版本 14.04.3):

  1. 下载kubuntu-14.04.3-桌面-i386.iso进入单独的目录。
  2. 下载五笔14043.exe(适用于版本 14.04.3)放到同一目录中。
  3. 安装 7z。
  4. 在 wubi14043.exe 目录中创建一个临时文件夹:

    创建 wubi-temp 目录

  5. 转到临时文件夹:

    cd 五笔临时文件

  6. 将 wubi14043.exe 解压到 tmp 文件夹:

    7z x ../wubi14043.exe

  7. 编辑文件 data/isolist.ini 并将其内容替换为下面我粘贴的内容。

  8. 使用修改后的 isolist.ini 更新你的 wubi14043.exe:

    7z 你../wubi14043.exe

  9. 删除临时文件夹:

    cd..
    rd /s wubi-temp

  10. 断开您的计算机与网络的连接并运行更新的 wubi14043.exe - 它现在应该能够从本地 ISO 安装 Kubuntu。


更新了 isolist.ini:

[DEFAULT]
version=14.04.3
info_file=.disk/info
kernel=casper/vmlinuz
initrd=casper/initrd.lz
files_to_check=casper/filesystem.squashfs
md5sums=md5sum.txt
metalink_md5sums=MD5SUMS-metalink
metalink_md5sums_signature=MD5SUMS-metalink.gpg
size=0
min_iso_size=600000000
max_iso_size=900000000
min_disk_space_mb=5000
min_memory_mb=256
support=http://www.ubuntu.com/support
installation_dir=ubuntu
#NOTE: installation_dir must also be changed in data/wubildr.cfg

[Ubuntu-i386]
arch=i386
name=Ubuntu
packages=ubuntu-desktop
metalink=http://releases.ubuntu.com/14.04.3/ubuntu-14.04.3-desktop-i386.metalink
#metalink=http://releases.ubuntu.com/14.04/ubuntu-14.04-beta-desktop-i386.metalink
metalink2=http://cdimage.ubuntu.com/daily-live/current/trusty-desktop-i386.metalink
website=http://www.ubuntu.com
ordering=1

[Ubuntu-amd64]
arch=amd64
name=Ubuntu
packages=ubuntu-desktop
#kernel=casper/vmlinuz.efi
metalink=http://releases.ubuntu.com/14.04.3/ubuntu-14.04.3-desktop-amd64.metalink
#metalink=http://releases.ubuntu.com/14.04/ubuntu-14.04-beta-desktop-amd64.metalink
metalink2=http://cdimage.ubuntu.com/daily-live/current/trusty-desktop-amd64.metalink
website=http://www.ubuntu.com
ordering=1

[Ubuntu GNOME-i386]
arch=i386
name=Ubuntu GNOME
packages=ubuntu-gnome-desktop
metalink=http://cdimage.ubuntu.com/ubuntu-gnome/releases/14.04.3/release/ubuntu-gnome-14.04.3-desktop-i386.metalink
metalink2=http://cdimage.ubuntu.com/ubuntu-gnome/daily-live/current/trusty-desktop-i386.metalink
website=http://www.ubuntugnome.org
ordering=2

[Ubuntu GNOME-amd64]
arch=amd64
name=Ubuntu GNOME
packages=ubuntu-gnome-desktop
#kernel=casper/vmlinuz.efi
metalink=http://cdimage.ubuntu.com/ubuntu-gnome/releases/14.04.3/release/ubuntu-gnome-14.04.3-desktop-amd64.metalink
metalink2=http://cdimage.ubuntu.com/ubuntu-gnome/daily-live/current/trusty-desktop-amd64.metalink
website=http://www.ubuntugnome.org
ordering=2

[Kubuntu-i386]
arch=i386
name=Kubuntu
packages=kubuntu-desktop
metalink=http://cdimage.ubuntu.com/kubuntu/releases/14.04.3/release/kubuntu-14.04.3-desktop-i386.metalink
metalink2=http://cdimage.ubuntu.com/kubuntu/daily-live/current/trusty-desktop-i386.metalink
website=http://www.kubuntu.org
ordering=3

[Kubuntu-amd64]
arch=amd64
name=Kubuntu
packages=kubuntu-desktop
#kernel=casper/vmlinuz.efi
metalink=http://cdimage.ubuntu.com/kubuntu/releases/14.04.3/release/kubuntu-14.04.3-desktop-amd64.metalink
metalink2=http://cdimage.ubuntu.com/kubuntu/daily-live/current/trusty-desktop-amd64.metalink
website=http://www.kubuntu.org
ordering=3

[Xubuntu-i386]
arch=i386
name=Xubuntu
packages=xubuntu-desktop
metalink=http://cdimage.ubuntu.com/xubuntu/releases/14.04.3/release/xubuntu-14.04.3-desktop-i386.metalink
metalink2=http://cdimage.ubuntu.com/xubuntu/daily-live/current/trusty-desktop-i386.metalink
website=http://www.xubuntu.org
ordering=4

[Xubuntu-amd64]
arch=amd64
name=Xubuntu
packages=xubuntu-desktop
#kernel=casper/vmlinuz.efi
metalink=http://cdimage.ubuntu.com/xubuntu/releases/14.04.3/release/xubuntu-14.04.3-desktop-amd64.metalink
metalink2=http://cdimage.ubuntu.com/xubuntu/daily-live/current/trusty-desktop-amd64.metalink
website=http://www.xubuntu.org
ordering=4

[Mythbuntu-i386]
arch=i386
name=Mythbuntu
packages=ubuntu-standard
metalink=http://cdimage.ubuntu.com/mythbuntu/releases/14.04.3/release/mythbuntu-14.04.3-desktop-i386.metalink
metalink2=http://cdimage.ubuntu.com/mythbuntu/daily-live/current/trusty-desktop-i386.metalink
website=http://www.mythbuntu.org
ordering=5

[Mythbuntu-amd64]
arch=amd64
name=Mythbuntu
packages=ubuntu-standard
#kernel=casper/vmlinuz.efi
metalink=http://cdimage.ubuntu.com/mythbuntu/releases/14.04.3/release/mythbuntu-14.04.3-desktop-amd64.metalink
metalink2=http://cdimage.ubuntu.com/mythbuntu/daily-live/current/trusty-desktop-amd64.metalink
website=http://www.mythbuntu.org
ordering=5

[Edubuntu-i386]
min_iso_size=1500000000
max_iso_size=3500000000
min_disk_space_mb=10000
min_memory_mb=512
arch=i386
name=Edubuntu
packages=edubuntu-desktop
metalink=http://cdimage.ubuntu.com/edubuntu/releases/14.04.3/release/edubuntu-14.04.3-dvd-i386.metalink
metalink2=http://cdimage.ubuntu.com/edubuntu/dvd/current/trusty-dvd-i386.metalink
website=http://www.edubuntu.org
ordering=6

[Edubuntu-amd64]
min_iso_size=1500000000
max_iso_size=3500000000
min_disk_space_mb=10000
min_memory_mb=512
arch=amd64
name=Edubuntu
packages=edubuntu-desktop
#kernel=casper/vmlinuz.efi
metalink=http://cdimage.ubuntu.com/edubuntu/releases/14.04.3/release/edubuntu-14.04.3-dvd-amd64.metalink
metalink2=http://cdimage.ubuntu.com/edubuntu/dvd/current/trusty-dvd-amd64.metalink
website=http://www.edubuntu.org
ordering=6

[Lubuntu-i386]
arch=i386
name=Lubuntu
packages=lubuntu-desktop
metalink=http://cdimage.ubuntu.com/lubuntu/releases/14.04.3/release/lubuntu-14.04.3-desktop-i386.metalink
metalink2=http://cdimage.ubuntu.com/lubuntu/daily-live/current/trusty-desktop-i386.metalink
website=http://lubuntu.net
ordering=7

[Lubuntu-amd64]
arch=amd64
name=Lubuntu
packages=lubuntu-desktop
#kernel=casper/vmlinuz.efi
metalink=http://cdimage.ubuntu.com/lubuntu/releases/14.04.3/release/lubuntu-14.04.3-desktop-amd64.metalink
metalink2=http://cdimage.ubuntu.com/lubuntu/daily-live/current/trusty-desktop-amd64.metalink
website=http://lubuntu.net
ordering=7

[Ubuntu Studio-i386]
min_iso_size=1500000000
max_iso_size=3500000000
min_disk_space_mb=10000
min_memory_mb=512
arch=i386
name=Ubuntu Studio
packages=ubuntustudio-desktop
metalink=http://cdimage.ubuntu.com/ubuntustudio/releases/14.04.3/release/ubuntustudio-14.04.3-dvd-i386.metalink
metalink2=http://cdimage.ubuntu.com/ubuntustudio/dvd/current/trusty-dvd-i386.metalink
website=http://ubuntustudio.org
ordering=8

[Ubuntu Studio-amd64]
min_iso_size=1500000000
max_iso_size=3500000000
min_disk_space_mb=10000
min_memory_mb=512
arch=amd64
name=Ubuntu Studio
packages=ubuntustudio-desktop
metalink=http://cdimage.ubuntu.com/ubuntustudio/releases/14.04.3/release/ubuntustudio-14.04.3-dvd-amd64.metalink
metalink2=http://cdimage.ubuntu.com/ubuntustudio/dvd/current/trusty-dvd-amd64.metalink
website=http://ubuntustudio.org
ordering=8

[Ubuntu MATE-i386]
arch=i386
name=Ubuntu MATE
packages=ubuntu-mate-desktop
metalink=http://cdimage.ubuntu.com/ubuntu-mate/releases/14.04.3/release/ubuntu-mate-14.04.3-desktop-i386.metalink
metalink2=http://cdimage.ubuntu.com/ubuntu-mate/daily-live/current/trusty-desktop-i386.metalink
website=http://ubuntu-mate.org
ordering=9

[Ubuntu MATE-amd64]
arch=amd64
name=Ubuntu MATE
packages=ubuntu-mate-desktop
#kernel=casper/vmlinuz.efi
metalink=http://cdimage.ubuntu.com/ubuntu-mate/releases/14.04.3/release/ubuntu-mate-14.04.3-desktop-amd64.metalink
metalink2=http://cdimage.ubuntu.com/ubuntu-mate/daily-live/current/trusty-desktop-amd64.metalink
website=http://ubuntu-mate.org
ordering=9

相关内容