Меню Рубрики

Linux wine cannot find

Компьютерный форум

Здесь решают различные задачи сообща. Присоединяйтесь!

Проблема с wine на Kali Linux

Модератор: Tim308

Проблема с wine на Kali Linux

Сообщение halk165 » 25 дек 2015, 23:32

Проблема с wine на Kali Linux

Сообщение DesignerMix » 25 дек 2015, 23:48

halk165 , какой у вас Kali Linux? 2.0 или ниже?

Попробуйте все обновить dpkg —add-architecture i386 && apt-get update && apt-get install wine32 , затем удалить конфигурацию rm -rf /root/.wine и заново ее собрать wine —config

Проблема с wine на Kali Linux

Сообщение halk165 » 26 дек 2015, 00:55

DesignerMix , да, Kali Linux 2.0, кажется, что делал это, сейчас еще раз попробую. Благодарю за оперативную помощь.

Отправлено спустя 43 минуты 8 секунд:
После обновления всё по нулям и 6 пакетов не обновлено, потом удалил и попробовал собрать, но после «wine —config» — «wine: failed to initialize: /usr/lib/i386-linux-gnu/wine/ntdll.dll.so: wrong ELF class: ELFCLASS64». Попробовал «wine64 —config», обновилось, но с ошибками. Все строки после команды:
«wine: created the configuration directory ‘/root/.wine'»,
«fixme:storage:create_storagefile Storage share mode implemented.»,
четыре раза «err:mscooree:LoadLibraryShim error reading registry key for installroot»,
опять «fixme:storage:create_storagefile Storage share mode implemented.»,
два раза «err:winediag:SECUR32_initNTLNSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:iphlpapi:NotifyAddChange (Handle 0xeee338, overlapped 0xeee350) : stub»,
далее «wine: configuration in ‘/root/.wine’ has been updated.»,
в конце «wine: cannot find L»C:\\windows\\system32\\—config.exe».

Проблема с wine на Kali Linux

Сообщение DesignerMix » 26 дек 2015, 10:23

Проблема с wine на Kali Linux

Сообщение halk165 » 26 дек 2015, 14:08

Проблема с wine на Kali Linux

Сообщение triod pentod » 26 дек 2015, 15:04

Источник

Ubuntu Wine — cannot find C:\\windows\\system32?

I have installed wine 1.8 and winetricks on my Xubuntu 16.04 but I have the error below when I try to install an exe file:

Any ideas why and how I can fix it?

/Desktop/folder-name/Set-up.exe – muru Dec 26 ’16 at 15:14

4 Answers 4

Run the Configure Wine application from the launcher or open a terminal with Ctrl Alt T and issue the command winecfg Either way you will get a Configuration Window for Wine. Insure that you are emulating the right version of Windows for your application and that the settings on all the tabs are sane. Drive Mapping Example Below:

Note: In a typical installation of Wine The directory noted in your question can be found at

/.wine/drive_c/windows/system32 and you can examine the content with the command.

You can find the location of the Set-up.exe file in your question with the terminal command find

/.wine -name Set-up.exe provided it’s anywhere close to where it’s supposed to be.

On the off chance you’ve placed it somewhere outside the Wine drive mapping environment you should be able to locate it with the command sudo find / -name Set-up.exe

If anything in this answer is unclear please leave me a comment and I’ll do my best to clarify.

Run winecfg and ensure you have / and ../drive_c mounted in the Drives tab.

If you don’t provide full path (or relative path), wine will only search in «c:\windows\system32»

Just execute your file along with the path

Replace ./ with another path if the file is not in your current path.

Related to this issue> This is regarding a wine bug https://bugs.winehq.org/show_bug.cgi?id=39403 described in this link https://www.reddit.com/r/wine_gaming/comments/3vuuu9/steam_store_cant_connect_giving_me_black_screen/ . I want to show installing wine/windows steam games from The Linux Terminal is possible despite the black screen.This allows them to appear in your steam games Library.

