https://ocean.surfshark.com/debianstretchInRelease 的 apt-update 問題

https://ocean.surfshark.com/debianstretchInRelease 的 apt-update 問題

我面臨從 18.04 升級到 20.04 的問題 - 運行時apt-get update我得到

Err:2 https://ocean.surfshark.com/debian stretch InRelease            
 The following signatures were invalid: EXPKEYSIG 1DB7590E83C8F643
 Surfshark package maintainer <[email protected]>
W: GPG error: https://ocean.surfshark.com/debian stretch InRelease:
  The following signatures were invalid: EXPKEYSIG 1DB7590E83C8F643
  Surfshark package maintainer <[email protected]>
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.

儘管 surfshark 甚至沒有正確安裝並且已損壞。經過一番搜索後,我嘗試了各種方法來修復它,但它們對我不起作用,因為我無法獲得任何更新的 PPA 或 surfshark 密鑰。

答案1

https://support.surfshark.com/hc/en-us/articles/360017418334-如何設定-Surfshark-VPN-on-Linux-

然後按照步驟 1 和 2 進行操作(基本上,您正在下載並執行程式碼來安裝 surfshark)。注意:我不會貼上步驟 1 和 2,因為它們依賴於最新版本的 surfshark 的鏈接,並且此鏈接可能會隨著時間而變化。

這些步驟將使用有效的密鑰更新密鑰。

然後你可以“sudo apt update”,你會看到問題消失了。

註2:這適用於我的 Kubuntu 20.10

答案2

如果有問題的 PPA 現在對您來說不是什麼大問題,那麼它就能解決問題。問題主要是 Surfshark 不提供更新的 PPA/金鑰,且先前的 PPA/金鑰已過期,或用於該儲存庫的摘要演算法 sha-1 不再被認為是安全的。

首先運行ls /etc/apt/sources.list.d並找到 Surfshark PPA。由於 Surfshark 現在對我來說沒什麼大不了的,我只是運行dpkg --list(查找 Surfshark 的套件名稱)然後運行sudo apt-get purge {package-name}

它為我解決了問題,現在我可以做apt-get update 並且apt-get upgrade「以下軟體包已保留:」為什麼以及如何解決?這解決了我的問題

相關內容