Can't run winetricks

On a fresh installation of OpenSuse Tumbleweed I try to run winetricks and the result was issue with following text :


WINEPREFIX INFO:
Drive C: общо 0
drwxr-xr-x 1 ivonenchev users 24 4 авг 02:15 .
drwsrwsrwt 1 ivonenchev users 70 4 авг 08:36 ..
drwxr-xr-x 1 ivonenchev users 20 4 авг 02:15 users
drwxr-xr-x 1 ivonenchev users 46 4 авг 02:10 windows

Registry info:
/home/ivonenchev/.wine/system.reg:#arch=win64
/home/ivonenchev/.wine/user.reg:#arch=win64

wine cmd.exe /c echo '%ProgramFiles%' returned unexpanded string '%ProgramFiles%' ... this can be caused by a corrupt wineprefix (wineboot -u may help), by an old wine, or by not owning /home/ivonenchev/.wine. 

How can I fix it, because I need to use wine.

Try running

winecfg

What does that give you?

When I try to run winecfg, the result is issue with following text :

wine: Unhandled page fault on write access to 0x00000000 at address 0x7fe933f36245 (thread 000b), starting debugger...000b:err:seh:start_debugger Couldn't start debugger ("winedbg --auto 10 24") (2)
Read the Wine Developers Guide on how to set up winedbg or another debugger
0009:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
000d:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
000d:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
000d:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
000d:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
000d:err:ole:get_local_server_stream Failed: 80004002
0010:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)

Have you tried
wineboot -u?
If that doesn’t help use command

mv /home/ivonenchev/.wine /home/ivonenchev/.wine2

and try

winecfg

again.

  1. I run wineboot -u and the result is :
wine: Unhandled page fault on write access to 0x00000000 at address 0x7f7501a61245 (thread 000b), starting debugger...000b:err:seh:start_debugger Couldn't start debugger ("winedbg --auto 10 24") (2)
Read the Wine Developers Guide on how to set up winedbg or another debugger
wine: Unhandled page fault on write access to 0x00000000 at address 0x7f75f6a6c245 (thread 000d), starting debugger...
000d:err:seh:start_debugger Couldn't start debugger ("winedbg --auto 12 44") (2)
Read the Wine Developers Guide on how to set up winedbg or another debugger
  1. mv /home/ivonenchev/.wine /home/ivonenchev/.wine2

and try winecfg again, but the result was issue with follow text :

wine: Unhandled page fault on write access to 0x00000000 at address 0x7f7554b67245 (thread 000b), starting debugger...000b:err:seh:start_debugger Couldn't start debugger ("winedbg --auto 10 24") (2)
Read the Wine Developers Guide on how to set up winedbg or another debugger
0009:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
000d:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
000d:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
000d:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
000d:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
000d:err:ole:get_local_server_stream Failed: 80004002
0010:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)

But now I after all winecfg open the dialog window.

Possibly may have been a permissions error in the original .wine folder.

Not sure how that would have happened but if you need what was in what is now .wine2 you can change permissions - remove .wine and *mv /home/ivonenchev/.wine2 /home/ivonenchev/.wine *
Otherwise you can discard .wine2 and just use the new .wine folder.

Also not sure why you’re getting these errors but if winecfg now brings up the dialogue
can you run
winetricks
and continue normally?