1. 程式人生 > >ubuntu下如何處理出現“ unable to execute ./DrClientLinux: No such file or directory”,“沒有那個檔案或目錄”的問題。

ubuntu下如何處理出現“ unable to execute ./DrClientLinux: No such file or directory”,“沒有那個檔案或目錄”的問題。

最近在重灌ubuntu的時候遇到了一個問題,因為在安裝的時候沒有連網,導致了沒有下載32位的庫,導致了沒法執行校園網的登入客戶端,因為那個客戶端是用32位寫的,所以出現了各種問題,經過L同學的幫助,最終弄好了,特意貼出程式碼,希望能夠幫助大家。千萬別遇到類似問題,不然會崩潰的。

udo ./DrClientLinux
[sudo] ytc 的密碼:
sudo: unable to execute ./DrClientLinux: No such file or directory


因為電腦不能連網,所以連上手機共享網路後,才能夠進行下載。
[email protected]:~/下載/051640340k8k/DrClient$ sudo apt-get update

在這一系列之後,再sudo可執行檔案,就會出現了其他的提示,按照錯誤的提示,一個一個敲完也就解決了。

[email protected]:~/下載/051640340k8k/DrClient$ ./DrClientLinux./DrClientLinux: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory
[email protected]:~/下載/051640340k8k/DrClient$ sudo apt-get install libSM.so.6



[email protected]
:~/下載/051640340k8k/DrClient$ ./DrClientLinux./DrClientLinux: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory [email protected]:~/下載/051640340k8k/DrClient$ sudo apt-get install libXft2.i386 [email protected]:~/下載/051640340k8k/DrClient$ ./DrClientLinux ./DrClientLinux: error while loading shared libraries: libXi.so.6: cannot open shared object file: No such file or directory
[email protected]
:~/下載/051640340k8k/DrClient$ sudo apt-get install libxi6:i386 [email protected]:~/下載/051640340k8k/DrClient$ ./DrClientLinux ./DrClientLinux: error while loading shared libraries: libXrender.so.1: cannot open shared object file: No such file or directory [email protected]:~/下載/051640340k8k/DrClient$ sudo apt-get install libXrender1:i386 [email protected]:~/下載/051640340k8k/DrClient$ ./DrClientLinux ./DrClientLinux: error while loading shared libraries: libXcursor.so.1: cannot open shared object file: No such file or directory [email protected]:~/下載/051640340k8k/DrClient$ sudo apt-get install libxcursor1:i386 [email protected]:~/下載/051640340k8k/DrClient$ ./DrClientLinux ./DrClientLinux: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory [email protected]:~/下載/051640340k8k/DrClient$ sudo apt-get install libxinerama1:i386 [email protected]:~/下載/051640340k8k/DrClient$ ./DrClientLinux ./DrClientLinux: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory [email protected]:~/下載/051640340k8k/DrClient$ sudo apt-get install libfreetype6:i386 [email protected]:~/下載/051640340k8k/DrClient$ ./DrClientLinux ./DrClientLinux: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory [email protected]:~/下載/051640340k8k/DrClient$ sudo apt-get install libfontconfig1:i386 [email protected]:~/下載/051640340k8k/DrClient$ ./DrClientLinux ./DrClientLinux: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory [email protected]:~/下載/051640340k8k/DrClient$ sudo apt-get install libstdc++6:i386 [email protected]:~/下載/051640340k8k/DrClient$ ./DrClientLinux
 按照錯誤提示一個一個的敲擊就行了,總之不要著急,方法總比困難多。