{"id":5215,"date":"2026-01-12T12:37:28","date_gmt":"2026-01-12T03:37:28","guid":{"rendered":"https:\/\/eternalsphere.net\/echoes\/?p=5215"},"modified":"2026-06-06T10:12:34","modified_gmt":"2026-06-06T01:12:34","slug":"5s2l9lvth152050","status":"publish","type":"post","link":"https:\/\/eternalsphere.net\/echoes\/index.php\/2026\/01\/12\/5s2l9lvth152050\/","title":{"rendered":"\u4ece\u6df7\u4e71\u4e91\u955c\u50cf\u5230\u6781\u7b80\u7a33\u5b9a VPS\uff1a\u4e00\u6b21 Ubuntu \u670d\u52a1\u5668\u7626\u8eab\u4e0e\u4fee\u590d\u5b9e\u6218"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728\u4e91\u670d\u52a1\u5668\u73af\u5883\u4e2d\uff0cUbuntu \u5b98\u65b9 Cloud Image \u5f80\u5f80\u4e3a\u4e86\u201c\u901a\u7528\u6027\u201d\u800c\u5185\u7f6e\u4e86\u5927\u91cf\u9762\u5411\u7269\u7406\u673a\u3001\u684c\u9762\u6216\u5f00\u53d1\u73af\u5883\u7684\u7ec4\u4ef6\u3002\u8fd9\u4e9b\u7ec4\u4ef6\u5728 VPS \u4e0a\u4e0d\u4ec5\u6ca1\u6709\u610f\u4e49\uff0c\u8fd8\u4f1a\u5e26\u6765\u78c1\u76d8\u6d6a\u8d39\u3001\u5347\u7ea7\u98ce\u9669\u4ee5\u53ca\u4f9d\u8d56\u6df7\u4e71\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6587\u8bb0\u5f55\u4e86\u4e00\u6b21\u771f\u5b9e\u7684 Ubuntu 24.04\uff08noble\uff09\u4e91\u4e3b\u673a\u4fee\u590d\u4e0e\u6781\u7b80\u5316\u8fc7\u7a0b\uff0c\u4ece\u53d1\u73b0\u78c1\u76d8\u5f02\u5e38\u3001\u5b9a\u4f4d\u65e0\u7528\u7ec4\u4ef6\uff0c\u5230\u4fee\u590d APT \u4f9d\u8d56\u4e0e\u6e90\u6df7\u4e71\uff0c\u6700\u7ec8\u5c06\u7cfb\u7edf\u6062\u590d\u4e3a\u4e00\u4e2a<strong>\u5e72\u51c0\u3001\u7a33\u5b9a\u3001\u9002\u5408\u957f\u671f\u8fd0\u884c\u7f51\u7edc\u670d\u52a1\u7684 VPS \u7cfb\u7edf<\/strong>\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u95ee\u9898\u7684\u8d77\u70b9\uff1a\u5f02\u5e38\u81c3\u80bf\u7684 \/usr\/lib<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u5206\u6790 <code>\/usr\/lib<\/code> \u76ee\u5f55\u53d1\u73b0\u7cfb\u7edf\u4f53\u79ef\u8fdc\u5927\u4e8e\u5178\u578b VPS\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>du -h --max-depth=1 \/usr\/lib\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u4e2d\u5305\u542b\u5927\u91cf\u4e0d\u5e94\u51fa\u73b0\u5728 VPS \u4e0a\u7684\u7ec4\u4ef6\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u56fa\u4ef6\uff08firmware\uff09<\/li>\n\n\n\n<li>\u7f16\u8bd1\u5668\u4e0e LLVM<\/li>\n\n\n\n<li>Python \u4e91 SDK<\/li>\n\n\n\n<li>X11\u3001\u952e\u76d8\u3001\u5b57\u4f53<\/li>\n\n\n\n<li>\u591a\u5957\u5185\u6838\u6a21\u5757<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e9b\u90fd\u662f\u5178\u578b\u201c\u684c\u9762 \/ \u7269\u7406\u673a \/ \u5f00\u53d1\u73af\u5883\u201d\u9057\u7559\u7269\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u53d1\u73b0\u6839\u56e0\uff1aAPT \u6e90\u8de8\u533a\u57df\u5bfc\u81f4\u7248\u672c\u6f02\u79fb<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fdb\u4e00\u6b65\u6392\u67e5\u53d1\u73b0\u7cfb\u7edf\u4f7f\u7528\u4e86\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e3b\u4ed3\u5e93\uff1a\u5fb7\u56fd\u955c\u50cf<\/li>\n\n\n\n<li>\u5b89\u5168\u4ed3\u5e93\uff1a\u5168\u7403\u9ed8\u8ba4\u955c\u50cf<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 Ubuntu 24.04 \u7684 <code>.sources<\/code> \u683c\u5f0f\u4e0b\uff0c\u8fd9\u79cd\u8de8\u7ad9\u70b9\u7ec4\u5408\u6781\u6613\u5bfc\u81f4\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u540c\u4e00\u5305\u5728\u4e0d\u540c\u4ed3\u5e93\u4e2d\u7248\u672c\u4e0d\u540c<\/li>\n\n\n\n<li>APT \u4f9d\u8d56\u6811\u65e0\u6cd5\u89e3\u7b97<\/li>\n\n\n\n<li>systemd\u3001init \u7b49\u57fa\u7840\u5305\u51fa\u73b0\u201c\u5047\u6027\u51b2\u7a81\u201d<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u8868\u73b0\u4e3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>init : PreDepends: systemd-sysv but it is not going to be installed\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u662f\u5178\u578b\u7684<strong>\u4ed3\u5e93\u4e0d\u4e00\u81f4\u5bfc\u81f4\u7684\u4f9d\u8d56\u7834\u574f<\/strong>\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u6b63\u786e\u505a\u6cd5\uff1a\u7edf\u4e00\u4e3a\u65e5\u672c\u5b98\u65b9\u4ed3\u5e93<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ubuntu 24.04 \u91c7\u7528 <code>\/etc\/apt\/sources.list.d\/ubuntu.sources<\/code>\uff0c\u5fc5\u987b\u4fee\u6539\u8be5\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f20\u7edf <code>sources.list<\/code>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7edf\u4e00\u5207\u6362\u5230\u65e5\u672c\u5b98\u65b9\u955c\u50cf\uff08JAIST\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Types: deb\nURIs: http:\/\/ftp.jaist.ac.jp\/pub\/Linux\/ubuntu\/\nSuites: noble noble-updates noble-backports noble-security\nComponents: main restricted universe multiverse\nSigned-By: \/usr\/share\/keyrings\/ubuntu-archive-keyring.gpg\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u6e05\u7a7a\u7d22\u5f15\u5e76\u91cd\u5efa\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt clean\nsudo rm -rf \/var\/lib\/apt\/lists\/*\nsudo apt update\nsudo dpkg --configure -a\nsudo apt -f install\nsudo apt --fix-broken install\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u9a8c\u8bc1 systemd \u4f9d\u8d56\u5df2\u6062\u590d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-cache policy systemd-sysv\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u663e\u793a Installed \u4e0e Candidate \u4e00\u81f4\uff0c\u8bf4\u660e\u7cfb\u7edf\u5904\u4e8e\u53ef\u7ef4\u62a4\u72b6\u6001\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u4e3a\u4ec0\u4e48\u6b64\u65f6\u5e94\u505c\u6b62\u6fc0\u8fdb\u5220\u9664<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u6e90\u88ab\u4fee\u590d\u540e\uff0c\u7cfb\u7edf\u5df2\u7ecf\u6062\u590d\u4e3a\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u65e5\u672c\u5b98\u65b9 Ubuntu<\/li>\n\n\n\n<li>\u65e0 broken \u5305<\/li>\n\n\n\n<li>\u65e0 held \u5305<\/li>\n\n\n\n<li>systemd \/ init \u4f9d\u8d56\u6b63\u786e<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u65f6\u518d\u7ee7\u7eed\u7528 dpkg \u6216\u5f3a\u5236 purge \u5220\u9664\u5927\u91cf\u5e95\u5c42\u5e93\uff0c\u6536\u76ca\u5f00\u59cb\u5c0f\u4e8e\u98ce\u9669\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u6700\u7ec8\u6210\u679c<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u78c1\u76d8\u72b6\u6001\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -h\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ed3\u679c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/dev\/vda1   4.9G   1.5G   3.2G   32%   \/\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e5f\u5c31\u662f\u8bf4\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u5b8c\u6574 Ubuntu 24.04 VPS \u7cfb\u7edf\uff0c\u4ec5\u5360\u7528\u7ea6 1.5GB<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u5df2\u7ecf\u8fdc\u5c0f\u4e8e\u9ed8\u8ba4 Cloud Image\uff08\u901a\u5e38 2.5\u20133.5GB\uff09\uff0c\u63a5\u8fd1\u201c\u670d\u52a1\u5668\u6781\u7b80\u5316\u201d\u7684\u5408\u7406\u4e0b\u9650\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u8fd9\u6b21\u64cd\u4f5c\u771f\u6b63\u7684\u4ef7\u503c<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u6b21\u5de5\u4f5c\u4e0d\u4ec5\u662f\u201c\u5220\u6587\u4ef6\u201d\uff0c\u800c\u662f\u5b8c\u6210\u4e86\u66f4\u91cd\u8981\u7684\u4e00\u4ef6\u4e8b\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u628a\u4e00\u53f0\u201c\u6e90\u9519\u4f4d\u3001\u4f9d\u8d56\u6f5c\u5728\u635f\u574f\u7684\u4e91\u955c\u50cf\u201d<br>\u4fee\u590d\u4e3a\u201c\u65e5\u672c\u5b98\u65b9\u3001\u53ef\u5347\u7ea7\u3001\u53ef\u957f\u671f\u8fd0\u884c\u7684\u5e72\u51c0 VPS\u201d<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u79cd\u72b6\u6001\u4e0b\u7684\u7cfb\u7edf\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>apt upgrade \u5b89\u5168<\/li>\n\n\n\n<li>\u5feb\u7167\u4e0e\u8fc1\u79fb\u53ef\u9760<\/li>\n\n\n\n<li>\u670d\u52a1\u90e8\u7f72\u7a33\u5b9a<\/li>\n\n\n\n<li>\u6545\u969c\u6062\u590d\u53ef\u63a7<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u957f\u671f\u8fd0\u884c FRP\u3001\u4ee3\u7406\u3001\u4e2d\u7ee7\u3001\u5bb9\u5668\u7b49\u670d\u52a1\u6765\u8bf4\uff0c\u8fd9\u6bd4\u518d\u7701 200\u2013300MB \u78c1\u76d8\u66f4\u91cd\u8981\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e03\u3001\u7ed3\u8bba<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u4e91\u670d\u52a1\u5668\u73af\u5883\u4e2d\uff0c\u771f\u6b63\u7684\u4f18\u5316\u987a\u5e8f\u662f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u6e90\u4e00\u81f4\u6027<\/strong><\/li>\n\n\n\n<li><strong>\u4f9d\u8d56\u5b8c\u6574\u6027<\/strong><\/li>\n\n\n\n<li><strong>\u7cfb\u7edf\u89d2\u8272\u5339\u914d<\/strong><\/li>\n\n\n\n<li>\u624d\u662f\u4f53\u79ef\u4f18\u5316<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ea\u6709\u5148\u4fee\u590d\u4ed3\u5e93\u4e0e\u4f9d\u8d56\uff0c\u7626\u8eab\u624d\u662f\u5b89\u5168\u7684\u3002<br>\u8fd9\u6b21\u5b9e\u8df5\u8bc1\u660e\uff1a\u4e00\u4e2a\u5e72\u51c0\u3001\u53ef\u7ef4\u62a4\u7684 Ubuntu VPS\uff0c\u5b8c\u5168\u53ef\u4ee5\u5728 1.5GB \u4ee5\u5185\u7a33\u5b9a\u8fd0\u884c\u591a\u5e74\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e91\u670d\u52a1\u5668\u73af\u5883\u4e2d\uff0cUbuntu \u5b98\u65b9 Cloud Image \u5f80\u5f80\u4e3a\u4e86\u201c\u901a\u7528\u6027\u201d\u800c\u5185\u7f6e\u4e86\u5927\u91cf\u9762\u5411\u7269\u7406\u673a\u3001\u684c\u9762\u6216\u5f00\u53d1\u73af\u5883\u7684\u7ec4\u4ef6\u3002\u8fd9\u4e9b\u7ec4\u4ef6\u5728 VPS \u4e0a\u4e0d\u4ec5\u6ca1\u6709\u610f\u4e49\uff0c\u8fd8\u4f1a\u5e26\u6765\u78c1\u76d8\u6d6a\u8d39\u3001\u5347\u7ea7\u98ce\u9669\u4ee5\u53ca\u4f9d\u8d56\u6df7\u4e71\u3002 \u672c\u6587\u8bb0\u5f55\u4e86\u4e00\u6b21\u771f\u5b9e\u7684 Ubuntu 24.04\uff08noble\uff09\u4e91\u4e3b\u673a\u4fee\u590d\u4e0e\u6781\u7b80\u5316\u8fc7\u7a0b\uff0c\u4ece\u53d1\u73b0\u78c1\u76d8\u5f02\u5e38\u3001\u5b9a\u4f4d\u65e0\u7528\u7ec4\u4ef6\uff0c\u5230\u4fee\u590d APT \u4f9d\u8d56\u4e0e\u6e90\u6df7\u4e71\uff0c\u6700\u7ec8\u5c06\u7cfb\u7edf\u6062\u590d\u4e3a\u4e00\u4e2a\u5e72\u51c0\u3001\u7a33\u5b9a\u3001\u9002\u5408\u957f\u671f\u8fd0\u884c\u7f51\u7edc\u670d\u52a1\u7684 VPS \u7cfb\u7edf\u3002 \u4e00\u3001\u95ee\u9898\u7684\u8d77\u70b9\uff1a\u5f02\u5e38\u81c3\u80bf\u7684 \/usr\/lib \u901a\u8fc7\u5206\u6790 \/usr\/lib \u76ee\u5f55\u53d1\u73b0\u7cfb\u7edf\u4f53\u79ef\u8fdc\u5927\u4e8e\u5178\u578b VPS\uff1a \u5176\u4e2d\u5305\u542b\u5927\u91cf\u4e0d\u5e94\u51fa\u73b0\u5728 VPS \u4e0a\u7684\u7ec4\u4ef6\uff1a \u8fd9\u4e9b\u90fd\u662f\u5178\u578b\u201c\u684c\u9762 \/ \u7269\u7406\u673a \/ \u5f00\u53d1\u73af\u5883\u201d\u9057\u7559\u7269\u3002 \u4e8c\u3001\u53d1\u73b0\u6839\u56e0\uff1aAPT \u6e90\u8de8\u533a\u57df\u5bfc\u81f4\u7248\u672c\u6f02\u79fb \u8fdb\u4e00\u6b65\u6392\u67e5\u53d1\u73b0\u7cfb\u7edf\u4f7f\u7528\u4e86\uff1a \u5728 Ubuntu 24.04 \u7684 .sources \u683c\u5f0f\u4e0b\uff0c\u8fd9\u79cd\u8de8\u7ad9\u70b9\u7ec4\u5408\u6781\u6613\u5bfc\u81f4\uff1a \u8868\u73b0\u4e3a\uff1a \u8fd9\u662f\u5178\u578b\u7684\u4ed3\u5e93\u4e0d\u4e00\u81f4\u5bfc\u81f4\u7684\u4f9d\u8d56\u7834\u574f\u3002 \u4e09\u3001\u6b63\u786e\u505a\u6cd5\uff1a\u7edf\u4e00\u4e3a\u65e5\u672c\u5b98\u65b9\u4ed3\u5e93 Ubuntu 24.04 \u91c7\u7528 \/etc\/apt\/sources.list.d\/ubuntu.sources\uff0c\u5fc5\u987b\u4fee\u6539\u8be5\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f20\u7edf sources.list\u3002 \u7edf\u4e00\u5207\u6362\u5230\u65e5\u672c\u5b98\u65b9\u955c\u50cf\uff08JAIST\uff09\uff1a \u7136\u540e\u6e05\u7a7a\u7d22\u5f15\u5e76\u91cd\u5efa\uff1a \u9a8c\u8bc1 systemd \u4f9d\u8d56\u5df2\u6062\u590d\uff1a &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118],"tags":[],"class_list":["post-5215","post","type-post","status-publish","format-standard","hentry","category-tm5418kixf8ipqv"],"_links":{"self":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/5215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/comments?post=5215"}],"version-history":[{"count":1,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/5215\/revisions"}],"predecessor-version":[{"id":5216,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/5215\/revisions\/5216"}],"wp:attachment":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/media?parent=5215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/categories?post=5215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/tags?post=5215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}