linux下wine安裝成功後運行不了 err:process:init_windows_dirs directory L"C://windows__linux

來源:互聯網
上載者:User
 (1)假設我要運行windows下的a程式

[root@localhost ~]# wine a
err:process:init_windows_dirs directory L"C://windows" could not be created, error 2
err:process:init_windows_dirs directory L"C://windows//system32" could not be created, error 3
Warning: could not find DOS drive for current working directory '/root', starting in the Windows directory.
err:process:init_windows_dirs directory L"C://windows" could not be created, error 2
err:process:init_windows_dirs directory L"C://windows//system32" could not be created, error 3
Warning: could not find DOS drive for current working directory '/', starting in the Windows directory.

err:wineboot:main Cannot set the dir to L"C://windows" (2)
err:process:init_windows_dirs directory L"C://windows" could not be created, error 2
err:process:init_windows_dirs directory L"C://windows//system32" could not be created, error 3
Warning: could not find DOS drive for current working directory '/', starting in the Windows directory.
err:process:init_windows_dirs directory L"C://windows" could not be created, error 2
err:process:init_windows_dirs directory L"C://windows//system32" could not be created, error 3
Warning: could not find DOS drive for current working directory '/', starting in the Windows directory.
wine: could not load L"C://windows//system32//a.exe": Module not found

出現上面的錯誤

(2)然後我就運行下列命令([root@localhost ~]# 後為命令)
[root@localhost ~]# sudo rm -rf ~/.wine
[root@localhost ~]# apt-get remove --purge
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get --fix-broken install' to correct these.
The following packages have unmet dependencies:
booty: Depends: rhpl but it is not installable
hplip-gui: Depends: hplip (= 1.7.2-1)
redoffice-redhat-menus: Depends: redhat-release but it is not installable
E: Unmet dependencies. Try using --fix-broken.
[root@localhost ~]# sudo apt-get remove wine
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package wine
[root@localhost ~]# sudo apt-get remove --purge
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get --fix-broken install' to correct these.
The following packages have unmet dependencies:
booty: Depends: rhpl but it is not installable
hplip-gui: Depends: hplip (= 1.7.2-1)
redoffice-redhat-menus: Depends: redhat-release but it is not installable
E: Unmet dependencies. Try using --fix-broken.
[root@localhost ~]# apt-get --fix-broken install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following packages will be REMOVED:
booty hplip-gui redoffice-redhat-menus
0 upgraded, 0 newly installed, 3 removed and 0 not upgraded.
Need to get 0B of archives.
After unpacking 2516kB disk space will be freed.
Do you want to continue? [Y/n] y
Committing changes...
Preparing...                ########################################### [100%]
Could not parse file '/usr/share/applications/redoffice-3.0-math.desktop': No su
ch file or directory
***
* Updating MIME database in /usr/share/mime...
Wrote 474 strings at 20 - 2794
Wrote aliases at 2794 - 2968
Wrote parents at 2968 - 2fa8
Wrote literal globs at 2fa8 - 3004
Wrote suffix globs at 3004 - 62fc
Wrote full globs at 62fc - 6320
Wrote magic at 6320 - c248
Wrote namespace list at c248 - c258
***
Done.

(3)再運行[root@localhost ~]# wine a
出現:
wine: created the configuration directory '/root/.wine'
Could not load Mozilla. HTML rendering will be disabled.
wine: configuration in '/root/.wine' has been updated.
wine: could not load L"C://windows//system32//a.exe": Module not found

(4)然後再把你要安裝或者啟動並執行windows 的exe程式放到“/mnt/sda1/windows/system32”的目錄下,
然後再運行
[root@localhost exe]# wine QQ2007II/(7.1.643.400/).exe

就成功了。。。。。。。。。year。。。。。。。。。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.