南山耕夫 發表於 2022-8-11 22:52:00

@Ubuntu server 22.04 系统安装(Ubuntu最新版)

<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
                        <path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0)"></path>
                  </svg>
                  <p></p>
<div class="toc">
<h3>文章目录</h3>
<ul><li><ul><li>1.Ubuntu系统镜像下载</li><li>2.使用workstation安装Ubuntu 22.04</li><li>3.远程连接ubuntu</li><li>4.修改软件管理仓库</li><li>5.更新ubuntu系统</li></ul>
</li></ul>
</div>
<br>
<img src="https://img-blog.csdnimg.cn/09e0a8312fae40ad98bc0f029a25bcc0.png" alt="在这里插入图片描述">
<p></p>
<h2>1.Ubuntu系统镜像下载</h2>
<blockquote>
<p>【Ubuntu官网下载】</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/2505fb88cd7c44ac9b02852e16b46fa5.png" alt="ubuntu-22.04-live-server-amd64"></p>
<h2>2.使用workstation安装Ubuntu 22.04</h2>
<blockquote>
<p>选择下载的镜像,创建安装Ubuntu系统</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/76d96853cce7499489db20e315ebefdd.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>语言选择</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/82f31165a3d54dde9762352aac9faa99.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>系统更新安装(回车即可)</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/8b7e6e8cdebd4a06acf062f6128f5215.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>网络配置(默认即可,也可手动配置,新手建议手动配置一下,熟悉一下环境)</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/ffc480db67fb4095b354bbe80a5c6681.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>手动配置网络(选择手动模式)上下键选择,回车确认即可</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/19bb64bf22fa430b9c9a487e7531ec69.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>手动配置网络(选择save,保存当前配置)</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/30d26ce3249742888bbb347dc7565820.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>确认手动配置的网络地址,选择done,回车即可</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/8ecf51df491b48be93d76dc630add757.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>代理选择(默认即可,回车)</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/a58269d74dd04b30ae9b3fca28f66bc5.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>配置系统更新源,默认为ubuntu官方源,(可手动填写其他国内源,如阿里云,华为等)</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/b3a8fbe4438e4cdc914c43cf13e93b4d.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>系统配置磁盘分区(默认选择全部分区 )</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/260e20d282084055b73291f8caf5e4a2.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>磁盘分区配置确认</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/b3b1ea3da00e4f93876a2aba18aaa2c4.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>选择Continue继续下一步</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/9798ef7227304de186d5d7440392427c.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>配置系统用户设置</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/62ac261f06994c4fb660202cdd4d9913.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>安装openssh远程连接工具</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/c3b739578425454ea87acf57be702292.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>信息确认及配置</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/db14bfc030b14518ac00f79617de544d.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>安装中</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/833209be84de4810a24c2e1f6e9323dd.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>我们也可以查看完整的安装日志</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/0d8063cef7b74292bb1e74e505e3ce92.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>更新完成后,输入注册账户登录即可:zeny</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/1402c6bd429a4f789f64d730714bc2a6.png" alt="http://mirrors.aliyun.com/ubuntu/"><br> <img src="https://img-blog.csdnimg.cn/1e08d3120c29466e80b217b210099287.png" alt="在这里插入图片描述"></p>
<h2>3.远程连接ubuntu</h2>
<blockquote>
<p>使用远程连接工具连接uubuntu系统(默认不支持root远程连接)</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/98535fbd171e463abb844fde0ae29028.png" alt="在这里插入图片描述"></p>
<blockquote>
<p>更改root账户密码,使用root登录ubuntu系统</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/010b66c3e21449f69e2a53478083ac9f.png" alt="在这里插入图片描述"></p>
<h2>4.修改软件管理仓库</h2>
<blockquote>
<p><em><strong>常用的镜像仓库:</strong></em><br> 【阿⾥云镜像仓库】<br> 【华为镜像仓库】<br> 【清华⼤学镜像仓库】</p>
</blockquote>
<pre><code class="prism language-bash"><span class="token comment">#ubuntu默认软件管理仓库地址</span>
root@ubuntu:~<span class="token comment"># egrep"^[^#]" /etc/apt/sources.list</span>
deb http://cn.archive.ubuntu.com/ubuntu jammy main restricted
deb http://cn.archive.ubuntu.com/ubuntu jammy-updates main restricted
deb http://cn.archive.ubuntu.com/ubuntu jammy universe
deb http://cn.archive.ubuntu.com/ubuntu jammy-updates universe
deb http://cn.archive.ubuntu.com/ubuntu jammy multiverse
deb http://cn.archive.ubuntu.com/ubuntu jammy-updates multiverse
deb http://cn.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu jammy-security main restricted
deb http://cn.archive.ubuntu.com/ubuntu jammy-security universe
deb http://cn.archive.ubuntu.com/ubuntu jammy-security multiverse






