ubuntu19.04 apt-get 更新失败解决方法

ubuntu19.04 apt-get 更新失败解决方法

Ubuntu19.04更新失败现象

最近不知这么的,突然想从kali切换到Ubuntu使用docker,于是下载一个Ubuntu19.04版本,安装好了肯定是先来一波更新,首先换个快一点的源

sudo gedit /etc/apt/sources.list

使用上面目录打开sources.list,然后使用百度来的阿里源替换,源如下;

#阿里云源
deb http://mirrors.aliyun.com/ubuntu/ disco main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ disco main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ disco-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ disco-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ disco-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ disco-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ disco-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ disco-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ disco-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ disco-proposed main restricted universe multiverse
sudo apt-get update

结果没怎么装逼了,就就给报错了

Ign:1 http://mirrors.aliyun.com/ubuntu disco InRelease
Ign:2 http://mirrors.aliyun.com/ubuntu disco-security InRelease
Ign:3 http://mirrors.aliyun.com/ubuntu disco-updates InRelease
Ign:4 http://mirrors.aliyun.com/ubuntu disco-backports InRelease
Ign:5 http://mirrors.aliyun.com/ubuntu disco-proposed InRelease
Err:6 http://mirrors.aliyun.com/ubuntu disco Release
  404  Not Found [IP: 111.51.82.239 80]
Err:7 http://mirrors.aliyun.com/ubuntu disco-security Release
  404  Not Found [IP: 111.51.82.239 80]
Err:8 http://mirrors.aliyun.com/ubuntu disco-updates Release
  404  Not Found [IP: 111.51.82.239 80]
Err:9 http://mirrors.aliyun.com/ubuntu disco-backports Release
  404  Not Found [IP: 111.51.82.239 80]
Err:10 http://mirrors.aliyun.com/ubuntu disco-proposed Release
  404  Not Found [IP: 111.51.82.239 80]
Reading package lists... Done
E: The repository 'http://mirrors.aliyun.com/ubuntu disco 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.
E: The repository 'http://mirrors.aliyun.com/ubuntu disco-security 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.
E: The repository 'http://mirrors.aliyun.com/ubuntu disco-updates 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.
E: The repository 'http://mirrors.aliyun.com/ubuntu disco-backports 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.
E: The repository 'http://mirrors.aliyun.com/ubuntu disco-proposed 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.

解决方法

打开浏览器,百度一下,谷歌两下,各种搜索,各种尝试,修改地区时间,修改dns,修改源为19.10等等直到把系统玩坏了终于找到原因了:小白的辛酸历程

原来的Ubuntu19.04太旧了,太旧了~ ~ 旧了 ~ ~
因此Ubuntu19.04从存档正式迁移到旧版本存储库中了,因此在更新的时候需要在替换几行源地址或者直接加在源文件后面

deb http://old-releases.ubuntu.com/ubuntu disco main restricted
deb http://old-releases.ubuntu.com/ubuntu disco-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu disco-security main restricted

总结

搞定了,安装个vim试试
在这里插入图片描述

  • 5
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值