ubuntu16.o4 /etc/apt/sources.list --aliyun

本文介绍了如何将Ubuntu系统的软件源更换为阿里云镜像源,并提供了详细的步骤说明。包括备份原有源配置文件、编辑新的源配置信息以及执行系统更新等关键操作。


sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak


sudo  gedit /etc/apt/sources.list



deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
  deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
  deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
  deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
  deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
  deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
  deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
  deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
  deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
  deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse


sudo apt-get update&&sudo apt-get upgrade


##Just wait a second, and  that will be ok. Good luck :) Oh,by the way, the correct ubuntu-developement-code is needed. For example, "yakkety" is ubuntu 16.10,"vivid" is ubuntu 15.04, and... yeah, that's it.




sudo apt-get update && sudo apt-get install curl [sudo] teng 的密码: 命中:1 http://mirrors.aliyun.com/docker-ce/linux/ubuntu noble InRelease 命中:2 https://packages.microsoft.com/repos/edge stable InRelease 命中:3 https://packages.microsoft.com/repos/code stable InRelease 命中:4 http://cz.archive.ubuntu.com/ubuntu jammy InRelease 命中:5 http://gb.archive.ubuntu.com/ubuntu bionic InRelease 正在读取软件包列表... 完成 W: 目标 Packages (stable/binary-amd64/Packages) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Packages (stable/binary-all/Packages) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Translations (stable/i18n/Translation-zh_CN) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Translations (stable/i18n/Translation-zh) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Translations (stable/i18n/Translation-en) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 DEP-11 (stable/dep11/Components-amd64.yml) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 DEP-11 (stable/dep11/Components-all.yml) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 DEP-11-icons-small (stable/dep11/icons-48x48.tar) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 DEP-11-icons (stable/dep11/icons-64x64.tar) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 DEP-11-icons-hidpi (stable/dep11/icons-64x64@2.tar) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Contents-deb (stable/Contents-amd64) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Contents-deb (stable/Contents-all) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 CNF (stable/cnf/Commands-amd64) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 CNF (stable/cnf/Commands-all) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Packages (main/binary-amd64/Packages) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Packages (main/binary-all/Packages) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Translations (main/i18n/Translation-zh_CN) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Translations (main/i18n/Translation-zh) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Translations (main/i18n/Translation-en) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 DEP-11 (main/dep11/Components-amd64.yml) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 DEP-11 (main/dep11/Components-all.yml) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 DEP-11-icons-small (main/dep11/icons-48x48.tar) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 DEP-11-icons (main/dep11/icons-64x64.tar) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Contents-deb (main/Contents-amd64) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Contents-deb (main/Contents-all) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 CNF (main/cnf/Commands-amd64) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 CNF (main/cnf/Commands-all) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 N: 鉴于仓库 'https://packages.microsoft.com/repos/edge stable InRelease' 不支持 'i386' 体系结构,跳过配置文件 'main/binary-i386/Packages' 的获取。 N: 鉴于仓库 'https://packages.microsoft.com/repos/code stable InRelease' 不支持 'i386' 体系结构,跳过配置文件 'main/binary-i386/Packages' 的获取。 W: 目标 Packages (stable/binary-amd64/Packages) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Packages (stable/binary-all/Packages) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Translations (stable/i18n/Translation-zh_CN) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Translations (stable/i18n/Translation-zh) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Translations (stable/i18n/Translation-en) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 DEP-11 (stable/dep11/Components-amd64.yml) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 DEP-11 (stable/dep11/Components-all.yml) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 DEP-11-icons-small (stable/dep11/icons-48x48.tar) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 DEP-11-icons (stable/dep11/icons-64x64.tar) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 DEP-11-icons-hidpi (stable/dep11/icons-64x64@2.tar) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Contents-deb (stable/Contents-amd64) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Contents-deb (stable/Contents-all) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 CNF (stable/cnf/Commands-amd64) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 CNF (stable/cnf/Commands-all) 在 /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-noble.list:1 和 /etc/apt/sources.list.d/docker.list:1 中被配置了多次 W: 目标 Packages (main/binary-amd64/Packages) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Packages (main/binary-all/Packages) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Translations (main/i18n/Translation-zh_CN) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Translations (main/i18n/Translation-zh) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Translations (main/i18n/Translation-en) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 DEP-11 (main/dep11/Components-amd64.yml) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 DEP-11 (main/dep11/Components-all.yml) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 DEP-11-icons-small (main/dep11/icons-48x48.tar) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 DEP-11-icons (main/dep11/icons-64x64.tar) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Contents-deb (main/Contents-amd64) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 Contents-deb (main/Contents-all) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 CNF (main/cnf/Commands-amd64) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 W: 目标 CNF (main/cnf/Commands-all) 在 /etc/apt/sources.list.d/microsoft-edge.list:3 和 /etc/apt/sources.list.d/microsoft-edge.sources:1 中被配置了多次 N: 对‘https://packages.microsoft.com/repos/code’在 sources.list(5) 一项中缺失了 Signed-By 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是 因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件 包尚未被创建或是它们已被从新到(Incoming)目录移出。 下列信息可能会对解决问题有所帮助: 下列软件包有未满足的依赖关系: libcurl4t64 : 破坏: libcurl4 (< 8.5.0-2ubuntu10.6) E: 错误,pkgProblemResolver::Resolve 发生故障,这可能是有软件包被要求保持现状的缘故。
06-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值