<span class="token comment">#修改默认软件仓库(预发布软件仓库源,下载很慢,不建议使用的,替换为国内的软件仓库)</span>
root@ubuntu:~<span class="token comment"># sed -i 's/cn.archive.ubuntu/mirrors.aliyun/' /etc/apt/sources.list</span>
root@ubuntu:~<span class="token comment"># egrep"^[^#]" /etc/apt/sources.list</span>
deb http://mirrors.aliyun.com/ubuntu jammy main restricted
deb http://mirrors.aliyun.com/ubuntu jammy-updates main restricted
deb http://mirrors.aliyun.com/ubuntu jammy universe
deb http://mirrors.aliyun.com/ubuntu jammy-updates universe
deb http://mirrors.aliyun.com/ubuntu jammy multiverse
deb http://mirrors.aliyun.com/ubuntu jammy-updates multiverse
deb http://mirrors.aliyun.com/ubuntu jammy-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu jammy-security main restricted
deb http://mirrors.aliyun.com/ubuntu jammy-security universe
deb http://mirrors.aliyun.com/ubuntu jammy-security multiverse

</code></pre>
<h2>5.更新ubuntu系统</h2>
<pre><code class="prism language-bash"><span class="token comment">#更新软件仓库,创建链接</span>
root@ubuntu:~<span class="token comment"># apt update</span>
Get:1 http://mirrors.aliyun.com/ubuntu jammy InRelease <span class="token punctuation">[</span><span class="token number">270</span> kB<span class="token punctuation">]</span>
Get:2 http://mirrors.aliyun.com/ubuntu jammy-updates InRelease <span class="token punctuation">[</span><span class="token number">109</span> kB<span class="token punctuation">]</span>
Get:3 http://mirrors.aliyun.com/ubuntu jammy-backports InRelease <span class="token punctuation">[</span><span class="token number">99.8</span> kB<span class="token punctuation">]</span>
Get:4 http://mirrors.aliyun.com/ubuntu jammy-security InRelease <span class="token punctuation">[</span><span class="token number">110</span> kB<span class="token punctuation">]</span>
Get:5 http://mirrors.aliyun.com/ubuntu jammy/main amd64 Packages <span class="token punctuation">[</span><span class="token number">1,395</span> kB<span class="token punctuation">]</span>
Get:6 http://mirrors.aliyun.com/ubuntu jammy/main Translation-en <span class="token punctuation">[</span><span class="token number">510</span> kB<span class="token punctuation">]</span>                                                                                                                     
Get:7 http://mirrors.aliyun.com/ubuntu jammy/main amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">30.3</span> kB<span class="token punctuation">]</span>                                                                                                               
Get:8 http://mirrors.aliyun.com/ubuntu jammy/restricted amd64 Packages <span class="token punctuation">[</span><span class="token number">129</span> kB<span class="token punctuation">]</span>                                                                                                               
Get:9 http://mirrors.aliyun.com/ubuntu jammy/restricted Translation-en <span class="token punctuation">[</span><span class="token number">18.6</span> kB<span class="token punctuation">]</span>                                                                                                               
Get:10 http://mirrors.aliyun.com/ubuntu jammy/restricted amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">488</span> B<span class="token punctuation">]</span>                                                                                                         
Get:11 http://mirrors.aliyun.com/ubuntu jammy/universe amd64 Packages <span class="token punctuation">[</span><span class="token number">14.1</span> MB<span class="token punctuation">]</span>                                                                                                               
Get:12 http://mirrors.aliyun.com/ubuntu jammy/universe Translation-en <span class="token punctuation">[</span><span class="token number">5,652</span> kB<span class="token punctuation">]</span>                                                                                                               
Get:13 http://mirrors.aliyun.com/ubuntu jammy/universe amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">286</span> kB<span class="token punctuation">]</span>                                                                                                            
Get:14 http://mirrors.aliyun.com/ubuntu jammy/multiverse amd64 Packages <span class="token punctuation">[</span><span class="token number">217</span> kB<span class="token punctuation">]</span>                                                                                                               
Get:15 http://mirrors.aliyun.com/ubuntu jammy/multiverse Translation-en <span class="token punctuation">[</span><span class="token number">112</span> kB<span class="token punctuation">]</span>                                                                                                               
Get:16 http://mirrors.aliyun.com/ubuntu jammy/multiverse amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">8,372</span> B<span class="token punctuation">]</span>                                                                                                         
Get:17 http://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 Packages <span class="token punctuation">[</span><span class="token number">277</span> kB<span class="token punctuation">]</span>                                                                                                            
Get:18 http://mirrors.aliyun.com/ubuntu jammy-updates/main Translation-en <span class="token punctuation">[</span><span class="token number">68.2</span> kB<span class="token punctuation">]</span>                                                                                                            
Get:19 http://mirrors.aliyun.com/ubuntu jammy-updates/main amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">4,840</span> B<span class="token punctuation">]</span>                                                                                                      
Get:20 http://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 Packages <span class="token punctuation">[</span><span class="token number">165</span> kB<span class="token punctuation">]</span>                                                                                                      
Get:21 http://mirrors.aliyun.com/ubuntu jammy-updates/restricted Translation-en <span class="token punctuation">[</span><span class="token number">25.0</span> kB<span class="token punctuation">]</span>                                                                                                      
Get:22 http://mirrors.aliyun.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">460</span> B<span class="token punctuation">]</span>                                                                                                   
Get:23 http://mirrors.aliyun.com/ubuntu jammy-updates/universe amd64 Packages <span class="token punctuation">[</span><span class="token number">116</span> kB<span class="token punctuation">]</span>                                                                                                         
Get:24 http://mirrors.aliyun.com/ubuntu jammy-updates/universe Translation-en <span class="token punctuation">[</span><span class="token number">40.1</span> kB<span class="token punctuation">]</span>                                                                                                         
Get:25 http://mirrors.aliyun.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">2,344</span> B<span class="token punctuation">]</span>                                                                                                   
Get:26 http://mirrors.aliyun.com/ubuntu jammy-updates/multiverse amd64 Packages <span class="token punctuation">[</span><span class="token number">4,192</span> B<span class="token punctuation">]</span>                                                                                                      
Get:27 http://mirrors.aliyun.com/ubuntu jammy-updates/multiverse Translation-en <span class="token punctuation">[</span><span class="token number">900</span> B<span class="token punctuation">]</span>                                                                                                         
Get:28 http://mirrors.aliyun.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">232</span> B<span class="token punctuation">]</span>                                                                                                   
Get:29 http://mirrors.aliyun.com/ubuntu jammy-backports/main amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">112</span> B<span class="token punctuation">]</span>                                                                                                      
Get:30 http://mirrors.aliyun.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">116</span> B<span class="token punctuation">]</span>                                                                                                
Get:31 http://mirrors.aliyun.com/ubuntu jammy-backports/universe amd64 Packages <span class="token punctuation">[</span><span class="token number">2,036</span> B<span class="token punctuation">]</span>                                                                                                      
Get:32 http://mirrors.aliyun.com/ubuntu jammy-backports/universe Translation-en <span class="token punctuation">[</span><span class="token number">7,012</span> B<span class="token punctuation">]</span>                                                                                                      
Get:33 http://mirrors.aliyun.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">216</span> B<span class="token punctuation">]</span>                                                                                                   
Get:34 http://mirrors.aliyun.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">116</span> B<span class="token punctuation">]</span>                                                                                                
Get:35 http://mirrors.aliyun.com/ubuntu jammy-security/main amd64 Packages <span class="token punctuation">[</span><span class="token number">159</span> kB<span class="token punctuation">]</span>                                                                                                            
Get:36 http://mirrors.aliyun.com/ubuntu jammy-security/main Translation-en <span class="token punctuation">[</span><span class="token number">39.2</span> kB<span class="token punctuation">]</span>                                                                                                            
Get:37 http://mirrors.aliyun.com/ubuntu jammy-security/main amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">2,600</span> B<span class="token punctuation">]</span>                                                                                                      
Get:38 http://mirrors.aliyun.com/ubuntu jammy-security/restricted amd64 Packages <span class="token punctuation">[</span><span class="token number">148</span> kB<span class="token punctuation">]</span>                                                                                                      
Get:39 http://mirrors.aliyun.com/ubuntu jammy-security/restricted Translation-en <span class="token punctuation">[</span><span class="token number">22.4</span> kB<span class="token punctuation">]</span>                                                                                                      
Get:40 http://mirrors.aliyun.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">464</span> B<span class="token punctuation">]</span>                                                                                                
Get:41 http://mirrors.aliyun.com/ubuntu jammy-security/universe amd64 Packages <span class="token punctuation">[</span><span class="token number">68.1</span> kB<span class="token punctuation">]</span>                                                                                                      
Get:42 http://mirrors.aliyun.com/ubuntu jammy-security/universe Translation-en <span class="token punctuation">[</span><span class="token number">22.3</span> kB<span class="token punctuation">]</span>                                                                                                      
Get:43 http://mirrors.aliyun.com/ubuntu jammy-security/universe amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">1,128</span> B<span class="token punctuation">]</span>                                                                                                
Get:44 http://mirrors.aliyun.com/ubuntu jammy-security/multiverse amd64 Packages <span class="token punctuation">[</span><span class="token number">4,192</span> B<span class="token punctuation">]</span>                                                                                                      
Get:45 http://mirrors.aliyun.com/ubuntu jammy-security/multiverse Translation-en <span class="token punctuation">[</span><span class="token number">900</span> B<span class="token punctuation">]</span>                                                                                                      
Get:46 http://mirrors.aliyun.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata <span class="token punctuation">[</span><span class="token number">228</span> B<span class="token punctuation">]</span>                                                                                                
Fetched <span class="token number">24.2</span> MB <span class="token keyword">in</span> 2min 48s <span class="token punctuation">(</span><span class="token number">144</span> kB/s<span class="token punctuation">)</span>                                                                                                                                                         
Reading package lists<span class="token punctuation">..</span>. Done
Building dependency tree<span class="token punctuation">..</span>. Done
Reading state information<span class="token punctuation">..</span>. Done
<span class="token number">20</span> packages can be upgraded. Run <span class="token string">'apt list --upgradable'</span> to see them.
root@ubuntu:~<span class="token comment"># </span>