There is one problem that must be fixed first and is shown is my work/ research:

you get this: wine: cannot find L»C:\windows\system32\steam.exe»

Wine wants any windows executable programs to be installed there for some reason. In my case steam.exe

wine start /d «C:\nameoffoldercontainingexecutable» example.exe

steamsetup.exe is installed in C:\Program Files where i like it to be.

Therefore the magic key to issue a command for installing any windows game from the Linux terminal in wine steam is:

wine start /d «C:\Program Files\steamfoldername» steam.exe -applaunch steamappID#

The steam app ID is found in the URL of the steam game’s web page.

wine start /d — Sets the working directory for the executable.

I apologise for combining multiple subjects but to me this is my first post to help others and this is a complicated issue but I hope my idea can be used effectively in a post.

NOTE For some very rediculous reason when i finish editing this post the windows command line bars shows only 1 \ at a time. They should have 2 for each typed. I can’t explain this otherwise.

Источник

wine: cannot find L”C:\\windows\\system32\\python.exe” #53

Comments

Copy link Quote reply

atipico commented Dec 29, 2015

Wine 1.9.0 Installed following steps from http://wiki.winehq.org/Ubuntu

This time, ActivePython installer was able to create

I don’t know if this is a problem related to Calibre or the DeDRM script, but, as we can see in the debug below, python.exe is called from the wrong path:
wine: cannot find L”C:\windows\system32\python.exe”
As I said above, the 64bit version installs the «python.exe» file under: «

Don’t know what I can do any further.

Would be a way to define the correct path to python.exe inside the DeDRM script?

