-
Linux Ubuntu镜像下载
2018-09-29 15:49:47综述 虚拟机大家都用过,就在我要用的时候,突然发现把原来的镜像搞丢了,找了一个比较快的镜像站点: http://mirrors.ustc.edu.cn展开全文 -
阿里云 linux Ubuntu 镜像系统 访问不到服务器
2019-12-31 10:35:49用的阿里云的Ubuntu服务器,想镜像这个服务器A到另一台服务器B上,镜像之后,发现Shell连不上这个B服务器,好嘛,找阿里客服吧 客服的回复: 意思就是,现在A服务器网络是用的静态地址,所以镜像到B服务器之后,...用的阿里云的Ubuntu服务器,想镜像这个服务器A到另一台服务器B上,镜像之后,发现Shell连不上这个B服务器,好嘛,找阿里客服吧
客服的回复:意思就是,现在A服务器网络是用的静态地址,所以镜像到B服务器之后,这个静态地址对于B来说是无效的。
那么
1. 修改A服务器的网络获取方式为自动获取(dhcp方式获取),然后再重新镜像A到B服务器就行了,镜像成功之后,B的网络地址就是自动获取的了;
2. 也可以直接VNC 远程到B服务器直接修改dhcp。
怎么修改为dhcp方式,百度或阿里客服吧
-
DeepinLinux添加Ubuntu镜像源
2020-02-09 04:24:36想在DeepinLinux下装个Anbox玩玩,奈何需要依赖的许多包Deepin源中并没有,记录一下怎么添加Ubuntu官方的源 添加.list配置文件 $ sudo vim /etc/apt/sources.list.d/ubuntu.list 这里使用Ubuntu 18.04的阿里镜像 ...想在DeepinLinux下装个
Anbox
玩玩,奈何需要依赖的许多包Deepin源中并没有,记录一下怎么添加Ubuntu官方的源添加
.list
配置文件$ sudo vim /etc/apt/sources.list.d/ubuntu.list
这里使用
Ubuntu 18.04
的阿里镜像deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
添加GPG认证
只添加
.list
后是无法直接使用的,运行$ sudo apt update
会出现下面的错误W: GPG 错误:http://mirrors.aliyun.com/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 3B4FE6ACC0B21F32 E: 仓库 “http://mirrors.aliyun.com/ubuntu bionic InRelease” 没有数字签名。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
下面开始添加GPG认证:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
注意最后
--recv-keys
后面的内容应当与上面报错提示中的签名内容一致。运行上面命令可能还会出现下面的错误提示:
Executing: /tmp/apt-key-gpghome.mUSQrTHCck/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 gpg: failed to start the dirmngr '/usr/bin/dirmngr': 没有那个文件或目录 gpg: connecting dirmngr at '/tmp/apt-key-gpghome.mUSQrTHCck/S.dirmngr' failed: 没有那个文件或目录 gpg: keyserver receive failed: No dirmngr
这是缺少
dirmngr
命令,直接apt装一下就行$ sudo apt install -y dirmngr
-
ubuntu镜像源更换_【Linux】Ubuntu更换镜像源
2021-01-12 19:36:01关键字:ubuntu、镜像源、apt-get、速度慢、无法更新源1 前言现在微软正以前所未有的积极性主动拥抱多元化的开源世界,从参与各种开源社区到用巨大财力收购Github,都可以体现其开源的决心。基于Windows推出的WSL...关键字:ubuntu、镜像源、apt-get、速度慢、无法更新源
1 前言
现在微软正以前所未有的积极性主动拥抱多元化的开源世界,从参与各种开源社区到用巨大财力收购Github,都可以体现其开源的决心。基于Windows推出的WSL(Windows Subsystem for Linux)适用于Linux的Windows子系统,可以说Windows是最强的Linux发行版。现在完全可以使用Visual Studio Code在Windows下编辑,然后在WSL下进行编译,浑然一体。在做好WSL的相关准备以及配置后,Ubuntu也成功运行在Windows下运行起来,然而在国内特殊的环境下去更新Ubuntu的相关软件速度实在是慢得可怜,这时候就必须更换一下Ubuntu的镜像源。
2 环境
操作系统:Microsoft Windows 10
WSL:Ubuntu 20.04.1 LTS
系统工具:Windows Terminal
3 具体方法
3.1 确认版本
首先需要确认Ubuntu的发行版本,这一步非常重要,如果只是搜索一下到哪个文章复制粘贴镜像源文本去单纯地替换原镜像源就会产生奇怪的问题,使用如下命令:
lsb_release -a
可以得到当前系统发行版本的相关信息:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
值得一提的是不同的Ubuntu发行版本要不同的代号,以下列举部分LTS版本代号:
Ubuntu 16.04:xenial
Ubuntu 17.04:zesty
Ubuntu 18.04:bionic
Ubuntu 19.04:disco
Ubuntu 20.04:focal
3.2 修改镜像源
镜像源地址:/etc/apt/sources.list
修改镜像源前先备份一下原来的镜像源,防止以后出现什么问题不好回退,使用命令:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
查看原来的镜像源文本cat /etc/apt/sources.list:
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://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://archive.ubuntu.com/ubuntu/ focal universe
# deb-src http://archive.ubuntu.com/ubuntu/ focal universe
deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
# deb-src http://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://archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ focal multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://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://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://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://security.ubuntu.com/ubuntu/ focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted
deb http://security.ubuntu.com/ubuntu/ focal-security universe
# deb-src http://security.ubuntu.com/ubuntu/ focal-security universe
deb http://security.ubuntu.com/ubuntu/ focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu/ focal-security multiverse
使用sudo vim /etc/apt/sources.list将其中的网址替换为国内稳定的镜像源即可,国内较为稳定的镜像源网址如下:
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
3.3 更新镜像源
设置好Ubuntu镜像源之后需要更新:
sudo apt-get update
否则在使用sudo apt-get install upgrade命令时会提示错误Unable to locate package upgrade。
4 遇到的问题
目前网上大多数的文章都是Ubuntu 18.04 LTS发行版本,这次安装的Ubuntu是20.04 LTS版本,然后直接去复制网上的国内镜像源文本,导致软件更新出现了问题。错误的镜像源:
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
并不是说这个镜像源不对,只是这个不适用于Ubuntu 20.04 LTS,一开始更新与安装还挺正常的没有在意,但在后面安装GNU GCC去编译的时候就出现了问题,直接提示找不到头文件stdio.h,差一点去重装WSL。后面在网上找了半天才找到了解决方案,为了避免其他人踩坑,把这个问题记录下来,以供参考。如果出现了描述的问题,可使用如下方法解决:
# 1.删除 /var/lib/apt/lists/所有文件夹
sudo rm -rf /var/lib/apt/lists/*
# 2.删除 /var/lib/apt/lists/所有文件
sudo rm /var/lib/apt/lists/* -vf
# 3.修改镜像源为当前Ubuntu版本适用的国内镜像源
# 4.更新镜像源
sudo apt-get update
sudo apt-get install upgrade
5 参考文章
-
Ubuntu Linux镜像下载
2015-10-14 16:52:14Ubuntu Linux镜像下载 ubuntu官方: ubuntu CD镜像:http://releases.ubuntu.com/ ubuntu DVD镜像:http://cdimage.ubuntu.com/releases/ ubuntu中国版:http://china-images.ubuntu.com/ 国内镜像... -
pe制作linux硬盘的镜像文件_Linux Ubuntu 18.04安装教程 linux系统Ubuntu安装教程详解...
2020-12-30 16:37:05Linux Ubuntu 18.04安装教程linux系统Ubuntu安装教程详解软件大小:1.8GB更新时间:20190520软件语言:简体中文制作发行:Ubuntu软件分类:电脑系统运行支持:64位使用平台:Linux运行环境:Linux Ubuntu软件介绍Soft ... -
ubuntu linux镜像下载
2012-10-10 18:49:08这是个word文档,文档里面有ubuntu linux的镜像下载地址,我就是在这里面提供的网站上下载的,在这个地址里有各种版本的ubuntu,支持32位和64位,下载文档,打开就能看到网站的地址。 -
Linux系统安装ubuntu镜像以及命令
2020-12-09 18:04:45系统选择Linux,版本选择Ubuntu64位 编辑虚拟机名称和选择安装位置,然后点击下一步 这里设置磁盘文件大小,注意并不是设置多大就马上会扣除物理机多大的空间,是你用多少扣除多少,不用就不扣。 点击完成创建就... -
Linux---Linux中Ubuntu镜像之下搭建FTP服务
2020-08-15 11:10:46前言;在学习了Linux之后,细想一下其实Linux也就相当于一个服务器,我们也就相当于一个客户端,我们也可以进行数据的交互,那么本篇博文咱们就一起去搭建FTP服务器。 -
linux ubuntu 本地镜像 软件源 制作方法
2015-07-14 08:12:001、配置当前软件源,镜像非常大,所以首先要配置一下载速度快的软件源http://fffo.blog.163.com/blog/static/2119130682014322104136601/2、安装镜像软件 并 修改镜像参数文件1)、安装apt-mirrorsudo apt-get ... -
linux镜像安装mysql_解决Docker中ubuntu镜像安装MySQL
2021-02-01 09:43:32前言今天实在时有空,了解过MySQL主从复制,虽然很简单,但是也要配置配置测试测试,想要至少两台的MySQL服务器,然而第一方法想到的就是Docker跑ubuntu容器,在ubuntu里面安装MySQL服务,虽然也可以使用腾云云... -
网上最详细安装教程linux ubuntu 16.04 附带镜像资源
2020-09-04 18:13:05下载镜像linux ubuntu 16.04 如果你会在官方下载镜像,那就用官方的吧。 官方地址: 也可以用我给的百度网盘链接 使用UItralISO 也就是软碟通 制作U盘启动盘 (4G以上) 啥?你不会? 软碟通使用教程百度的教学 接... -
ubuntu镜像源更换_修改ubuntu镜像源
2021-01-12 19:36:35==================查看当前版本:lsb_release -a uname -a 查看linux系统版本:cat /etc/issue========修改apk镜像源sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositoriesapk update #... -
Ubuntu Linux镜像U盘写入工具
2018-04-18 11:02:21Ubuntu安装光盘镜像文件,写入U盘工具,分为 64位、32位,可以用来解决用其他工具写入U盘后出现安装失败的问题。 -
linux-ubuntudocker镜像配置php和nginx
2019-08-13 18:03:39ubuntu docker 镜像配置php和nginx -
Linux-Ubuntu更改镜像源
2021-01-25 23:48:592、更改镜像源 清华镜像源: deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb ... -
linux 安装ubuntu的镜像地址
2020-09-13 14:46:16linux 安装ubuntu的镜像地址: 1、http://mirrors.aliyun.com/ubuntu/ 2、http://archive.ubuntu.com/ubuntu/ -
Ubuntu 镜像文件
2020-09-26 11:19:20** Ubuntu 镜像文件 1 ...本文我就主要为大家介绍一下国内的一些比较好用、更新及时的Ubuntu镜像站点并附上下载链接,大家可以根据自己的需要自由选择。 首先,给大家贴一下官方的下载地址: 官方地址:https -
ubuntu镜像U盘制作(linux)
2013-12-28 19:17:52参考http://wiki.ubuntu.hk/w/Create_bootable_Live_USB_drive_with_UNetBootin 下载镜像 sudo apt-get install unetbootin Dash主页找到unetbootin 选择自己的iso 选择U盘 烧写 -
Ubuntu 镜像下载
2017-12-05 11:30:55在众多的linux操作系统中,Ubuntu(乌班图)是目前主流的linux操作系统。而绝大部分新手网友要接触linux或使用linux操作系统,当然是首选Ubuntu(乌班图)linux操作系统。因为Ubuntu系统绝大部分是图形化操作,很少...
-
数据库知识
-
linux基础入门和项目实战部署系列课程
-
生物多样性:普通干酪-源码
-
Nu-Link烧录程序
-
Workspaces can only be enabled in private projects.
-
Discordzada:我的第一个Discord.py Bot存储库-源码
-
kunalsumblyblog-源码
-
【硬核】一线Python程序员实战经验分享(1)
-
JQuery中的筛选
-
JavaCollectionFramework_2-源码
-
lodashjs _.compact
-
conda 指令
-
大数据实体解析:大数据实体解析-源码
-
SOA反模式
-
data-analysis-using-python:使用Python进行数据分析:具有NYC开放数据的初学者指南-源码
-
【Python-随到随学】 FLask第一周
-
Samba 服务配置与管理
-
找硬币
-
综合城市能源系统的最佳投资计划.zip
-
helloworld2020-源码