ubuntu更新失败,提示没有对应的Release文件

遇到的问题

  • 系统是ubuntu18.04,在使用sudo apt-get update更新时,发现更新失败,具体错误提示如下
忽略:1 https://download.sublimetext.com apt/stable/ InRelease
错误:2 https://download.sublimetext.com apt/stable/ Release                           
  Could not handshake: An unexpected TLS packet was received. [IP: 221.130.253.135 8080]
命中:3 http://mirrors.aliyun.com/ubuntu bionic InRelease                              
命中:4 http://packages.microsoft.com/repos/vscode stable InRelease                    
命中:5 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease                                          
命中:6 http://mirrors.aliyun.com/ubuntu bionic-security InRelease                                                 
忽略:7 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu bionic InRelease
命中:8 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease                              
命中:9 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease                             
错误:10 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu bionic Release            
  404  Not Found [IP: 221.130.253.135 8080]
命中:11 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease
正在读取软件包列表... 完成    
E: 仓库 “https://download.sublimetext.com apt/stable/ Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu bionic Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

解决方法

  • 进入到/etc/apt/sources.lisd.d目录
  • 根据错误提示删除对应的文件或目录,我这里根据上面的提示删除了sublimetext和webupd8team的对应文件。
  • 重新执行sudo apt-get update,更新成功
    2018-11-30

你可能感兴趣的:(ubuntu更新失败,提示没有对应的Release文件)