rgr@atipico64: calibre-debug -g
calibre 1.25 isfrozen: False is64bit: True
Linux-3.13.0-74-generic-x86_64-with-Ubuntu-14.04-trusty Linux (’64bit’, ‘ELF’)
(‘Linux’, ‘3.13.0-74-generic’, ‘#118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015’)
Python 2.7.6
Linux: (‘Ubuntu’, ‘14.04’, ‘trusty’)
Starting up…
DEBUG: 0.0 obok::utilities.py – loading translations
DEBUG: 0.0 obok::dialogs.py – loading translations
DEBUG: 0.0 obok::config.py – loading translations
DEBUG: 0.0 using xml.etree for xml parsing
DEBUG: 0.0 obok::action_err.py – loading translations
Unable to open

/.mtpz-data for reading, MTPZ disabled.Started up in 1.37 seconds with 11 books
Worker Launch took: 0.0650780200958
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.3.4: Trying to decrypt B00BMWEFR4_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: The Boron Letters
Found 0 keys to try after 0.0 seconds
Crypto Type is: 2
DeDRM v6.3.4: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.3.4: Looking for new default Kindle Key after 0.0 seconds
DeDRM v6.3.4: Running kindlekey.py under Wine
DeDRM v6.3.4: Command line: “WINEPREFIX=”/home/rgr” wine python.exe “/home/rgr/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py” “/home/rgr/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir””
wine: cannot find L”C:\windows\system32\python.exe”
DeDRM v6.3.4: Found and decrypted 0 key files
DeDRM v6.3.4: Ultimately failed to decrypt after 1.1 seconds.
Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File “/usr/lib/calibre/calibre/customize/ui.py”, line 154, in _run_filetype_plugins
nfp = plugin.run(path_to_file)
File “calibre_plugins.dedrm.init”, line 590, in run
File “calibre_plugins.dedrm.init”, line 540, in KindleMobiDecrypt
DeDRMError: DeDRM v6.3.4: Ultimately failed to decrypt after 1.1 seconds

Added The Boron Letters to db in: 1.74273991585 seconds

Copy link Quote reply

atipico commented Jan 4, 2016

Changing the 2 occurrences of «python.exe» in the file «wineutils.py» by the correct path «C:\Python27\python.exe» I was able to overcome the error «wine: cannot find L”C:\windows\system32\python.exe”». However I continue to receive this error:

rgr@atipico64: calibre-debug -g
calibre 1.25 isfrozen: False is64bit: True
Linux-3.13.0-74-generic-x86_64-with-Ubuntu-14.04-trusty Linux (’64bit’, ‘ELF’)
(‘Linux’, ‘3.13.0-74-generic’, ‘#118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015’)
Python 2.7.6
Linux: (‘Ubuntu’, ‘14.04’, ‘trusty’)
Starting up.
DEBUG: 0.0 obok::utilities.py — loading translations
DEBUG: 0.0 obok::dialogs.py — loading translations
DEBUG: 0.0 obok::config.py — loading translations
DEBUG: 0.0 using xml.etree for xml parsing
DEBUG: 0.0 obok::action_err.py — loading translations
Unable to open

/.mtpz-data for reading, MTPZ disabled.Started up in 1.37 seconds with 11 books
Worker Launch took: 0.10120010376
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.3.4: Trying to decrypt B00BMWEFR4_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: The Boron Letters
Found 0 keys to try after 0.4 seconds
Crypto Type is: 2
DeDRM v6.3.4: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.3.4: Looking for new default Kindle Key after 0.4 seconds
DeDRM v6.3.4: Exception when getting default Kindle Key after 0.4 seconds
Traceback (most recent call last):
File «calibre_plugins.dedrm.init«, line 511, in KindleMobiDecrypt
File «/usr/lib/calibre/calibre/customize/zipplugin.py», line 175, in load_module
import_name), ‘exec’, dont_inherit=True)
File «calibre_plugins.dedrm.wineutils», line 31
cmdline = u»WINEPREFIX=»<2>» wine «C:\Python27\python.exe» «<0>» «<1>«».format(scriptpath,outdirpath,wineprefix)
^
SyntaxError: invalid syntax
DeDRM v6.3.4: Ultimately failed to decrypt after 0.4 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File «/usr/lib/calibre/calibre/customize/ui.py», line 154, in _run_filetype_plugins
nfp = plugin.run(path_to_file)
File «calibre_plugins.dedrm.init«, line 590, in run
File «calibre_plugins.dedrm.init«, line 540, in KindleMobiDecrypt
DeDRMError: DeDRM v6.3.4: Ultimately failed to decrypt after 0.4 seconds

Added The Boron Letters to db in: 1.9603509903 seconds

Copy link Quote reply

apprenticeharper commented Jan 6, 2016

That looks like it would work, except that you have not escaped the quotation marks around the path to python.exe, or the back slashes in the path. Try changing line 31 from

cmdline = u»WINEPREFIX=»<2>» wine «C:\Python27\python.exe» «<0>» «<1>«».format(scriptpath,outdirpath,wineprefix)

cmdline = u»WINEPREFIX=»<2>» wine «C:\Python27\python.exe» «<0>» «<1>«».format(scriptpath,outdirpath,wineprefix)

Copy link Quote reply

atipico commented Jan 6, 2016

Python.exe appears in line 31 and 33. But I tried the suggestion you made on 31 only and both lines. This is what I got respectively:

