修改源配置文件
# 修改 apt-get 源的配置文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份
sudo vim /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
更新源
sudo apt-get update #更新列表
可能会报错:
Err:5 http://mirrors.aliyun.com/ubuntu trusty-backports InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F3
执行以下命令再重新更新
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 报错的publicKey
最后安装yum
sudo apt-get install yum
本文介绍了如何修改Ubuntu系统的apt-get源配置文件,使用阿里云镜像源,以及处理在更新过程中可能出现的publickey未验证的错误。通过备份源文件,替换为阿里云的镜像源地址,然后更新系统并解决公钥问题,最后安装yum。
5427

被折叠的 条评论
为什么被折叠?



