{"id":101,"date":"2023-11-22T10:59:52","date_gmt":"2023-11-22T02:59:52","guid":{"rendered":"http:\/\/8.141.4.74\/?p=101"},"modified":"2024-03-29T14:32:49","modified_gmt":"2024-03-29T06:32:49","slug":"linux-%e9%85%8d%e7%bd%ae%e9%95%9c%e5%83%8f%e6%ba%90","status":"publish","type":"post","link":"http:\/\/8.141.4.74\/?p=101","title":{"rendered":"Linux \u914d\u7f6e\u955c\u50cf\u6e90"},"content":{"rendered":"<h1>\u914d\u7f6eYUM\u6e90<\/h1>\n<p>\u963f\u91cc\u4e91\u63d0\u4f9b\u4e86\u5199\u597d\u7684CentOS\u548cUbuntu\u7684\u4ed3\u5e93\u6587\u4ef6\uff0c\u4e0b\u8f7d\u94fe\u63a5\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-sh\">http:\/\/mirrors.aliyun.com\/repo\/\n<\/code><\/pre>\n<p>\u5404\u5927\u955c\u50cf\u6e90\u7f51\u5740<\/p>\n<pre><code class=\"language-bash\">#\u963f\u91cc\u4e91 \nhttps:\/\/mirrors.aliyun.com\/\n#\u817e\u8baf\u8f6f\u4ef6\u6e90\nhttps:\/\/mirrors.cloud.tencent.com\/\n#\u534e\u4e3a\u4e91\nhttps:\/\/mirrors.huaweicloud.com\/\n#\u6e05\u534e\u5927\u5b66\u5f00\u6e90\u8f6f\u4ef6\u955c\u50cf\u7ad9\nhttps:\/\/mirrors.tuna.tsinghua.edu.cn\/\n#\u7f51\u6613\u5f00\u6e90\u955c\u50cf\u7ad9\nhttps:\/\/mirrors.163.com\/\n#CentOS\u5b98\u7f51\nhttps:\/\/vault.centos.org\/\n#\u516c\u4e91\nhttps:\/\/mirrors.pubyun.com\/\n#\u641c\u72d0\nhttp:\/\/mirrors.sohu.com\/\n#\u9996\u90fd\u5728\u7ebf\nhttp:\/\/mirrors.yun-idc.com\/\nhttps:\/\/wiki.centos.org\/\n#Ubuntu\u5b98\u7f51\nhttps:\/\/cn.ubuntu.com\/\n#\u4e2d\u56fd\u79d1\u6280\u5927\u5b66\nhttps:\/\/mirrors.ustc.edu.cn\/\n#\u5317\u4eac\u5916\u56fd\u8bed\u5927\u5b66\nhttps:\/\/mirrors.bfsu.edu.cn\n#\u4e2d\u56fd\u79d1\u5b66\u6280\u672f\u5927\u5b66\nhttps:\/\/mirrors.ustc.edu.cn\/\n#\u5317\u4eac\u4ea4\u901a\u5927\u5b66\nhttps:\/\/mirror.bjtu.edu.cn\/\n#\u4e0a\u6d77\u4ea4\u901a\u5927\u5b66\nhttps:\/\/ftp.sjtu.edu.cn\/\n#\u5317\u4eac\u7406\u5de5\u5927\u5b66\nhttps:\/\/mirror.bit.edu.cn\/\n#\u6d59\u6c5f\u5927\u5b66\nhttps:\/\/mirrors.zju.edu.cn\/\n#\u534e\u4e2d\u79d1\u6280\u5927\u5b66\nhttp:\/\/mirrors.hust.edu.cn\/\n#\u4e1c\u5317\u5927\u5b66\nhttp:\/\/mirror.neu.edu.cn\n#\u54c8\u5c14\u6ee8\u5de5\u4e1a\u5927\u5b66\nhttp:\/\/mirrors.hit.edu.cn\/\n#\u5927\u8fde\u7406\u5de5\u5927\u5b66\nhttp:\/\/mirror.dlut.edu.cn\/\n#\u5927\u8fde\u4e1c\u8f6f\u4fe1\u606f\u5b66\u9662\nhttps:\/\/mirrors.neusoft.edu.cn\/\n#\u5357\u4eac\u5927\u5b66\nhttp:\/\/mirrors.nju.edu.cn\/\n#\u5357\u4eac\u90ae\u7535\u5927\u5b66\nhttps:\/\/mirrors.njupt.edu.cn\/\n#\u5170\u5dde\u5927\u5b66\nhttp:\/\/mirror.lzu.edu.cn\/\n#\u91cd\u5e86\u5927\u5b66\nhttp:\/\/mirrors.cqu.edu.cn\/<\/code><\/pre>\n<h2>CentOS 7 \u914d\u7f6eyum\u6e90<\/h2>\n<pre><code class=\"language-sh\">[root@centos7 yum.repos.d]#cd \/etc\/yum.repos.d\/ #\u8fdb\u5165\u5230\u5bf9\u5e94\u7684\u76ee\u5f55\u4e0b\n[root@centos7 yum.repos.d]#touch Base.repo #\u521b\u5efa\u4e00\u4e2a\u4ee5.repo\u7ed3\u5c3e\u7684\u6587\u4ef6<\/code><\/pre>\n<p>\u5c06\u4e0b\u9762\u6587\u4ef6\u5185\u5bb9copy\u5230Base.repo<\/p>\n<pre><code class=\"language-sh\">[base]\nname=BaseOS\nbaseurl=https:\/\/mirrors.aliyun.com\/centos\/$releasever\/os\/$basearch\/\n        https:\/\/mirrors.cloud.tencent.com\/centos\/$releasever\/os\/$basearch\/\n        https:\/\/mirrors.tuna.tsinghua.edu.cn\/centos\/$releasever\/os\/$basearch\/\ngpgcheck=0\n\n[extras]\nname=extras\nbaseurl=https:\/\/mirrors.aliyun.com\/centos\/$releasever\/extras\/$basearch\/\n        https:\/\/mirrors.cloud.tencent.com\/centos\/$releasever\/extras\/$basearch\/\n        https:\/\/mirrors.tuna.tsinghua.edu.cn\/centos\/$releasever\/extras\/$basearch\/\ngpgcheck=0\nenabled=1\n\n[updates]\nname=CentOS-7 - Updates - mirrors.aliyun.com\nfailovermethod=priority\nbaseurl=http:\/\/mirrors.aliyun.com\/centos\/7\/updates\/$basearch\/\n        http:\/\/mirrors.aliyuncs.com\/centos\/7\/updates\/$basearch\/\n        http:\/\/mirrors.cloud.aliyuncs.com\/centos\/7\/updates\/$basearch\/\ngpgcheck=1\ngpgkey=http:\/\/mirrors.aliyun.com\/centos\/RPM-GPG-KEY-CentOS-7\n\n[epel]\nname=epel\nbaseurl=https:\/\/mirrors.aliyun.com\/epel\/$releasever\/$basearch\/\n        https:\/\/mirrors.cloud.tencent.com\/epel\/$releasever\/$basearch\/\n        https:\/\/mirrors.tuna.tsinghua.edu.cn\/epel\/$releasever\/$basearch\/\ngpgcheck=1\ngpgkey=https:\/\/mirrors.tuna.tsinghua.edu.cn\/epel\/RPM-GPG-KEY-EPEL-7\n\n#\u4e0a\u9762\u7684gpgcheck=1 #\u5b89\u88c5\u5305\u524d\u8981\u505a\u5305\u7684\u5408\u6cd5\u548c\u5b8c\u6574\u6027\u6821\u9a8c\n#\u5982\u679c\u662f\u51991\u7684\u8bdd\uff0c\u90a3\u4e48\u5c31\u8981\u914d\u7f6egpgkey\uff0c\u4f8b\u5982\uff1ahttps:\/\/mirrors.tuna.tsinghua.edu.cn\/centos\/ \u627e\u5230RPM-GPG-KEY-CentOS-7\u590d\u5236\u5730\u5740<\/code><\/pre>\n<pre><code class=\"language-sh\">#\u67e5\u770byum\u6e90\n[root@centos7 yum.repos.d]#yum repolist\n\u5df2\u52a0\u8f7d\u63d2\u4ef6\uff1afastestmirror\nLoading mirror speeds from cached hostfile\n * base:\n * epel: mirrors.aliyun.com\n * extras: mirrors.aliyun.com\n\u6e90\u6807\u8bc6                                                                                                          \u6e90\u540d\u79f0                                                                                                  \u72b6\u6001\nbase\/7\/x86_64                                                                                                   BaseOS                                                                                                   4,070\nepel\/7\/x86_64                                                                                                   epel                                                                                                    13,744\nextras\/7\/x86_64                                                                                                 extras                                                                                                     515\nrepolist: 18,329\n[root@centos7 yum.repos.d]#\n<\/code><\/pre>\n<h2>CentOS 8 \u914d\u7f6eyum\u6e90<\/h2>\n<pre><code class=\"language-bash\"> #\u8fdb\u5165\u5230\u5bf9\u5e94\u7684\u76ee\u5f55\u4e0b\n[root@centos7 yum.repos.d]#cd \/etc\/yum.repos.d\/\n\n#\u521b\u5efa\u4e00\u4e2a\u4ee5.repo\u7ed3\u5c3e\u7684\u6587\u4ef6\n[root@centos7 yum.repos.d]#touch Base.repo<\/code><\/pre>\n<p>\u5c06\u4e0b\u9762\u6587\u4ef6\u5185\u5bb9copy\u5230Base.repo<\/p>\n<pre><code class=\"language-bash\">[xyyBaseOS]\nname=BaseOS\nbaseurl=https:\/\/mirrors.aliyun.com\/centos\/$releasever\/BaseOS\/$basearch\/os\/\n        https:\/\/mirrors.cloud.tencent.com\/centos\/$releasever\/BaseOS\/$basearch\/os\/\n        https:\/\/mirrors.tuna.tsinghua.edu.cn\/cc\/$releasever\/BaseOS\/$basearch\/os\/\ngpgcheck=0\n\n[xyyAppStream]\nname=AppStream\nbaseurl=https:\/\/mirrors.aliyun.com\/centos\/$releasever\/AppStream\/$basearch\/os\/\n        https:\/\/mirrors.cloud.tencent.com\/centos\/$releasever\/AppStream\/$basearch\/os\/\n        https:\/\/mirrors.tuna.tsinghua.edu.cn\/cc\/$releasever\/AppStream\/$basearch\/os\/\ngpgcheck=0\n\n[xyyextras]\nname=extras\nbaseurl=https:\/\/mirrors.aliyun.com\/centos\/$releasever\/extras\/$basearch\/os\n        https:\/\/mirrors.cloud.tencent.com\/centos\/$releasever\/extras\/$basearch\/os\/\n        https:\/\/mirrors.tuna.tsinghua.edu.cn\/centos\/$releasever\/extras\/$basearch\/os\/\ngpgcheck=0\nenabled=1\n\n[xyyepel]\nname=epel\nbaseurl=https:\/\/mirrors.aliyun.com\/epel\/$releasever\/Everything\/$basearch\/\n        https:\/\/mirrors.cloud.tencent.com\/epel\/$releasever\/Everything\/$basearch\/\n        https:\/\/mirrors.tuna.tsinghua.edu.cn\/epel\/$releasever\/Everything\/$basearch\/\ngpgcheck=0\nenabled=1\n<\/code><\/pre>\n<pre><code class=\"language-sh\">[root@centos8 yum.repos.d]#yum repolist\nrepo id                                                                                                   repo name\nxyyAppStream                                                                                              AppStream\nxyyBaseOS                                                                                                 BaseOS\nxyyepel                                                                                                   epel\nxyyextras                                                                                                 extras\n[root@centos8 yum.repos.d]#\n\n#\u67e5\u770b\u8be6\u7ec6\u4fe1\u606f\n[root@centos8 yum.repos.d]#yum repolist -v\nLoaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync\nYUM version: 4.7.0\ncachedir: \/var\/cache\/dnf\nLast metadata expiration check: 1:04:59 ago on Tue 07 Feb 2023 10:48:29 PM CST.\nRepo-id            : xyyAppStream\nRepo-name          : AppStream\nRepo-revision      : 8.5.2111\nRepo-distro-tags      : [cpe:\/o:centos:centos:8]:  , 8, C, O, S, e, n, t\nRepo-updated       : Sat 13 Nov 2021 09:02:30 AM CST\nRepo-pkgs          : 6,165\nRepo-available-pkgs: 5,281\nRepo-size          : 8.0 G\nRepo-baseurl       : file:\/\/\/misc\/cd\/AppStream, https:\/\/mirrors.aliyun.com\/centos\/8\/AppStream\/x86_64\/os\/, https:\/\/mirrors.cloud.tencent.com\/centos\/8\/AppStream\/x86_64\/os\/,\n                   : https:\/\/mirrors.tuna.tsinghua.edu.cn\/cc\/8\/AppStream\/x86_64\/os\/\nRepo-expire        : 172,800 second(s) (last: Tue 07 Feb 2023 10:48:27 PM CST)\nRepo-filename      : \/etc\/yum.repos.d\/base.repo\n\nRepo-id            : xyyBaseOS\nRepo-name          : BaseOS\nRepo-revision      : 8.5.2111\nRepo-distro-tags      : [cpe:\/o:centos:centos:8]:  , 8, C, O, S, e, n, t\nRepo-updated       : Sat 13 Nov 2021 09:02:30 AM CST\nRepo-pkgs          : 1,709\nRepo-available-pkgs: 1,707\nRepo-size          : 1.2 G\nRepo-baseurl       : file:\/\/\/misc\/cd\/BaseOS, https:\/\/mirrors.aliyun.com\/centos\/8\/BaseOS\/x86_64\/os\/, https:\/\/mirrors.cloud.tencent.com\/centos\/8\/BaseOS\/x86_64\/os\/,\n                   : https:\/\/mirrors.tuna.tsinghua.edu.cn\/cc\/8\/BaseOS\/x86_64\/os\/\nRepo-expire        : 172,800 second(s) (last: Tue 07 Feb 2023 10:48:27 PM CST)\nRepo-filename      : \/etc\/yum.repos.d\/base.repo\n\nRepo-id            : xyyepel\nRepo-name          : epel\nRepo-revision      : 1675735701\nRepo-updated       : Tue 07 Feb 2023 10:27:36 AM CST\nRepo-pkgs          : 9,545\nRepo-available-pkgs: 9,545\nRepo-size          : 15 G\nRepo-baseurl       : https:\/\/mirrors.aliyun.com\/epel\/8\/Everything\/x86_64\/, https:\/\/mirrors.cloud.tencent.com\/epel\/8\/Everything\/x86_64\/, https:\/\/mirrors.tuna.tsinghua.edu.cn\/epel\/8\/Everything\/x86_64\/\nRepo-expire        : 172,800 second(s) (last: Tue 07 Feb 2023 10:48:29 PM CST)\nRepo-filename      : \/etc\/yum.repos.d\/base.repo\n\nRepo-id            : xyyextras\nRepo-name          : extras\nRepo-revision      : 1639140985\nRepo-updated       : Fri 10 Dec 2021 08:56:25 PM CST\nRepo-pkgs          : 38\nRepo-available-pkgs: 38\nRepo-size          : 426 k\nRepo-baseurl       : https:\/\/mirrors.aliyun.com\/centos\/8\/extras\/x86_64\/os, https:\/\/mirrors.cloud.tencent.com\/centos\/8\/extras\/x86_64\/os\/, https:\/\/mirrors.tuna.tsinghua.edu.cn\/centos\/8\/extras\/x86_64\/os\/\nRepo-expire        : 172,800 second(s) (last: Tue 07 Feb 2023 10:48:28 PM CST)\nRepo-filename      : \/etc\/yum.repos.d\/base.repo\nTotal packages: 17,457\n[root@centos8 yum.repos.d]#\n<\/code><\/pre>\n<h2>Ubuntu \u914d\u7f6eapt\u6e90<\/h2>\n<pre><code class=\"language-bash\"># \u4f7f\u7528 apt-get \u7684\u670d\u52a1\u5668\u67b6\u6784\u6709 x86_64 \u548c aarch64 \u4e24\u79cd\uff0c\u4e00\u822c\u79f0\u4e3a x86 \u548c arm\u3002\n# \u4f7f\u7528\u547d\u4ee4arch\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u67b6\u6784\u3002\n#\u90e8\u5206\u6e90\u540c\u65f6\u63d0\u4f9b\u4e24\u79cd\u67b6\u6784\u7684\u4e0b\u8f7d\uff0cx86 \u9009\u62e9 ubuntu\uff0carm \u9009\u62e9 ubuntu-ports\uff0c\u4f8b\u5982\u963f\u91cc\u4e91\n\u56e0\u6b64\u5b8c\u6574\u7684\u6e90\u8def\u5f84\u4e3a\uff1a\nx84: http:\/\/mirrors.aliyun.com\/ubuntu\/\narm: http:\/\/mirrors.aliyun.com\/ubuntu-ports\/\n\n\u5b98\u65b9\u6e90\u53ea\u63d0\u4f9b\u4e86x86_64\u67b6\u6784\nhttp:\/\/archive.ubuntu.com\/ubuntu\/<\/code><\/pre>\n<h3>\u8f6f\u4ef6\u5305\u7c7b\u578b<\/h3>\n<p>\u6b63\u5e38\u4f7f\u7528\u4e2d apt-get \u5f80\u5f80\u53ea\u7528\u6765\u4e0b\u8f7d\u8f6f\u4ef6\u5305\u540e\u7acb\u9a6c\u5b89\u88c5\uff0c\u5b9e\u9645\u4e0a apt-get \u5141\u8bb8\u4e0b\u8f7d\u8f6f\u4ef6\u4e8c\u8fdb\u5236\u5305\u4f46\u4e0d\u5b89\u88c5\uff0c\u4e5f\u5141\u8bb8\u76f4\u63a5\u4e0b\u8f7d\u6e90\u7801\u5305\uff0c\u4ee5\u4e0b\u4e3a\u4e09\u79cd\u4e0b\u8f7d\u5305\u7684\u65b9\u5f0f<\/p>\n<p>apt-get install: \u4e0b\u8f7d\u4e8c\u8fdb\u5236\u8f6f\u4ef6\u5305\u5e76\u76f4\u63a5\u5b89\u88c5<br \/>\napt-get download: \u4ec5\u4e0b\u8f7d\u4e8c\u8fdb\u5236\u8f6f\u4ef6\u5305(\u53ef\u4ee5\u4f20\u5230\u5176\u4ed6\u670d\u52a1\u5668\u7528\u4e8e\u79bb\u7ebf\u5b89\u88c5)<br \/>\napt-get source: \u4e0b\u8f7d\u6e90\u7801\u5305(\u53ef\u4ee5\u4fee\u6539\u6e90\u7801\uff0c\u5f80\u5f80\u7528\u4e8e\u81ea\u5b9a\u4e49\u5b89\u88c5\u8def\u5f84)<br \/>\n\u5176\u4e2d install \u548c download \u83b7\u53d6\u7684\u5305\u76f8\u540c\uff0c\u4ec5\u5728\u672c\u5730\u5904\u7406\u65b9\u5f0f\u4e0d\u540c\uff0c\u4e0e source \u83b7\u53d6\u7684\u5305\u4e0d\u540c\u3002\u8bbe\u7f6e apt \u6e90\u65f6\uff0c\u9700\u6307\u5b9a\u8be5\u6e90\u7528\u4e8e\u4e0b\u8f7d\u4e8c\u8fdb\u5236\u8f6f\u4ef6\u5305\u8fd8\u662f\u6e90\u7801\u5305\uff0c\u5927\u90e8\u5206\u7684\u6e90\u4f1a\u540c\u65f6\u63d0\u4f9b\u8fd9\u4e24\u79cd\u8f6f\u4ef6\u5305\u7c7b\u578b\uff0c\u6307\u5b9a\u7c7b\u578b\u9700\u8981\u5199\u5728\u6e90\u8def\u5f84\u4e4b\u524d<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6e90\u7c7b\u578b<\/th>\n<th>\u914d\u7f6e\u9879<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u4e8c\u8fdb\u5236\u5305<\/td>\n<td>deb<\/td>\n<\/tr>\n<tr>\n<td>\u6e90\u7801\u5305<\/td>\n<td>deb-src<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\uff0c\u53ea\u9700\u8981\u4e0b\u8f7d\u4e8c\u8fdb\u5236\u5305\uff0c\u4f46\u591a\u914d\u7f6e\u4e00\u4e2a\u4e5f\u6ca1\u6709\u5f71\u54cd\uff0c\u540c\u65f6\u914d\u7f6e\u9700\u8981\u5199\u4e24\u884c<\/p>\n<pre><code class=\"language-bash\">deb     http:\/\/mirrors.aliyun.com\/ubuntu\/\ndeb-src http:\/\/mirrors.aliyun.com\/ubuntu\/\n<\/code><\/pre>\n<h3>Ubuntu\u5404\u4e2a\u7248\u672c\u7684\u4ee3\u53f7<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u5e8f\u53f7<\/th>\n<th>\u7248\u672c<\/th>\n<th>\u4ee3\u53f7<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>14.04<\/td>\n<td>trusty<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>16.04<\/td>\n<td>xenial<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>18.04<\/td>\n<td>bionic<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>20.04<\/td>\n<td>focal<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>21.10<\/td>\n<td>impish<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>22.04<\/td>\n<td>jammy<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>22.10<\/td>\n<td>kinetic<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u914d\u7f6e\u6e90\u65f6\uff0c\u7248\u672c\u4ee3\u53f7\u8ddf\u5728\u6e90\u94fe\u63a5\u540e\u9762\uff0c\u4e0b\u8f7d\u65f6\u4f1a\u627e\u5bf9\u5e94\u7684\u5b50\u76ee\u5f55\uff0c\u4f8b\u5982 \u4f7f\u7528 \u963f\u91cc\u6e90-x86-22.04 \u7248\u672c\u7684\u670d\u52a1\u5668\u7684\u6e90\uff0c\u914d\u7f6e\u4e3a<\/p>\n<pre><code class=\"language-http\">deb http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy\n<\/code><\/pre>\n<p>\u8f6f\u4ef6\u5305\u56db\u79cd\u72b6\u6001\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5e8f\u53f7<\/th>\n<th>\u72b6\u6001<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u4ee3\u53f7<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u4e0d\u7ef4\u62a4<\/td>\n<td>\u8fc7\u671f\u7684\u529f\u80fd<\/td>\n<td>backports<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u540e\u671f\u7ef4\u62a4<\/td>\n<td>\u5b89\u5168<\/td>\n<td>security<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u6301\u7eed\u7ef4\u62a4<\/td>\n<td>\u66f4\u65b0\u4e2d<\/td>\n<td>updates<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u6301\u7eed\u66f4\u65b0<\/td>\n<td>\u9884\u53d1\u5e03<\/td>\n<td>proposed<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e00\u822c\u4e0d\u4f7f\u7528\u5df2\u7ecf\u4e0d\u7ef4\u62a4\u7684\u529f\u80fd\uff0c\u56e0\u6b64\u53ea\u5199\u56db\u4e2a\u3002\u5982\u679c\u670d\u52a1\u5668\u4e2d\u5b58\u5728\u5f88\u53e4\u8001\u7684\u9879\u76ee\u5c31\u5168\u5199\uff0c\u5982\u679c\u670d\u52a1\u5668\u662f\u72ec\u7acb\u7684\u8001\u9879\u76ee\uff0c\u4e3a\u4e0d\u5f15\u5165\u65b0\u5305\uff0c\u4e0d\u5199\u6301\u7eed\u66f4\u65b0\u4e2d\u7684\u8f6f\u4ef6\u3002\u4e0d\u540c\u72b6\u6001\u3001\u4e0d\u540c\u670d\u52a1\u5668\u578b\u53f7\u7684\u6e90\u5728\u540c\u7ea7\u76ee\u5f55\u4e0b\uff0c\u914d\u7f6e\u65f6\u5199\u5728\u6e90\u94fe\u63a5\u540e\u9762\u4e00\u4f4d<br \/>\n\u56e0\u6b64\u4e00\u822c\u4f7f\u7528\u53ea\u5199\u56db\u4e2a\uff0c\u683c\u5f0f\u5982\u4e0b(\u963f\u91cc\u4e91-x86-22.04\u7248\u672c-\u4e0d\u9700\u8981\u4e0b\u8f7d\u6e90\u7801\u5305-\u4e0d\u4f7f\u7528\u8fc7\u671f\u8f6f\u4ef6)\uff1a<\/p>\n<pre><code class=\"language-css\">deb http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy\ndeb http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-security\ndeb http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-updates\ndeb http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-proposed\n<\/code><\/pre>\n<p>\u8f6f\u4ef6\u5305\u652f\u6491\u7ea7\u522b<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5e8f\u53f7<\/th>\n<th>\u4ee3\u53f7<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u652f\u6491\u7ea7\u522b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>main<\/td>\n<td>\u6838\u5fc3\u5305<\/td>\n<td>\u5b98\u65b9\u63d0\u4f9b\u652f\u6491\u548c\u8865\u4e01<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>restricted<\/td>\n<td>\u6807\u51c6\u5305<\/td>\n<td>\u5b98\u65b9\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u63d0\u4f9b\u652f\u6491\u548c\u8865\u4e01<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>universe<\/td>\n<td>\u6269\u5c55\u5305<\/td>\n<td>\u5b98\u65b9\u4e0d\u63d0\u4f9b\u652f\u6491\u548c\u8865\u4e01\uff0c\u793e\u533a\u63d0\u4f9b<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>multiverse<\/td>\n<td>\u81ea\u5b9a\u4e49\u5305<\/td>\n<td>\u4e0d\u63d0\u4f9b\u652f\u6491\u548c\u8865\u4e01<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9664\u975e\u7528\u4e8e\u5b89\u5168\u6027\u8981\u6c42\u6bd4\u8f83\u9ad8\u7684\u9879\u76ee\u7684\u670d\u52a1\u5668\uff0c\u914d\u7f6e\u6e90\u65f6\u4e0d\u9009\u62e9\u81ea\u5b9a\u4e49\u5305\u751a\u81f3\u6269\u5c55\u5305\uff0c\u5176\u4ed6\u7684\u670d\u52a1\u5668\u4e00\u822c\u5168\u90e8\u914d\u7f6e\u3002\u914d\u7f6e\u6e90\u65f6\uff0c\u8f6f\u4ef6\u5305\u5206\u7ea7\u5199\u5728\u6e90\u540e\u9762\u7b2c\u4e8c\u4f4d\u5f00\u59cb\uff0c\u53ef\u4ee5\u5199\u591a\u4e2a\u3002\u4f8b\u5982\u963f\u91cc\u4e91-x86-22.04-\u4e8c\u8fdb\u5236\u5305-\u6301\u7eed\u66f4\u65b0\u7684\u5305-\u9700\u8981\u56db\u79cd\u652f\u6491\u7ea7\u522b\u7684\u5305<\/p>\n<pre><code class=\"language-bash\">deb http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-security main restricted universe multiverse\n<\/code><\/pre>\n<p>\u4e5f\u53ef\u4ee5\u5199\u6210\u56db\u884c<\/p>\n<pre><code class=\"language-bash\">deb http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-security main\ndeb http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-security restricted\ndeb http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-security universe\ndeb http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-security multiverse\n<\/code><\/pre>\n<p>\u914d\u7f6e \u963f\u91cc\u6e90-x86-22.04-\u4e8c\u8fdb\u5236\u5305\u548c\u6e90\u7801\u5305\u90fd\u8981-\u9700\u8981\u8fc7\u671f\u9664\u5916\u7684\u5176\u4ed6\u5305-\u9700\u8981\u6240\u6709\u5206\u7ea7\u7684\u5305\uff0c\u6e90\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-cpp\">deb     http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy          main restricted universe multiverse\ndeb     http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-security main restricted universe multiverse\ndeb     http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-updates  main restricted universe multiverse\ndeb     http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-proposed main restricted universe multiverse\ndeb-src http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy          main restricted universe multiverse\ndeb-src http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-security main restricted universe multiverse\ndeb-src http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-updates  main restricted universe multiverse\ndeb-src http:\/\/mirrors.aliyun.com\/ubuntu\/ jammy-proposed main restricted universe multiverse<\/code><\/pre>\n<h3>Ubunt 22.04 apt\u6e90<\/h3>\n<pre><code class=\"language-http\"># vim \/etc\/apt\/sources.list\n## Note, this file is written by cloud-init on first boot of an instance\n## modifications made here will not survive a re-bundle.\n## if you wish to make changes you can:\n## a.) add &#039;apt_preserve_sources_list: true&#039; to \/etc\/cloud\/cloud.cfg\n##     or do the same in user-data\n## b.) add sources in \/etc\/apt\/sources.list.d\n## c.) make changes to template file \/etc\/cloud\/templates\/sources.list.tmpl\n\n# See http:\/\/help.ubuntu.com\/community\/UpgradeNotes for how to upgrade to\n# newer versions of the distribution.\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy main restricted\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy main restricted\n\n## Major bug fix updates produced after the final release of the\n## distribution.\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy-updates main restricted\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy-updates main restricted\n\n## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu\n## team. Also, please note that software in universe WILL NOT receive any\n## review or updates from the Ubuntu security team.\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy universe\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy universe\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy-updates universe\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy-updates universe\n\n## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu \n## team, and may not be under a free licence. Please satisfy yourself as to\n## your rights to use the software. Also, please note that software in \n## multiverse WILL NOT receive any review or updates from the Ubuntu\n## security team.\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy multiverse\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy multiverse\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy-updates multiverse\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy-updates multiverse\n\n## Uncomment the following two lines to add software from the &#039;backports&#039;\n## repository.\n## N.B. software from this repository may not have been tested as\n## extensively as that contained in the main release, although it includes\n## newer versions of some applications which may provide useful features.\n## Also, please note that software in backports WILL NOT receive any review\n## or updates from the Ubuntu security team.\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy-backports main restricted universe multiverse\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu\/ jammy-backports main restricted universe multiverse\n\n## Uncomment the following two lines to add software from Canonical&#039;s\n## &#039;partner&#039; repository.\n## This software is not part of Ubuntu, but is offered by Canonical and the\n## respective vendors as a service to Ubuntu users.\n# deb http:\/\/archive.canonical.com\/ubuntu jammy partner\n# deb-src http:\/\/archive.canonical.com\/ubuntu jammy partner\n\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu jammy-security main restricted\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu jammy-security main restricted\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu jammy-security universe\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu jammy-security universe\ndeb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu jammy-security multiverse\ndeb-src http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu jammy-security multiverse<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u914d\u7f6eYUM\u6e90 \u963f\u91cc\u4e91\u63d0\u4f9b\u4e86\u5199\u597d\u7684CentOS\u548cUbuntu\u7684\u4ed3\u5e93\u6587\u4ef6\uff0c\u4e0b\u8f7d\u94fe\u63a5\u5982\u4e0b\uff1a http:\/\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[12,11],"views":313,"_links":{"self":[{"href":"http:\/\/8.141.4.74\/index.php?rest_route=\/wp\/v2\/posts\/101"}],"collection":[{"href":"http:\/\/8.141.4.74\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/8.141.4.74\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/8.141.4.74\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/8.141.4.74\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=101"}],"version-history":[{"count":10,"href":"http:\/\/8.141.4.74\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":182,"href":"http:\/\/8.141.4.74\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions\/182"}],"wp:attachment":[{"href":"http:\/\/8.141.4.74\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/8.141.4.74\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/8.141.4.74\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}