rgr@atipico64: calibre-debug -g
calibre 1.25 isfrozen: False is64bit: True
Linux-3.13.0-74-generic-x86_64-with-Ubuntu-14.04-trusty Linux (’64bit’, ‘ELF’)
(‘Linux’, ‘3.13.0-74-generic’, ‘#118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015’)
Python 2.7.6
Linux: (‘Ubuntu’, ‘14.04’, ‘trusty’)
Starting up.
DEBUG: 0.0 obok::utilities.py — loading translations
DEBUG: 0.0 obok::dialogs.py — loading translations
DEBUG: 0.0 obok::config.py — loading translations
DEBUG: 0.0 using xml.etree for xml parsing
DEBUG: 0.0 obok::action_err.py — loading translations
Unable to open

/.mtpz-data for reading, MTPZ disabled.Started up in 1.42 seconds with 11 books
Worker Launch took: 0.0667860507965
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.3.4: Trying to decrypt B00BMWEFR4_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: The Boron Letters
Found 0 keys to try after 0.0 seconds
Crypto Type is: 2
DeDRM v6.3.4: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.3.4: Looking for new default Kindle Key after 0.0 seconds
DeDRM v6.3.4: Exception when getting default Kindle Key after 0.0 seconds
Traceback (most recent call last):
File «calibre_plugins.dedrm.init«, line 511, in KindleMobiDecrypt
File «/usr/lib/calibre/calibre/customize/zipplugin.py», line 175, in load_module
import_name), ‘exec’, dont_inherit=True)
File «calibre_plugins.dedrm.wineutils», line 33
cmdline = u»wine «C:\Python27\python.exe» «<0>» «<1>«».format(scriptpath,outdirpath)
^
SyntaxError: invalid syntax
DeDRM v6.3.4: Ultimately failed to decrypt after 0.0 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File «/usr/lib/calibre/calibre/customize/ui.py», line 154, in _run_filetype_plugins
nfp = plugin.run(path_to_file)
File «calibre_plugins.dedrm.init«, line 590, in run
File «calibre_plugins.dedrm.init«, line 540, in KindleMobiDecrypt
DeDRMError: DeDRM v6.3.4: Ultimately failed to decrypt after 0.0 seconds

Added The Boron Letters to db in: 1.99438691139 seconds

rgr@atipico64: calibre-debug -g
calibre 1.25 isfrozen: False is64bit: True
Linux-3.13.0-74-generic-x86_64-with-Ubuntu-14.04-trusty Linux (’64bit’, ‘ELF’)
(‘Linux’, ‘3.13.0-74-generic’, ‘#118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015’)
Python 2.7.6
Linux: (‘Ubuntu’, ‘14.04’, ‘trusty’)
Starting up.
DEBUG: 0.0 obok::utilities.py — loading translations
DEBUG: 0.0 obok::dialogs.py — loading translations
DEBUG: 0.0 obok::config.py — loading translations
DEBUG: 0.0 using xml.etree for xml parsing
DEBUG: 0.0 obok::action_err.py — loading translations
Unable to open

/.mtpz-data for reading, MTPZ disabled.Started up in 1.38 seconds with 11 books
Worker Launch took: 0.0889258384705
Job: 1 Read metadata (0 of 1) finished
Read metadata (0 of 1)
DeDRM v6.3.4: Trying to decrypt B00BMWEFR4_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: The Boron Letters
Found 0 keys to try after 0.2 seconds
Crypto Type is: 2
DeDRM v6.3.4: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.3.4: Looking for new default Kindle Key after 0.2 seconds
DeDRM v6.3.4: Running kindlekey.py under Wine
DeDRM v6.3.4: Command line: “WINEPREFIX=»/var/www/teste.com» wine «C:\Python27\python.exe» «/home/rgr/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py» «/home/rgr/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir»”
wine: cannot find ‘C:\Python27\python.exe’
DeDRM v6.3.4: Found and decrypted 0 key files
DeDRM v6.3.4: Ultimately failed to decrypt after 0.7 seconds.
Read the FAQs at Alf’s blog: http://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File «/usr/lib/calibre/calibre/customize/ui.py», line 154, in _run_filetype_plugins
nfp = plugin.run(path_to_file)
File «calibre_plugins.dedrm.init«, line 590, in run
File «calibre_plugins.dedrm.init«, line 540, in KindleMobiDecrypt
DeDRMError: DeDRM v6.3.4: Ultimately failed to decrypt after 0.7 seconds

Added The Boron Letters to db in: 2.197026968 seconds

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Untrusted cert title mac os sierra
  • Unreal tournament для mac os
  • Unreal tournament 1999 mac os
  • Unix linux mac os
  • Universal clipboard mac os sierra