4

I am facing a problem upgrading from 18.04 to 20.04 - while running apt-get update I am getting

Err:2 https://ocean.surfshark.com/debian stretch InRelease            
 The following signatures were invalid: EXPKEYSIG 1DB7590E83C8F643
 Surfshark package maintainer <admin@surfshark.com>
W: GPG error: https://ocean.surfshark.com/debian stretch InRelease:
  The following signatures were invalid: EXPKEYSIG 1DB7590E83C8F643
  Surfshark package maintainer <admin@surfshark.com>
E: The repository 'https://ocean.surfshark.com/debian stretch InRelease' is not signed.
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.

Though surfshark didn't even get installed properly and is broken. After some searching I tried various ways to fix it but they didn't work for me as I couldn't get any updated PPA or keys for surfshark.

Zanna
  • 72,312

2 Answers2

3

Go to https://support.surfshark.com/hc/en-us/articles/360017418334-How-to-set-up-Surfshark-VPN-on-Linux-

Then follow steps 1 and 2 (Basically you are downloading and running the code to install surfshark). Note: I am not pasting the steps 1 and 2 because they rely on a link to the most up to date version of surfshark, and this link may change with time.

These steps will update the keys with a valid one.

Then you can "sudo apt update" and you will see that the problem is gone.

Note2: This worked on my Kubuntu 20.10

0

It would solve the problem if the problematic PPA isn't a big deal for you now. The problem is mainly that Surfshark isn't providing updated PPA/key and the previous is expired or the digest algo sha-1 used for that repository is no longer considered safe.

First run ls /etc/apt/sources.list.d and find out the Surfshark PPA. As Surfshark is not a big deal for me now, I just ran dpkg --list (to find the package name for Surfshark) and the just run sudo apt-get purge {package-name}

It solved the problem for me and now I can do apt-get update and apt-get upgrade.and if you face problems now of "“The following packages have been kept back ..." then follow "The following packages have been kept back:" Why and how do I solve it? which solved the problem for mine