sudo curl -x "http://127.0.0.1:8889" -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt -o=acquire::http::proxy="http://127.0.0.1:8889" update
sudo apt -o=acquire::http::proxy="http://127.0.0.1:8889" install brave-browser
注: curl -x "..."
和 apt -o=acquire::http::proxy="..."
作用相同
sudo vim /etc/apt/sources.list.d/brave-browser-release.list 注释掉这一行, 避免平时apt update不通
brave/chrome本质是GTK
而GTK的 file chooser dialog 实在是惨不忍睹……
遂改用 KDE