解决方案如下:
Remove the Ethereum repository first:
sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test sudo apt update
Remove imported GPG key:
sudo apt-key del 1E9377A2BA9EF27F
Import GPG key of the Ethereum repo again:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
Add repository again:
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test sudo apt update
UPDATE
Remove the Ethereum repository again:
sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test sudo apt update
Remove imported GPG key:
sudo apt-key del 1E9377A2BA9EF27F
Try
gpg --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
and next
gpg --export --armor 1E9377A2BA9EF27F | sudo apt-key add -
Add repository for Debian/Ubuntu:(这里最好还是改成上面的https,下载速度快)
echo -e "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-groovy.list
Update apt:
sudo apt update
Install software you want from the ppa:ubuntu-toolchain-r repository.