Ubuntu18.04安装shadowSocks-qt5

"Ubuntu18.04安装shadowSocks-qt5"

Posted by Stephen on February 10, 2020

前言

Ubuntu16.04安装shadowSocks-qt5正常步骤是这样的

sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5

但是在18.04中出现了问题

Err:8 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release           
  404  Not Found [IP: 91.189.95.83 80]                             
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

原因:ppa:hzwhuang/ss-qt5 并没有18.04版本的源

环境

系统环境

Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.4 LTS
Release:	18.04
Codename:	bionic
Linux version :       5.3.0-46-generic ( buildd@lcy01-amd64-013 ) 
Gcc version:         7.5.0  ( Ubuntu 7.5.0-3ubuntu1~18.04 )

软件信息

version : 	shadowSocks-qt5

解决方法

  1. 修改sources.list.d/hzwhuang-ubuntu-ss-qt5-bionic.list的内容
    sudo gedit /etc/apt/sources.list.d/hzwhuang-ubuntu-ss-qt5-bionic.list
    
  2. 将bionic(18.04版本代号)改成xenial(16.04版本代号)
    deb http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu xenial main
    # deb-src http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu xenial main
    # deb-src http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu xenial main
    
  3. 最后再更新即可
    sudo apt-get update
    sudo apt-get install shadowsocks-qt5