Wubi: “nome global 'sig' não está definido”

1

Estou tentando instalar o Kubuntu 14.04 x64 usando o Wubi fornecido no arquivo ISO montado usando o Daemon Tools, do Windows 7 SP1 x64 Ultimate.

Estou recebendo esta mensagem de erro:

quandoestounopalco:

depoisdeiniciarainstalaçãocomestesparâmetros:

Porquê?

ÚltimaslinhasdeC:\Users\francky\AppData\Local\Temp\wubi-14.04-rev286.log:

[...]11-1415:34DEBUGTaskList:##Finisheduncompress_target_dir11-1415:34DEBUGTaskList:##Runningcreate_uninstaller...11-1415:34DEBUGWindowsBackend:CopyinguninstallerJ:\wubi.exe->D:\ubuntu\uninstall-wubi.exe11-1415:34DEBUGregistry:Settingregistrykey-2147483646Software\Microsoft\Windows\CurrentVersion\Uninstall\WubiUninstallStringD:\ubuntu\uninstall-wubi.exe11-1415:34DEBUGregistry:Settingregistrykey-2147483646Software\Microsoft\Windows\CurrentVersion\Uninstall\WubiInstallationDirD:\ubuntu11-1415:34DEBUGregistry:Settingregistrykey-2147483646Software\Microsoft\Windows\CurrentVersion\Uninstall\WubiDisplayNameKubuntu11-1415:34DEBUGregistry:Settingregistrykey-2147483646Software\Microsoft\Windows\CurrentVersion\Uninstall\WubiDisplayIconD:\ubuntu\Kubuntu.ico11-1415:34DEBUGregistry:Settingregistrykey-2147483646Software\Microsoft\Windows\CurrentVersion\Uninstall\WubiDisplayVersion14.04-rev28611-1415:34DEBUGregistry:Settingregistrykey-2147483646Software\Microsoft\Windows\CurrentVersion\Uninstall\WubiPublisherKubuntu11-1415:34DEBUGregistry:Settingregistrykey-2147483646Software\Microsoft\Windows\CurrentVersion\Uninstall\WubiURLInfoAbouthttp://www.kubuntu.org11-1415:34DEBUGregistry:Settingregistrykey-2147483646Software\Microsoft\Windows\CurrentVersion\Uninstall\WubiHelpLinkhttp://www.ubuntu.com/support11-1415:34DEBUGTaskList:##Finishedcreate_uninstaller11-1415:34DEBUGTaskList:##Runningcopy_installation_files...11-1415:34DEBUGWindowsBackend:CopyingC:\Users\francky\AppData\Local\Temp\pyl5D7F.tmp\data\custom-installation->D:\ubuntu\install\custom-installation11-1415:34DEBUGWindowsBackend:CopyingC:\Users\francky\AppData\Local\Temp\pyl5D7F.tmp\winboot->D:\ubuntu\winboot11-1415:34DEBUGWindowsBackend:CopyingC:\Users\francky\AppData\Local\Temp\pyl5D7F.tmp\data\images\Kubuntu.ico->D:\ubuntu\Kubuntu.ico11-1415:34DEBUGTaskList:##Finishedcopy_installation_files11-1415:34DEBUGTaskList:##Runningget_iso...11-1415:34DEBUGCommonBackend:CouldnotfindanyISOorCD,downloadingonenow11-1415:34DEBUGTaskList:Newtaskget_metalink11-1415:34DEBUGTaskList:###Runningget_metalink...11-1415:34DEBUGdownloader:downloadinghttp://cdimage.ubuntu.com/kubuntu/releases/14.04/release/kubuntu-14.04-desktop-amd64.metalink>D:\ubuntu\install11-1415:34DEBUGdownloader:Downloadstartfilename=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=None11-1415:34DEBUGdownloader:downloadfinished(read1047bytes)11-1415:34DEBUGdownloader:downloadinghttp://cdimage.ubuntu.com/kubuntu/releases/14.04/release/MD5SUMS-metalink>D:\ubuntu\install11-1415:34DEBUGdownloader:Downloadstartfilename=D:\ubuntu\install\MD5SUMS-metalink,url=http://cdimage.ubuntu.com/kubuntu/releases/14.04/release/MD5SUMS-metalink,basename=MD5SUMS-metalink,length=576,text=None11-1415:34DEBUGdownloader:downloadfinished(read576bytes)11-1415:34DEBUGdownloader:downloadinghttp://cdimage.ubuntu.com/kubuntu/releases/14.04/release/MD5SUMS-metalink.gpg>D:\ubuntu\install11-1415:34DEBUGdownloader:Downloadstartfilename=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=None11-1415:34DEBUGdownloader:downloadfinished(read933bytes)11-1415:34ERRORTaskList:globalname'sig'isnotdefinedTraceback(mostrecentcalllast):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

Eu tenho o mesmo problema ao usar wubi1510r298.exe do link , em dois computadores diferentes.

Eu também tenho o mesmo problema ao tentar instalar o Ubuntu em vez do Kubuntu.

    
por Franck Dernoncourt 14.11.2015 / 21:37

2 respostas

4

O algoritmo de hash para assinaturas gpg foi alterado de sha1 para sha512 e o sha512 não é suportado pelo módulo Wubi usado.

Enviei um patch para launchpad.net (código-fonte)

O patch ainda não oferece suporte ao sha512, mas fornece um melhor tratamento de erros. Por isso escreve as seguintes mensagens no log ...

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

... mas não há erro fatal não tratado que impeça uma instalação.

Se você deseja corrigir um wubi.exe existente, não é necessário criar o wubi.exe inteiro a partir do código-fonte.

Se você copiar o api.py da origem (caminho de origem: /src/openpgp/sap/api.py ) para seu wubi.exe com 7z (caminho de destino: /lib/openpgp/sap/api.py ) também deve funcionar.

Se você não quiser corrigir nada, aqui também já são versões corrigidas. wubi14043.exe , wubi14043SB.exe e wubi1504SB.exe usam um api.py adicional. O wubi1510r299.exe usa uma nova versão da fonte.

    
por hakuna_matata 03.12.2015 / 16:47
2

Eu consegui contornar este problema com o Ubuntu 14.04.3 (funciona 100%). Você pode tentar executar o mesmo método no Kubuntu 14.04.3 (deve funcionar) ou analisar o arquivo isolist.ini alterado (verifique os comentários) e atualizar o wubi1510r298.exe para rodar a versão mais nova.

Aqui está a instrução (para a versão 14.04.3):

  1. Faça o download do kubuntu-14.04.3-desktop-i386.iso em um diretório separado.
  2. Faça o download do wubi14043.exe (para a versão 14.04.3) no mesmo diretório.
  3. Instale o 7z.
  4. No diretório com wubi14043.exe, crie uma pasta temporária:

    mkdir wubi-temp

  5. Ir para a pasta temporária:

    cd wubi-temp

  6. Extraia o wubi14043.exe na pasta tmp:

    7z x ../ wubi14043.exe

  7. Edite dados de arquivo / isolist.ini e substitua seu conteúdo pelo conteúdo que colei abaixo.

  8. Atualize seu wubi14043.exe com o isolist.ini alterado:

    7z u ../ wubi14043.exe

  9. Remover pasta temporária:

    cd ..
    rd / s wubi-temp

  10. Desconecte o seu computador da rede e execute o wubi14043.exe atualizado - ele deve ser capaz de instalar o Kubuntu a partir do ISO local agora.

Isolist.ini atualizado:

[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
    
por Konradzinski 19.11.2015 / 21:11

Tags