错误
Jetson Nano, Ubuntu 18.04 换源后在使用 apt 命令安装或更新时极出现了 “The following packages have unmet dependencies … Unable to correct problems, you have held broken packages” 的错误,无论是清华源、科大源还是阿里云。
暂时没有好的解决方案,只能换回原来备份的源。但是 ubuntu 的服务器在国外,而且 ports.ubuntu.com(arm 平台的 ubuntu 的仓库)速度比一般的 AMD(x86_64)平台的 ubuntu 的仓库还慢,因此就需要找到终端能走代理的方法了。
终端 SS
sudo add-apt-repository ppa:hzwhuang/ss-qt5
Ubuntu 16.04 以上的版本添加完该 ppa 源后 update 会报错,因为 ppa:hzwhuang/ss-qt5 并没有 18.04 版本的源。要将/etc/apt/sources.list.d/hzwhuang-ubuntu-ss-qt5-bionic.list
文件中的 “bionic” 改成 “xenial”。然后再执行
sudo apt-get update
sudo apt-get install shadowsocks-qt5
安装完后打开 ss,新建一个连接,测试延迟正常后,开始利用 polipo 使终端走代理(Chrome 走代理可以安装SwitchyOmega 插件)。
sudo apt-get install polipo
sudo gedit /etc/polipo/config
在文件末尾添加
socksParentProxy = "localhost:1080"
socksProxyType = socks5
logLevel=4
sudo service polipo start #运行软件
sudo apt-get install curl
http_proxy=http://localhost:8123 curl ip.sb #8123是polipo的默认端口
如果显示的 ip 是 SS 的 ip 就说明已经成功运行,大功告成!
命令举例:
sudo apt-get -o Acquire::http::Proxy="http://127.0.0.1:8123" update
发表回复