ubuntu官方国内源

2023-05-16

背景

之前我一直在使用中科大的源,还是挺快的。一直也没有感觉有什么问题。直到最近在折腾vnc,发现中科大的源有一些包会404,安装不了。而我在vmware中的正好是默认的cn.archive.ubuntu.com国内的源,毕竟是官方国内镜像的嘛。对应的包不会出现404,我干脆就换官方的了。

使用方法

修改
/etc/apt/sources.list
清空原有内容,加入内容如下 :

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu focal main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu focal-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu focal universe
# deb-src http://cn.archive.ubuntu.com/ubuntu focal universe
deb http://cn.archive.ubuntu.com/ubuntu focal-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu focal multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu focal multiverse
deb http://cn.archive.ubuntu.com/ubuntu focal-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

deb http://cn.archive.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu focal-security main restricted
deb http://cn.archive.ubuntu.com/ubuntu focal-security universe
# deb-src http://cn.archive.ubuntu.com/ubuntu focal-security universe
deb http://cn.archive.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu focal-security multiverse

然后在执行一下

apt-get update
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

ubuntu官方国内源 的相关文章

随机推荐

  • macOS平铺窗口yabai配置分享

    简介 yabai 是一个窗口管理实用程序 xff0c 旨在作为 macOS 内置窗口管理器的扩展工作 yabai 允许您使用直观的命令行界面自由控制窗口 空间和显示 xff0c 并可选择使用设置用户定义的键盘快捷键 skhd和其他第三方软件
  • Netty入门案例——Netty实现websocket

    文章目录 一 服务端二 网页 一 服务端 span class token keyword import span span class token namespace io span class token punctuation spa
  • React Navigation中使用typescript简洁演示代码

    最近在尝试转到typescript xff0c 之前代码中含有的大量 navigaiton any近期打算把这样的代码优化一下 参考以下文档 xff1a https reactnavigation org docs typescript 尽
  • Linux新磁盘挂载到/home目录

    经常会遇到服务用着用着发现空间不够啦 xff01 怎么办呢 xff1f 备份数据 61 使用更大的磁盘重新安装系统 61 转移数据 这样太麻烦了 xff0c 如果是生产环境 xff0c 还要停机 增加新的磁盘 这里我选择方法 2 空间不足时
  • ReactNative AsyncLocalStorageUtil is defined multiple times

    ios运行正常 xff0c 在android下运行报错如下 xff1a AS 编译报错 Type com reactnativecommunity asyncstorage AsyncLocalStorageUtil is defined
  • React Native项目gradle手动编译

    最近在折腾 xff0c 远程开发React Native 项目 xff0c 我想实现在ssh命令行中 在服务器上自动编译RN 项目 xff08 android xff09 xff0c 这样就可以使用高速的服务器来编译项目 正解 cd and
  • Docker使用笔记

    软件安装 https docs docker com engine install ubuntu 下载镜像 span class token function docker span pull ubuntu 创建一个CONTAINER 示例
  • ubuntu编译安装最新的tmux

    通过apt get安装的tmux版本比较旧 xff0c 我喜欢使用最新的版本 那就自己编译安装一下吧 很简单 xff0c 耗时1分钟左右 环境 操作系统 xff1a Ubuntu 20 04 3 LTS 安装的tmux版本 xff1a tm
  • Ubuntu Linux 更改主机名(hostname)

    操作 编辑 etc hostname文件 span class token function vim span etc hostname 文件内容修改成自己想要的名称 修改完后 xff0c 重启机器就生效了 span class token
  • docker文件目录迁移

    docker默认存放路径是 var lib docker xff0c 按理来说没有什么问题 但是在我安装操作系统时 xff0c 分区空间分的太少了 xff08 50G xff09 但是 home目录就非常大了 所以我想把docker的默认路
  • ubuntu开启ssh服务

    环境 我的测试环境是 xff1a docker中的Ubuntu 20 04 3 LTS 安装openssh server span class token function sudo span span class token functi
  • neovim无法中文显示的问题

    场景 中文的语言环境 xff0c 其他支持中文的程序 正常能显示中文 xff0c 比如 date xff0c vim都可以支持中文 就neovim显示的是英文 我下载的neovim是全功能的版本 xff0c 支持中文的 所以排除软件的原因
  • Netty使用Google Protobuf进行编解码

    文章目录 一 概述1 编解码基础2 Netty编解码器3 Protobuf概述 二 Protobuf基本使用1 引入jar包2 下载Protobuf3 编写Student proto4 生成StudentPOJO类5 服务器端6 客户端7
  • ranger没有那个文件或目录: ‘screen‘: ‘screen‘

    背景 首先ranger是正常安装 xff0c 正常环境下也是可以正常使用的 当我在tmux中使用ssh远程 xff0c 然后使用ssh远程的机器中的ranger xff0c 就发现ranger打开报错了 嵌套层级 xff1a tmux ss
  • ubuntu搭建nvim开发环境准备工作

    以下代码 xff0c 仅供方便复制使用的 想了解细节 xff0c 可以参考 xff1a windows10安装子系统Ubuntu 20 04 https blog csdn net lxyoucan article details 1198
  • Failed to execute child process “dbus-launch“

    场景 在ubuntu中搭建vnc桌面环境 xff0c 安装 Minimal Xfce Desktop span class token comment 精简安装 span span class token function sudo spa
  • ubuntu图形界面乱码解决办法

    现象 ubuntu的vnc远程桌面中出现了一些乱码 原因分析 从上图中可以看出英文显示正常 xff0c 那么可以判断应该是中文乱码导致的 应该是系统中没有安装中文字体导致 解决办法 方法1 xff1a 使用英文的界面 xff0c 但是我还是
  • Kylin V10 SP1(ubuntu)编译安装python3新版本

    系统自带的python太旧了 xff0c 所以想编译安装最新版本的python 环境 span class token function cat span etc release span class token assign left v
  • docker容器安装图形桌面

    文章目录 视频教程版本信息创建一个CONTAINERubuntu官方国内源docker镜像unminimize中文环境设置中文环境 安装安装TigerVNC Server安装 xfce4精简版本 配置设置vnc密码 vnc xstartup
  • ubuntu官方国内源

    背景 之前我一直在使用中科大的源 xff0c 还是挺快的 一直也没有感觉有什么问题 直到最近在折腾vnc xff0c 发现中科大的源有一些包会404 xff0c 安装不了 而我在vmware中的正好是默认的cn archive ubuntu