I'm trying to get to work Wine on my Ubuntu 12.04 64-bit installation. Previously I used to have Wine 1.4, on which I've experienced the same problem and which I've had purged. Reinstalling Wine doesn't help.
The problem is, Wine can't run any programs, beginning with the winecfg itself. It returns following error:
err:module:attach_process_dlls "gdi32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winecfg.exe" failed, status c0000005
What can be the cause? Version of Wine? Version of Ubuntu? Lacking packages? Some software conflict?
pamirocha@Piotr05:~$ winecfg
wine: created the configuration directory '/home/pamirocha/.wine'
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:iphlpapi:NotifyAddrChange (Handle 0xd9e258, overlapped 0xd9e270): stub
err:module:attach_process_dlls "gdi32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\rundll32.exe" failed, status c0000005
wine: configuration in '/home/pamirocha/.wine' has been updated.
err:module:attach_process_dlls "gdi32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winecfg.exe" failed, status c0000005