下载
中文
注册
Ubuntu18.04.1系统apt-get update,提示404问题

Ubuntu18.04.1系统apt-get update,提示404问题

2024/02/22

135

暂无评分
我要评分

问题信息

问题来源产品大类产品子类关键字
官方安装部署驱动固件A800-3000、Ubuntu、花屏

问题现象描述

ubuntu18.04.1系统执行apt-get update命令,提示404问题。如图1所示。

图1 404报错信息

原因分析

apt源存在问题,和网络无关。本机器的CPU是Arm架构,而获取的源是x86架构的,因此源匹配有误,报404错误。

解决措施

把阿里源or清华源的url里的ubuntu全部替换成ubuntu-ports,然后重新执行apt-get update命令。

有效源如下:

deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse

本页内容