安全攻防

坑-逆向工具集成

2017-08-12  本文已影响2人  泰克2008

1. E: Lists directory /var/lib/apt/lists/partial is missing.

解决思路是新建一个空白partial文件夹,使用IExploer连接手机,添加到指定目录,然后就可以执行apt-get update

2. E: Some index files failed to download, they have been ignored, or old ones used instead.

  1. 可以将目录下/var/lib/apt/lists/partial/所有的文件清掉
  2. $ sudo rm /var/lib/apt/lists/* -rf
  3. 再次运行apt-get update

3. Warning: You are using OS X 10.12.

在执行:

brew install --from-bottle https://raw.githubusercontent.com/Homebrew/homebrew-core/7a4dabfc1a2acd9f01a1670fde4f0094c4fb6ffa/Formula/dpkg.rb

出现了下边的提示:

Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.

后来查询了好多资料,发现需要更新Homebrew才能解决。
就是需要先执行:

brew update

执行成功后,再执行:

brew install --from-bottle https://raw.githubusercontent.com/Homebrew/homebrew-core/7a4dabfc1a2acd9f01a1670fde4f0094c4fb6ffa/Formula/dpkg.rb

最后执行:

brew pin dpkg

就完成了dpkg的安装

4. brew udpate出现错误“/usr/local is not writable.”的问题解决

如图所示:

417876-20170115155957947-153521621.png

在命令行输入:

sudo chown -R 当前登录的用户名 /usr/local

再次输入:

brew update

5. -sh: tail: command not found

在iPhone上监听log事件的时候:

tail -f /var/log/syslog

出现下面错误提示:

-sh: tail: command not found

经过百度,发现是iPhone中缺少Core Utilities,于是

在iPhone上使用Cydia搜索Core Utilities,并安装,即可。
上一篇下一篇

猜你喜欢

热点阅读