<span class="token comment">#系统软件包更新</span>
root@ubuntu:~<span class="token comment"># apt upgrade</span>
Reading package lists<span class="token punctuation">..</span>. Done
Building dependency tree<span class="token punctuation">..</span>. Done
Reading state information<span class="token punctuation">..</span>. Done
Calculating upgrade<span class="token punctuation">..</span>. Done
The following packages will be upgraded:
base-files cloud-init libjson-c5 libnss-systemd libpam-systemd libssl3 libsystemd0 libudev1 libusb-1.0-0 motd-news-config openssl python3-distupgrade python3-software-properties
software-properties-common systemd systemd-sysv systemd-timesyncd ubuntu-advantage-tools ubuntu-release-upgrader-core udev
<span class="token number">20</span> upgraded, <span class="token number">0</span> newly installed, <span class="token number">0</span> to remove and <span class="token number">0</span> not upgraded.
Need to get <span class="token number">11.6</span> MB of archives.
After this operation, <span class="token number">84.0</span> kB of additional disk space will be used.
Do you want to continue? <span class="token punctuation">[</span>Y/n<span class="token punctuation">]</span> y
<span class="token punctuation">..</span><span class="token punctuation">..</span>
<span class="token punctuation">..</span>.
</code></pre>
<pre><code class="prism language-bash"><span class="token comment">#apt常用命令</span>
<span class="token function">apt</span> list                <span class="token comment">#apt列出仓库软件包,等于yum list</span>
<span class="token function">apt</span> update            <span class="token comment">#更新本地软件包列表索引,修改了apt仓库后必须执⾏</span>
<span class="token function">apt</span> upgrade             <span class="token comment">#升级所有已安装且可升级到新版本的软件包</span>
<span class="token function">apt</span> search NAME         <span class="token comment">#搜索安装包</span>
<span class="token function">apt</span> purge apache2       <span class="token comment">#卸载单个软件包删除配置⽂件</span>
<span class="token function">apt</span> show apache2      <span class="token comment">#查看某个安装包的详细信息</span>
<span class="token function">apt</span> <span class="token function">install</span> apache2   <span class="token comment">#在线安装软件包</span>
<span class="token function">apt</span> remove apache2      <span class="token comment">#卸载单个软件包但是保留配置⽂件</span>
<span class="token function">apt</span> autoremove apache2<span class="token comment">#删除安装包并解决依赖关系</span>
<span class="token function">apt</span> full-upgrade      <span class="token comment">#升级整个系统,必要时可以移除旧软件包。</span>
<span class="token function">apt</span> edit-sources      <span class="token comment">#编辑source源⽂件</span>
<span class="token function">apt-cache</span> madison nginx <span class="token comment">#查看仓库中软件包有哪些版本可以安装</span>
<span class="token function">apt</span> <span class="token function">install</span> <span class="token assign-left variable">nginx</span><span class="token operator">=</span><span class="token number">1.14</span>.0-0ubuntu1.6   <span class="token comment">#安装软件包的时候指定安装具体的版本</span>
</code></pre>
               

</div>
<div id="MySignature" role="contentinfo">
    <p>本文来自博客园,作者:ଲ小何才露煎煎饺,转载请注明原文链接:https://www.cnblogs.com/zeny/p/16578220.html</p><br><br>
来源:https://www.cnblogs.com/zeny/p/16578220.html
頁: [1]
查看完整版本: @Ubuntu server 22.04 系统安装(Ubuntu最新版)