关于ubuntu18.04安装WineHQ的APT解决方案
生活随笔
收集整理的這篇文章主要介紹了
关于ubuntu18.04安装WineHQ的APT解决方案
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
由于一些問題,導致使用WineHQ安裝帶來不必要的麻煩。俗話說:速度慢。本文主要解決ubuntu的apt走通道的方案,從而解決安裝慢的問題。
下載通道架設客戶端:
ubuntu shadow dxvk socksr s1s2sr backup
創建通道配置文件:
sudo gedit dxvk.json通道配置文件內容:
{"server": "0.0.0.0","server_ipv6": "::","server_port": 9427,"local_address": "127.0.0.1","local_port": 1080,"password": "password","method": "none","protocol": "auth_chain_a","protocol_param": "","obfs": "plain","obfs_param": "","speed_limit_per_con": 0,"speed_limit_per_user": 0,"additional_ports" : {}, // only works under multi-user mode"additional_ports_only" : false, // only works under multi-user mode"timeout": 120,"udp_timeout": 60,"dns_ipv6": false,"connect_verbose_info": 0,"redirect": "","fast_open": false }內容中部分參數需要自己配置:
"server_port":9427, //端口 "password":"password", //密碼"protocol":"auth_chain_a", //協議插件"obfs":"plain", //混淆插件"method":"none", //加密方式啟動通道(審核問題自行百度):
python ~/local.py -c dxvk.json如果出現找不到python:
sudo ln /usr/bin/python3 /usr/bin/python這里我用一個軟鏈接把 python3 鏈接到 python 上
通道默認支持Socks5協議的,對于Terminal的get,wget等走http協議的地方是無能為力的,所以需要轉換成http代理,加強通用性,這里使用的轉換方法是基于Polipo的。
sudo apt-get install polipo # 安裝Polipo sudo gedit /etc/polipo/config # 修改配置文件配置文件內容:
# This file only needs to list configuration variables that deviate # from the default values. See /usr/share/doc/polipo/examples/config.sample # and "polipo -v" for variables you can tweak and further information. logSyslog = false logFile = "/var/log/polipo/polipo.log"socksParentProxy = "127.0.0.1:1080" socksProxyType = socks5chunkHighMark = 50331648 objectHighMark = 16384serverMaxSlots = 64 serverSlots = 16 serverSlots1 = 32proxyAddress = "0.0.0.0" proxyPort = 2578Polipo默認端口為:8123 可以自行修改
重啟Polipo:
驗證代理是否正常工作:
export http_proxy="http://127.0.0.1:2578/" curl www.google.com如果需要apt走通道(這樣sudo apt-get update或者sudo apt-get install走的就是通道了。):
echo -e "Acquire::http::Proxy \"http://127.0.0.1:1090\";" | sudo tee -a /etc/apt/apt.conf > /dev/nullecho -e "Acquire::https::Proxy \"http://127.0.0.1:1090\";" | sudo tee -a /etc/apt/apt.conf > /dev/null解除apt走通道:
sudo sed -i -e '/Acquire::http::Proxy/d' /etc/apt/apt.confsudo sed -i -e '/Acquire::https::Proxy/d' /etc/apt/apt.conf本文主要是解決ubuntu18.04安裝wineHQ也就是:
sudo apt install --install-recommends winehq-stable速度及其緩慢的問題。23MB的包要用5個小時,真的是要了老命了。還請審核哥放過。
審核老哥我們談談:這玩意我百度上面大把的是。況且我這個只是一個教程。都不含節點。為什么這么敏感嘛。改好了。沒含關鍵字符了。
總結
以上是生活随笔為你收集整理的关于ubuntu18.04安装WineHQ的APT解决方案的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: chromeOS安装WineHQ
- 下一篇: 实训——智慧养老之画布1