- First install the GPG public key for the repository so you can verify that the packages are correctly signed. The current public key id is 1AD28806 and its fingerprint is 4BA7 DB85 7B57 0089 7420 96E1 5F16 B97C 1AD2 8806:
wget -q -O - https://www.charlesproxy.com/packages/apt/PublicKey | sudo apt-key add -
- Then add the repository to your sources:
sudo sh -c 'echo deb https://www.charlesproxy.com/packages/apt/ charles-proxy main > /etc/apt/sources.list.d/charles.list'
- Then update your sources and install Charles:
sudo apt-get update sudo apt-get install charles-proxy
- 找到Charles打开
- 后续的注册及使用,请参考:Charles下载、安装、注册及使用
注意:在使用Charles时最好用root用户登录桌面操作,不然可能某些功能会限制,比如做代理时端口无法正常开放,具体解决方案请参考:Ubuntu 18.04.6 允许root用户登录桌面