Ubuntu系统无法update更新 更换阿里云更新源
![]() | ![]() | ![]() | ![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |

今天蜗牛有在Ubuntu系统中安装软件,应该是因为系统比较老有的软件无法直接apt-get安装,于是通过update更新最新到最新版本发现有错误。我们需要更换源才能解决更新问题,这里找到阿里云Ubuntu源直接替换掉后是可以使用的。当然,需要将有用的内容分享出来以便以后需要用到直接参考。
在蜗牛之前文章中有分享过\\”CentOS替换阿里云yum源解决无法update问题\\”和\\”解决Debian系统apt-get更新官方源失败 替换163源的方法\\”,如果是需要CentOS和Debian环境的可以参考,这里是Ubuntu系统。
第一、备份原有源文件
cp /etc/apt/sources.list /etc/apt/sources.list.bak
第二、修改系统源
/etc/apt/sources.list
编辑文件,将里面内容全部删除,然后替换下面内容。
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
第三、再次更新执行
apt-get update -y
执行后还有报错,根据最后几行出现的错误提示,然后执行下面的。
apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
根据各自的提示报错更换,因为不同机器报错不同的。
最后,再次更新
再次执行apt-get update -y更新系统,最后是没有报错的。
猜你可能想看的VPS
- SkylonHost→€4.99 月 2 核 3GB 内存 35GB S虚拟空间(主机)
- HostUS→OpenVZ 年付 16 美元起 KVM 月付 5.56 全球[VPS测评]
- AkkoCloud→99 元 月 1GB 内存 10GB SSD 空间 虚拟空间(主机)
- Domeny.pl→.pl .com.pl .edu.pl .site 全球[VPS测评]
- DMIT→$14.9 月 洛杉矶 CN2 GIA VPS 1GB 内存 全球[VPS测评]
- 搬瓦工 DC6 限量版补货→美国 CN2 GIA Zenlayer 线路美国VPS[主机]
- 晚高峰不行-Sharedspace→$4.46 月 1 核 1G 内存 全球[VPS测评]
- 禁止 layer.msg()在回调时抖动全球[VPS测评]
- CoalCloud→128 元 年 384MB 内存 8GB SSD 空虚拟空间(主机)
- hostworld→£1.99 月 10GB SSD 空间 不限流量 D虚拟空间(主机)
- [黑五]tudcloud 全站 VPS 年付 6 折 半年付 7 折 独独立服务器[U]
- 稳定 HostDare→1 核 756M 内存 150G 硬盘 600G全球[VPS测评]
- JQuery 获取 select 选中项的文本与值全球[VPS测评]
- 补货通知 搬瓦工 CN2 GIA 线路$46.87 年机器补货了 速度抢全球[VPS测评]
- 宝塔面板免费版如何开启 waf 防火墙全球[VPS测评]
- NameCheap和华为云618域名注册优惠力度大 .com域名最低仅1全球[VPS测评]
- 咕咕云 → 1500元 年 苏日IPLC 1C2GB20GB硬盘 1T流独立服务器[U]
- HKServerSolution 4核心 4G内存 20G SSD 3T全球[VPS测评]
- 快速云:云服务器和vps区别是什么云服务器和vps哪个比较安全2022-全球[VPS测评]
- 因搜包耽误员工下班,苹果将支付3050万美元赔款全球[VPS测评]
- 云服务器和云服务器租用,云服务器做什么??全球[VPS测评]
- 金斗云双12活动:全场8折起,美国圣何塞CN2 GIA高防VPS20元/美国VPS[主机]
- SugarHosts:虚拟主机三折起,VPS五折起,续费也可以享受优惠全球[VPS测评]
- 中行升级服务力促跨境电商发展全球[VPS测评]
- 轻云互联,香港VPS月付22元 美国VPS月付19元美国VPS[主机]
- JGKVM促销,美国cn2vps服务器价格再创新低,平均6.5元/月起美国VPS[主机]
- 硅云服务器拼团活动:香港云服务器1核1G,拼团价仅98元/年香港VPS[主机]
- 互盟云怎么样?1核2G云服务器仅468元/年,香港云主机58元/月香港VPS[主机]
- 福州职业技术学院获得世界职业院校技能大赛云计算赛项银牌全球[VPS测评]
- 1分钟快速读懂云计算全球[VPS测评]
转载请注明原文地址:http://140.238.13.167:12355/read-143464.html











