sudo apt update 命令的问题

sudo apt update 命令的问题

我在代理服务器上。当我sudo apt update在 Ubuntu 16.04 中执行时,请查看以下详细信息。

$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Ign:4 https://dl.bintray.com/sbt/debian  InRelease                            
Get:5 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Err:6 https://dl.bintray.com/sbt/debian  Release    
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Get:7 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [299 kB]
Get:9 http://de.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [195 kB]
Get:10 http://de.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [162 kB]
Hit:8 http://apt.llvm.org/trusty llvm-toolchain-trusty-3.7 InRelease          
Get:11 http://de.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [203 kB]
Ign:12 https://repo.iovisor.org/apt/xenial xenial-nightly InRelease
Get:13 http://de.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2.520 B]
Get:14 http://de.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3.328 B]
Hit:15 https://repo.iovisor.org/apt/xenial xenial-nightly Release
Get:16 http://de.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [3.976 B]
Ign:17 https://repo.iovisor.org/apt/xenial xenial-nightly Release.gpg
Reading package lists... Done
E: The repository 'https://dl.bintray.com/sbt/debian  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.

如何获得干净的再次从命令输出sudo apt update

提前感谢您的帮助。

答案1

如果你不需要这个sbt东西,你可以把它移除

在“设置”>“软件和更新”中选择第二个选项卡,即“其他软件”

选择条目https://dl.bintray.com/sbt/debian并单击删除


如果你只是想摆脱错误

使用sudo apt update --allow-insecure-repositories

答案2

您必须首先为存储库添加公钥

通过此链接下载密钥

https://bintray.com/user/downloadSubjectPublicKey?username=sbt

然后将其添加到 apt 使用

sudo apt-key add sbt-public.key.asc

然后更新

sudo apt update

相关内容