{"id":109,"date":"2025-08-31T06:29:54","date_gmt":"2025-08-31T06:29:54","guid":{"rendered":"https:\/\/imakun.cn\/wordpress\/?p=109"},"modified":"2026-04-18T22:40:10","modified_gmt":"2026-04-18T22:40:10","slug":"%e7%bb%99%e7%a6%bb%e7%ba%bf%e7%9a%84ubuntu22%e5%ae%89%e8%a3%85%e8%bd%af%e4%bb%b6%ef%bc%8c%e4%b8%8b%e8%bd%bddeb%e5%8c%85%e5%92%8c%e6%89%80%e6%9c%89%e4%be%9d%e8%b5%96%e5%8c%85","status":"publish","type":"post","link":"https:\/\/imakun.cn\/520\/109.html","title":{"rendered":"\u7ed9\u79bb\u7ebf\u7684Ubuntu22\u5b89\u88c5\u8f6f\u4ef6\uff0c\u4e0b\u8f7ddeb\u5305\u548c\u6240\u6709\u4f9d\u8d56\u5305"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>\u5076\u5c14\u9700\u8981\u7ed9\u79bb\u7ebf\u73af\u5883\u7684Ubuntu\u5b89\u88c5\u8f6f\u4ef6\u548c\u5b50\u4f9d\u8d56\u3002<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u67e5\u770b\u8981\u4e0b\u8f7d\u7684\u5305\u548c\u4f9d\u8d56<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-cache depends openvswitch-switch\napt-cache rdepends openvswitch-switch<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0b\u8f7d\u4f9d\u8d56\u5305<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u8f7dlvm2\u5305\u4e3a\u4f8b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u66f4\u65b0\u5305\u5217\u8868<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u8f7dlvm2\u53ca\u4f9d\u8d56\u5305<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528 apt-get download \u547d\u4ee4\u4e0b\u8f7d lvm2 \u5305\u548c\u5176\u6240\u6709\u4f9d\u8d56\u5305\u3002\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u76ee\u5f55\u6765\u5b58\u50a8\u8fd9\u4e9b\u5305\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir ~\/lvm2-packages\ncd ~\/lvm2-packages<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u8f7d lvm2 \u5305\u548c\u4f9d\u8d56\u5305\uff1a<br>\u4f7f\u7528 apt-get download \u548c apt-rdepends \u4e0b\u8f7d\u6240\u6709\u76f8\u5173\u5305\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install apt-rdepends\napt-rdepends lvm2 | grep -v \"^\\ \" | xargs apt-get download<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6253\u5305\u76ee\u5f55\u5e76\u4f20\u8f93\u81f3\u79bb\u7ebf\u7cfb\u7edf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zip lvm2-packages.zip lvm2-packages -r<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88c5<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u89e3\u538b\u540e\uff0c\u4f7f\u7528 dpkg \u547d\u4ee4\u5b89\u88c5\u6240\u6709\u5305\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>unzip lvm2-packages.zip\ncd \/home\/yourusername\/lvm2-packages\nsudo dpkg -i *.deb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u6709\u4f9d\u8d56\u5173\u7cfb\u95ee\u9898\uff0c\u53ef\u4ee5\u4f7f\u7528 apt-get -f install \u547d\u4ee4\u6765\u89e3\u51b3\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get -f install<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5076\u5c14\u9700\u8981\u7ed9\u79bb\u7ebf\u73af\u5883\u7684Ubuntu\u5b89\u88c5\u8f6f\u4ef6\u548c\u5b50\u4f9d\u8d56\u3002 \u67e5\u770b\u8981\u4e0b\u8f7d\u7684\u5305\u548c\u4f9d\u8d56 \u4e0b\u8f7d\u4f9d\u8d56\u5305 \u4ee5\u4e0b\u8f7dlvm2\u5305\u4e3a\u4f8b \u66f4\u65b0\u5305\u5217\u8868 \u4e0b\u8f7dlvm2\u53ca\u4f9d\u8d56\u5305 \u4f7f\u7528 apt-get download \u547d\u4ee4\u4e0b\u8f7d lvm2 \u5305\u548c\u5176\u6240\u6709\u4f9d\u8d56\u5305\u3002\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u76ee\u5f55\u6765\u5b58\u50a8\u8fd9\u4e9b\u5305\uff1a \u4e0b\u8f7d lvm2 \u5305\u548c\u4f9d\u8d56\u5305\uff1a\u4f7f\u7528 apt-get download \u548c apt-rdepends \u4e0b\u8f7d\u6240\u6709\u76f8\u5173\u5305\uff1a \u6253\u5305\u76ee\u5f55\u5e76\u4f20\u8f93\u81f3\u79bb\u7ebf\u7cfb\u7edf \u5b89\u88c5 \u89e3\u538b\u540e\uff0c\u4f7f\u7528 dpkg \u547d\u4ee4\u5b89\u88c5\u6240\u6709\u5305\uff1a \u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u6709\u4f9d\u8d56\u5173\u7cfb\u95ee\u9898\uff0c\u53ef\u4ee5\u4f7f\u7528 apt-get -f install \u547d\u4ee4\u6765\u89e3\u51b3\uff1a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-109","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/imakun.cn\/520\/wp-json\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imakun.cn\/520\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imakun.cn\/520\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imakun.cn\/520\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imakun.cn\/520\/wp-json\/wp\/v2\/comments?post=109"}],"version-history":[{"count":4,"href":"https:\/\/imakun.cn\/520\/wp-json\/wp\/v2\/posts\/109\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/imakun.cn\/520\/wp-json\/wp\/v2\/posts\/109\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/imakun.cn\/520\/wp-json\/wp\/v2\/media?parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imakun.cn\/520\/wp-json\/wp\/v2\/categories?post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imakun.cn\/520\/wp-json\/wp\/v2\/tags?post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}