您的位置:首页 > 产品设计 > UI/UE

Ubuntu 64位上jd-gui工具打开出现问题的解决方法

2014-08-11 16:22 405 查看
    最近在研究APK的反编译,前期搭建环境,下载dex2jar工具和jd-gui工具,dex2jar可以把apk包里的classes.dex文件反编译成jar文件了,但是我的jd-gui运行时却报错了,提示:

    error while loading shared libraries:

    libgtk-x11-2.0.so.0:cannot open shared object file: No such file or directory.

这个其实是amd64位兼容32位库的问题,网上有答案说 sudo apt-get install ia32-libs-gtk,但是我做了以后还是报错:

............

The following packages have unmet dependencies:

   ia32-libs:Denpens:ia32-libs-multiarch

后来我在外国一个网站上找到了解决方法,如下:

First a downgrade is required and done with the following: create the 'preferences' file:
sudo vi /etc/apt/preferences


and insert the following lines:
Package: *
Pin: release a=precise*
Pin-Priority: 2012


enter
:wq
 to
write the file. Pin-Priority must be greater than 1000.

Then you may downgrade the offending applications with:
sudo apt-get dist-upgrade


Then you may install packages that complained about dependencies, like 
sudo
apt-get install ia32-libs-multiarch
, or 
sudo
apt-get install ia32-libs
.

Finally, you should remove the file you just created:
sudo rm /etc/apt/preferences


because else no new updates would be found.

Hope this helps you too!

搞定,外国的人真牛逼,再次赞一下。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubuntu
相关文章推荐