apt update升级问题

sudo apt update 升级问题

我们在对设备软件库进行升级的时候常常会提示我们升级失败。某些软件只有我们在升级了软件库的时候才能下载。为此我们需要解决掉相关升级失败问题

错误:1 http://123.150.8.42:24031/intel v101 InRelease                          
  无法连接上 123.150.8.42:24031 (123.150.8.42),连接超时
错误:2 https://123.150.8.42:6788/intel_mirror intel InRelease                  
  无法连接上 123.150.8.42:6788 (123.150.8.42),连接超时
正在读取软件包列表... 完成                   
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
所有软件包均为最新。
W: 无法下载 http://123.150.8.42:24031/intel/dists/v101/InRelease  无法连接上 123.150.8.42:24031 (123.150.8.42),连接超时
W: 无法下载 https://123.150.8.42:6788/intel_mirror/dists/intel/InRelease  无法连接上 123.150.8.42:6788 (123.150.8.42),连接超时
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。

问题分析:远程连接访问请求失败。需要更换掉源。暂时可以考虑阿里源。
解决办法:可以利用vim等编辑器进入sources.list之后禁用默认的源,直接在默认源之前加入#即可。
#:sudo vim /etc/apt/sources.list
然后在sources.list里面添加以下内容(阿里云)

  • 阿里源

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  • 更新与升级
    #:sudo apt update
    #:sudo apt-get upgrade
    上面的顺序最好不要错乱
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值