mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
1 line
68 KiB
JavaScript
1 line
68 KiB
JavaScript
"use strict";(self.webpackChunkzhenxun_docs=self.webpackChunkzhenxun_docs||[]).push([[5827],{9800:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>r,contentTitle:()=>o,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var i=t(4848),a=t(8453);const l={title:"Linux\u5c0f\u767d\u5b89\u88c5\u6559\u7a0b",subSidebar:!1,id:"install_xiaobai"},o=void 0,u={id:"install_xiaobai",title:"Linux\u5c0f\u767d\u5b89\u88c5\u6559\u7a0b",description:"\u6559\u7a0b\u73af\u5883\u4e3a\u5168\u65b0\u672a\u5f00\u5c01\u7684 Ubuntu 24.04.1 LTS \u7248\uff0c\u8bf7\u6ce8\u610f\u7cfb\u7edf\u7248\u672c\u662f\u5426\u4e00\u81f4\uff0c\u4f7f\u7528\u7684\u4e3a\u684c\u9762\u7248\uff0c\u4e0e\u670d\u52a1\u5668\u7248\u672c\u5e76\u65e0\u592a\u5927\u5dee\u522b\uff0c\u5982\u9047\u5230\u6559\u7a0b\u5916\u7684\u60c5\u51b5\u8bf7\u6dfb\u52a0 \u771f\u5bfb\u9171\u7684\u6280\u672f\u7fa4 \u8fdb\u884c\u6c42\u52a9",source:"@site/docs/install_xiaobai.md",sourceDirName:".",slug:"/install_xiaobai",permalink:"/zhenxun_bot/install_xiaobai",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/install_xiaobai.md",tags:[],version:"current",frontMatter:{title:"Linux\u5c0f\u767d\u5b89\u88c5\u6559\u7a0b",subSidebar:!1,id:"install_xiaobai"},sidebar:"tutorialSidebar",previous:{title:"\u5b89\u88c5\u5c0f\u771f\u5bfb(nb-cli)",permalink:"/zhenxun_bot/install/zhenxun/nb-install-zhenxun"},next:{title:"\u5173\u4e8e(about)",permalink:"/zhenxun_bot/usage/builtin_plugins/about"}},r={},s=[{value:"\u6559\u7a0b\u73af\u5883",id:"\u6559\u7a0b\u73af\u5883",level:4},{value:"\u73af\u5883\u5b89\u88c5",id:"\u73af\u5883\u5b89\u88c5",level:4},{value:"\u6362deb\u6e90\u4e3a\u963f\u91cc",id:"\u6362deb\u6e90\u4e3a\u963f\u91cc",level:5},{value:"\u5907\u4efd\u539f\u6587\u4ef6",id:"\u5907\u4efd\u539f\u6587\u4ef6",level:6},{value:"\u6362\u6e90",id:"\u6362\u6e90",level:6},{value:"\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868",id:"\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868",level:5},{value:"\u6062\u590d\u539f\u6587\u4ef6",id:"\u6062\u590d\u539f\u6587\u4ef6",level:6},{value:"\u5b89\u88c5git\u5de5\u5177",id:"\u5b89\u88c5git\u5de5\u5177",level:5},{value:"\u5b89\u88c5pip3",id:"\u5b89\u88c5pip3",level:5},{value:"\u5b89\u88c5poetry",id:"\u5b89\u88c5poetry",level:5},{value:"\u5b89\u88c5\u771f\u5bfb",id:"\u5b89\u88c5\u771f\u5bfb",level:4},{value:"\u62c9\u53d6\u6700\u65b0\u4ee3\u7801",id:"\u62c9\u53d6\u6700\u65b0\u4ee3\u7801",level:5},{value:"\u5b89\u88c5\u4f9d\u8d56",id:"\u5b89\u88c5\u4f9d\u8d56",level:5},{value:"\u8fdb\u5165\u9879\u76ee\u76ee\u5f55",id:"\u8fdb\u5165\u9879\u76ee\u76ee\u5f55",level:6},{value:"\u8fd0\u884c\u5b89\u88c5\u4f9d\u8d56\u547d\u4ee4",id:"\u8fd0\u884c\u5b89\u88c5\u4f9d\u8d56\u547d\u4ee4",level:6},{value:"\u624b\u52a8\u5b89\u88c5playwright",id:"\u624b\u52a8\u5b89\u88c5playwright",level:6},{value:"\u914d\u7f6e\u771f\u5bfb",id:"\u914d\u7f6e\u771f\u5bfb",level:4},{value:"\u6570\u636e\u5e93\u914d\u7f6e",id:"\u6570\u636e\u5e93\u914d\u7f6e",level:5},{value:"\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\u540e\u8fd0\u884c",id:"\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\u540e\u8fd0\u884c",level:6},{value:"\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<code>.env.dev</code>",id:"\u4fee\u6539\u914d\u7f6e\u6587\u4ef6envdev",level:6},{value:"vi\u7f16\u8f91\u5668\u547d\u4ee4\u4fee\u6539\u6f14\u793a",id:"vi\u7f16\u8f91\u5668\u547d\u4ee4\u4fee\u6539\u6f14\u793a",level:5},{value:"\u5176\u4f59\u914d\u7f6e",id:"\u5176\u4f59\u914d\u7f6e",level:5},{value:"\u5176\u4e2d <code>123456789</code> \u4e3a\u8d85\u7ea7\u7528\u6237\uff08\u4e3b\u4eba\uff09qq\u53f7\u8bf7\u81ea\u884c\u4fee\u6539",id:"\u5176\u4e2d-123456789-\u4e3a\u8d85\u7ea7\u7528\u6237\u4e3b\u4ebaqq\u53f7\u8bf7\u81ea\u884c\u4fee\u6539",level:6},{value:"\u8fd0\u884c\u771f\u5bfb",id:"\u8fd0\u884c\u771f\u5bfb",level:4}];function c(n){const e={a:"a",admonition:"admonition",code:"code",h4:"h4",h5:"h5",h6:"h6",img:"img",p:"p",pre:"pre",strong:"strong",...(0,a.R)(),...n.components},{Details:l}=e;return l||function(n,e){throw new Error("Expected "+(e?"component":"object")+" `"+n+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.admonition,{type:"tip",children:(0,i.jsxs)(e.p,{children:["\u6559\u7a0b\u73af\u5883\u4e3a\u5168\u65b0\u672a\u5f00\u5c01\u7684 ",(0,i.jsx)(e.strong,{children:"Ubuntu 24.04.1 LTS"})," \u7248\uff0c\u8bf7\u6ce8\u610f\u7cfb\u7edf\u7248\u672c\u662f\u5426\u4e00\u81f4\uff0c\u4f7f\u7528\u7684\u4e3a\u684c\u9762\u7248\uff0c\u4e0e\u670d\u52a1\u5668\u7248\u672c\u5e76\u65e0\u592a\u5927\u5dee\u522b\uff0c\u5982\u9047\u5230\u6559\u7a0b\u5916\u7684\u60c5\u51b5\u8bf7\u6dfb\u52a0 ",(0,i.jsx)(e.a,{href:"https://qm.qq.com/q/YYYt5rkMYc",children:"\u771f\u5bfb\u9171\u7684\u6280\u672f\u7fa4"})," \u8fdb\u884c\u6c42\u52a9"]})}),"\n",(0,i.jsx)(e.h4,{id:"\u6559\u7a0b\u73af\u5883",children:"\u6559\u7a0b\u73af\u5883"}),"\n",(0,i.jsx)(e.p,{children:"\u670d\u52a1\u5668\u4fe1\u606f\uff1aUbuntu 24.04.1 LTS (GNU/Linux 6.8.0-49-generic x86_64)"}),"\n",(0,i.jsx)(e.p,{children:"Python\u7248\u672c\uff1a3.12.3"}),"\n",(0,i.jsxs)(e.p,{children:["ssh\u8fde\u63a5\u5de5\u5177\uff1a",(0,i.jsx)(e.a,{href:"https://www.hostbuf.com",children:"FinalShell"})]}),"\n",(0,i.jsx)(e.p,{children:"\u7cfb\u7edf\u540d\u79f0\uff1azhenxun"}),"\n",(0,i.jsx)(e.p,{children:"\u8fde\u63a5\u7528\u6237\uff1azhenxun"}),"\n",(0,i.jsx)(e.p,{children:"\u73af\u5883\u8bed\u97f3\uff1a\u4e2d\u6587\u7b80\u4f53"}),"\n",(0,i.jsx)(e.h4,{id:"\u73af\u5883\u5b89\u88c5",children:"\u73af\u5883\u5b89\u88c5"}),"\n",(0,i.jsx)(e.h5,{id:"\u6362deb\u6e90\u4e3a\u963f\u91cc",children:"\u6362deb\u6e90\u4e3a\u963f\u91cc"}),"\n",(0,i.jsx)(e.admonition,{type:"warning",children:(0,i.jsx)(e.p,{children:"\u8bf7\u6ce8\u610f\u7cfb\u7edf\u7248\u672c\u662f\u5426\u4e0e\u6559\u7a0b\u4e00\u81f4\uff0c\u4e0d\u4e00\u6837\u8bf7\u8df3\u8fc7\u6b64\u6b65\u9aa4\uff01"})}),"\n",(0,i.jsx)(e.h6,{id:"\u5907\u4efd\u539f\u6587\u4ef6",children:"\u5907\u4efd\u539f\u6587\u4ef6"}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak"})}),"\n",(0,i.jsx)(e.h6,{id:"\u6362\u6e90",children:"\u6362\u6e90"}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-shell",children:"sudo tee /etc/apt/sources.list > /dev/null << EOF\ndeb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse\ndeb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse\ndeb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse\ndeb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse\nEOF\n"})}),"\n",(0,i.jsx)(e.admonition,{title:"\u63d0\u793a",type:"tip",children:(0,i.jsx)(e.p,{children:"\u8fd0\u884csudo\u547d\u4ee4\u65f6\u4f1a\u63d0\u5347\u8f93\u5165\u5bc6\u7801\uff0c\u6b64\u65f6\u5bc6\u7801\u8f93\u5165\u540e\u4e3a\u4e0d\u53ef\u89c1\u72b6\u6001\uff0c\u5e76\u4e0d\u662f\u8f93\u5165\u5931\u8d25\uff0c\u8f93\u5165\u5b8c\u6210\u540e\u56de\u8f66\u5373\u53ef"})}),"\n",(0,i.jsxs)(l,{children:[(0,i.jsx)("summary",{children:"\u70b9\u51fb\u67e5\u770b\u8be6\u7ec6\u8f93\u51fa"}),(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-shell",children:"zhenxun@zhenxun:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak\n[sudo] zhenxun \u7684\u5bc6\u7801\uff1a\nzhenxun@zhenxun:~$ sudo tee /etc/apt/sources.list > /dev/null << EOF\n> deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse\n> deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse\n> deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse\n> deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse\n> EOF\nzhenxun@zhenxun:~$\n"})})]}),"\n",(0,i.jsx)(e.h5,{id:"\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868",children:"\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868"}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"sudo apt update"})}),"\n",(0,i.jsxs)(l,{children:[(0,i.jsx)("summary",{children:"\u70b9\u51fb\u67e5\u770b\u8be6\u7ec6\u8f93\u51fa"}),(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-shell",children:"zhenxun@zhenxun:~$ sudo apt update\n\u83b7\u53d6:1 http://mirrors.aliyun.com/ubuntu focal InRelease [265 kB]\n\u83b7\u53d6:2 http://mirrors.aliyun.com/ubuntu focal-updates InRelease [128 kB]\n\u83b7\u53d6:3 http://mirrors.aliyun.com/ubuntu focal-backports InRelease [128 kB]\n\u83b7\u53d6:4 http://mirrors.aliyun.com/ubuntu focal-security InRelease [128 kB]\n\u83b7\u53d6:5 http://mirrors.aliyun.com/ubuntu focal/main amd64 Packages [970 kB]\n\u83b7\u53d6:6 http://mirrors.aliyun.com/ubuntu focal/main Translation-en [506 kB]\n\u83b7\u53d6:7 http://mirrors.aliyun.com/ubuntu focal/main Translation-zh_CN [113 kB]\n\u83b7\u53d6:8 http://mirrors.aliyun.com/ubuntu focal/main amd64 Components [494 kB]\n\u83b7\u53d6:9 http://mirrors.aliyun.com/ubuntu focal/main Icons (48x48) [98.4 kB]\n\u83b7\u53d6:10 http://mirrors.aliyun.com/ubuntu focal/main Icons (64x64) [163 kB]\n\u83b7\u53d6:11 http://mirrors.aliyun.com/ubuntu focal/main Icons (64x64@2) [15.8 kB]\n\u83b7\u53d6:12 http://mirrors.aliyun.com/ubuntu focal/main amd64 c-n-f Metadata [29.5 kB]\n\u83b7\u53d6:13 http://mirrors.aliyun.com/ubuntu focal/restricted amd64 Packages [22.0 kB]\n\u83b7\u53d6:14 http://mirrors.aliyun.com/ubuntu focal/restricted Translation-en [6,212 B]\n\u83b7\u53d6:15 http://mirrors.aliyun.com/ubuntu focal/restricted Translation-zh_CN [1,324 B]\n\u83b7\u53d6:16 http://mirrors.aliyun.com/ubuntu focal/restricted amd64 c-n-f Metadata [392 B]\n\u83b7\u53d6:17 http://mirrors.aliyun.com/ubuntu focal/universe amd64 Packages [8,628 kB]\n\u547d\u4e2d:18 http://security.ubuntu.com/ubuntu noble-security InRelease\n\u83b7\u53d6:19 http://mirrors.aliyun.com/ubuntu focal/universe Translation-zh_CN [388 kB]\n\u83b7\u53d6:20 http://mirrors.aliyun.com/ubuntu focal/universe Translation-en [5,124 kB]\n\u547d\u4e2d:21 https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu noble InRelease\n\u83b7\u53d6:22 http://mirrors.aliyun.com/ubuntu focal/universe amd64 Components [3,603 kB]\n\u83b7\u53d6:23 http://mirrors.aliyun.com/ubuntu focal/universe Icons (48x48) [3,016 kB]\n\u83b7\u53d6:24 http://mirrors.aliyun.com/ubuntu focal/universe Icons (64x64) [7,794 kB]\n\u83b7\u53d6:25 http://mirrors.aliyun.com/ubuntu focal/universe Icons (64x64@2) [44.3 kB]\n\u83b7\u53d6:26 http://mirrors.aliyun.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB]\n\u83b7\u53d6:27 http://mirrors.aliyun.com/ubuntu focal/multiverse amd64 Packages [144 kB]\n\u83b7\u53d6:28 http://mirrors.aliyun.com/ubuntu focal/multiverse Translation-en [104 kB]\n\u83b7\u53d6:29 http://mirrors.aliyun.com/ubuntu focal/multiverse Translation-zh_CN [4,612 B]\n\u83b7\u53d6:30 http://mirrors.aliyun.com/ubuntu focal/multiverse amd64 Components [48.4 kB]\n\u83b7\u53d6:31 http://mirrors.aliyun.com/ubuntu focal/multiverse Icons (48x48) [23.1 kB]\n\u83b7\u53d6:32 http://mirrors.aliyun.com/ubuntu focal/multiverse Icons (64x64) [192 kB]\n\u83b7\u53d6:33 http://mirrors.aliyun.com/ubuntu focal/multiverse Icons (64x64@2) [214 B]\n\u83b7\u53d6:34 http://mirrors.aliyun.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9,136 B]\n\u83b7\u53d6:35 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 Packages [3,680 kB]\n\u83b7\u53d6:37 http://mirrors.aliyun.com/ubuntu focal-updates/main Translation-en [564 kB]\n\u83b7\u53d6:38 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 Components [276 kB]\n\u83b7\u53d6:39 http://mirrors.aliyun.com/ubuntu focal-updates/main Icons (48x48) [63.9 kB]\n\u83b7\u53d6:40 http://mirrors.aliyun.com/ubuntu focal-updates/main Icons (64x64) [102 kB]\n\u547d\u4e2d:36 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble InRelease\n\u83b7\u53d6:41 http://mirrors.aliyun.com/ubuntu focal-updates/main Icons (64x64@2) [29 B]\n\u83b7\u53d6:42 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 c-n-f Metadata [17.8 kB]\n\u83b7\u53d6:43 http://mirrors.aliyun.com/ubuntu focal-updates/restricted amd64 Packages [3,379 kB]\n\u83b7\u53d6:44 http://mirrors.aliyun.com/ubuntu focal-updates/restricted Translation-en [473 kB]\n\u83b7\u53d6:45 http://mirrors.aliyun.com/ubuntu focal-updates/restricted amd64 Components [212 B]\n\u83b7\u53d6:46 http://mirrors.aliyun.com/ubuntu focal-updates/restricted Icons (48x48) [29 B]\n\u83b7\u53d6:47 http://mirrors.aliyun.com/ubuntu focal-updates/restricted Icons (64x64) [29 B]\n\u83b7\u53d6:48 http://mirrors.aliyun.com/ubuntu focal-updates/restricted Icons (64x64@2) [29 B]\n\u83b7\u53d6:49 http://mirrors.aliyun.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [548 B]\n\u83b7\u53d6:50 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 Packages [1,238 kB]\n\u83b7\u53d6:51 http://mirrors.aliyun.com/ubuntu focal-updates/universe Translation-en [297 kB]\n\u83b7\u53d6:52 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 Components [445 kB]\n\u83b7\u53d6:54 http://mirrors.aliyun.com/ubuntu focal-updates/universe Icons (48x48) [297 kB]\n\u547d\u4e2d:53 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates InRelease\n\u83b7\u53d6:55 http://mirrors.aliyun.com/ubuntu focal-updates/universe Icons (64x64) [520 kB]\n\u547d\u4e2d:56 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports InRelease\n\u83b7\u53d6:57 http://mirrors.aliyun.com/ubuntu focal-updates/universe Icons (64x64@2) [29 B]\n\u83b7\u53d6:58 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [28.3 kB]\n\u83b7\u53d6:59 http://mirrors.aliyun.com/ubuntu focal-updates/multiverse amd64 Packages [27.0 kB]\n\u83b7\u53d6:60 http://mirrors.aliyun.com/ubuntu focal-updates/multiverse Translation-en [7,936 B]\n\u83b7\u53d6:61 http://mirrors.aliyun.com/ubuntu focal-updates/multiverse amd64 Components [940 B]\n\u83b7\u53d6:62 http://mirrors.aliyun.com/ubuntu focal-updates/multiverse Icons (48x48) [1,867 B]\n\u83b7\u53d6:63 http://mirrors.aliyun.com/ubuntu focal-updates/multiverse Icons (64x64) [2,497 B]\n\u83b7\u53d6:64 http://mirrors.aliyun.com/ubuntu focal-updates/multiverse Icons (64x64@2) [29 B]\n\u83b7\u53d6:65 http://mirrors.aliyun.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [612 B]\n\u83b7\u53d6:66 http://mirrors.aliyun.com/ubuntu focal-backports/main amd64 Packages [45.7 kB]\n\u83b7\u53d6:67 http://mirrors.aliyun.com/ubuntu focal-backports/main Translation-en [16.3 kB]\n\u83b7\u53d6:68 http://mirrors.aliyun.com/ubuntu focal-backports/main amd64 Components [7,980 B]\n\u83b7\u53d6:69 http://mirrors.aliyun.com/ubuntu focal-backports/main Icons (48x48) [7,156 B]\n\u83b7\u53d6:70 http://mirrors.aliyun.com/ubuntu focal-backports/main Icons (64x64) [10.7 kB]\n\u83b7\u53d6:71 http://mirrors.aliyun.com/ubuntu focal-backports/main Icons (64x64@2) [29 B]\n\u83b7\u53d6:72 http://mirrors.aliyun.com/ubuntu focal-backports/main amd64 c-n-f Metadata [1,420 B]\n\u83b7\u53d6:73 http://mirrors.aliyun.com/ubuntu focal-backports/restricted amd64 Components [216 B]\n\u83b7\u53d6:74 http://mirrors.aliyun.com/ubuntu focal-backports/restricted Icons (48x48) [29 B]\n\u83b7\u53d6:75 http://mirrors.aliyun.com/ubuntu focal-backports/restricted Icons (64x64) [29 B]\n\u83b7\u53d6:76 http://mirrors.aliyun.com/ubuntu focal-backports/restricted Icons (64x64@2) [29 B]\n\u83b7\u53d6:77 http://mirrors.aliyun.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B]\n\u83b7\u53d6:78 http://mirrors.aliyun.com/ubuntu focal-backports/universe amd64 Packages [25.0 kB]\n\u83b7\u53d6:79 http://mirrors.aliyun.com/ubuntu focal-backports/universe Translation-en [16.3 kB]\n\u83b7\u53d6:80 http://mirrors.aliyun.com/ubuntu focal-backports/universe amd64 Components [30.5 kB]\n\u83b7\u53d6:81 http://mirrors.aliyun.com/ubuntu focal-backports/universe Icons (48x48) [13.3 kB]\n\u83b7\u53d6:82 http://mirrors.aliyun.com/ubuntu focal-backports/universe Icons (64x64) [22.7 kB]\n\u83b7\u53d6:83 http://mirrors.aliyun.com/ubuntu focal-backports/universe Icons (64x64@2) [29 B]\n\u83b7\u53d6:84 http://mirrors.aliyun.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [880 B]\n\u83b7\u53d6:85 http://mirrors.aliyun.com/ubuntu focal-backports/multiverse amd64 Components [212 B]\n\u83b7\u53d6:86 http://mirrors.aliyun.com/ubuntu focal-backports/multiverse Icons (48x48) [29 B]\n\u83b7\u53d6:87 http://mirrors.aliyun.com/ubuntu focal-backports/multiverse Icons (64x64) [29 B]\n\u83b7\u53d6:88 http://mirrors.aliyun.com/ubuntu focal-backports/multiverse Icons (64x64@2) [29 B]\n\u83b7\u53d6:89 http://mirrors.aliyun.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B]\n\u83b7\u53d6:90 http://mirrors.aliyun.com/ubuntu focal-security/main amd64 Packages [3,304 kB]\n\u83b7\u53d6:91 http://mirrors.aliyun.com/ubuntu focal-security/main Translation-en [484 kB]\n\u83b7\u53d6:92 http://mirrors.aliyun.com/ubuntu focal-security/main amd64 Components [65.4 kB]\n\u83b7\u53d6:93 http://mirrors.aliyun.com/ubuntu focal-security/main Icons (48x48) [24.2 kB]\n\u83b7\u53d6:94 http://mirrors.aliyun.com/ubuntu focal-security/main Icons (64x64) [42.9 kB]\n\u83b7\u53d6:95 http://mirrors.aliyun.com/ubuntu focal-security/main Icons (64x64@2) [29 B]\n\u83b7\u53d6:96 http://mirrors.aliyun.com/ubuntu focal-security/main amd64 c-n-f Metadata [14.3 kB]\n\u83b7\u53d6:97 http://mirrors.aliyun.com/ubuntu focal-security/restricted amd64 Packages [3,247 kB]\n\u83b7\u53d6:98 http://mirrors.aliyun.com/ubuntu focal-security/restricted Translation-en [456 kB]\n\u83b7\u53d6:99 http://mirrors.aliyun.com/ubuntu focal-security/restricted amd64 Components [212 B]\n\u83b7\u53d6:100 http://mirrors.aliyun.com/ubuntu focal-security/restricted Icons (48x48) [29 B]\n\u83b7\u53d6:101 http://mirrors.aliyun.com/ubuntu focal-security/restricted Icons (64x64) [29 B]\n\u83b7\u53d6:102 http://mirrors.aliyun.com/ubuntu focal-security/restricted Icons (64x64@2) [29 B]\n\u83b7\u53d6:103 http://mirrors.aliyun.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [548 B]\n\u83b7\u53d6:104 http://mirrors.aliyun.com/ubuntu focal-security/universe amd64 Packages [1,016 kB]\n\u83b7\u53d6:105 http://mirrors.aliyun.com/ubuntu focal-security/universe Translation-en [215 kB]\n\u83b7\u53d6:106 http://mirrors.aliyun.com/ubuntu focal-security/universe amd64 Components [160 kB]\n\u83b7\u53d6:107 http://mirrors.aliyun.com/ubuntu focal-security/universe Icons (48x48) [95.4 kB]\n\u83b7\u53d6:108 http://mirrors.aliyun.com/ubuntu focal-security/universe Icons (64x64) [166 kB]\n\u83b7\u53d6:109 http://mirrors.aliyun.com/ubuntu focal-security/universe Icons (64x64@2) [29 B]\n\u83b7\u53d6:110 http://mirrors.aliyun.com/ubuntu focal-security/universe amd64 c-n-f Metadata [21.4 kB]\n\u83b7\u53d6:111 http://mirrors.aliyun.com/ubuntu focal-security/multiverse amd64 Packages [24.8 kB]\n\u83b7\u53d6:112 http://mirrors.aliyun.com/ubuntu focal-security/multiverse Translation-en [5,968 B]\n\u83b7\u53d6:113 http://mirrors.aliyun.com/ubuntu focal-security/multiverse amd64 Components [940 B]\n\u83b7\u53d6:114 http://mirrors.aliyun.com/ubuntu focal-security/multiverse Icons (48x48) [1,867 B]\n\u83b7\u53d6:115 http://mirrors.aliyun.com/ubuntu focal-security/multiverse Icons (64x64) [2,497 B]\n\u83b7\u53d6:116 http://mirrors.aliyun.com/ubuntu focal-security/multiverse Icons (64x64@2) [29 B]\n\u83b7\u53d6:117 http://mirrors.aliyun.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [540 B]\n\u5df2\u4e0b\u8f7d 53.4 MB\uff0c\u8017\u65f6 10\u79d2 (5,199 kB/s)\n\u6b63\u5728\u8bfb\u53d6\u8f6f\u4ef6\u5305\u5217\u8868... \u5b8c\u6210\n\u6b63\u5728\u5206\u6790\u8f6f\u4ef6\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\u6811... \u5b8c\u6210\n\u6b63\u5728\u8bfb\u53d6\u72b6\u6001\u4fe1\u606f... \u5b8c\u6210\n\u6709 3 \u4e2a\u8f6f\u4ef6\u5305\u53ef\u4ee5\u5347\u7ea7\u3002\u8bf7\u6267\u884c \u2018apt list --upgradable\u2019 \u6765\u67e5\u770b\u5b83\u4eec\n"})})]}),"\n",(0,i.jsx)(e.admonition,{title:"\u63d0\u793a",type:"tip",children:(0,i.jsx)(e.p,{children:"\u8fd0\u884c\u5230\u5df2\u4e0b\u8f7d\u65f6\u53ef\u80fd\u4f1a\u5361\u4f4f\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85\u3002\u5982\u9047\u5230\u8f6f\u4ef6\u6e90\u9519\u8bef\u95ee\u9898\u8bf7\u5c1d\u8bd5\u6062\u590d\u5907\u4efd\u6587\u4ef6\u540e\u518d\u91cd\u65b0\u8fd0\u884c\u547d\u4ee4"})}),"\n",(0,i.jsx)(e.h6,{id:"\u6062\u590d\u539f\u6587\u4ef6",children:"\u6062\u590d\u539f\u6587\u4ef6"}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"sudo mv /etc/apt/sources.list.bak /etc/apt/sources.list"})}),"\n",(0,i.jsx)(e.h5,{id:"\u5b89\u88c5git\u5de5\u5177",children:"\u5b89\u88c5git\u5de5\u5177"}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"sudo apt install git"})}),"\n",(0,i.jsxs)(l,{children:[(0,i.jsx)("summary",{children:"\u70b9\u51fb\u67e5\u770b\u8be6\u7ec6\u8f93\u51fa"}),(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-shell",children:"zhenxun@zhenxun:~$ sudo apt install git\n\u6b63\u5728\u8bfb\u53d6\u8f6f\u4ef6\u5305\u5217\u8868... \u5b8c\u6210\n\u6b63\u5728\u5206\u6790\u8f6f\u4ef6\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\u6811... \u5b8c\u6210\n\u6b63\u5728\u8bfb\u53d6\u72b6\u6001\u4fe1\u606f... \u5b8c\u6210\n\u5c06\u4f1a\u540c\u65f6\u5b89\u88c5\u4e0b\u5217\u8f6f\u4ef6\uff1a\n git-man liberror-perl\n\u5efa\u8bae\u5b89\u88c5\uff1a\n git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn\n\u4e0b\u5217\u3010\u65b0\u3011\u8f6f\u4ef6\u5305\u5c06\u88ab\u5b89\u88c5\uff1a\n git git-man liberror-perl\n\u5347\u7ea7\u4e86 0 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u65b0\u5b89\u88c5\u4e86 3 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u8981\u5378\u8f7d 0 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u6709 3 \u4e2a\u8f6f\u4ef6\u5305\u672a\u88ab\u5347\u7ea7\u3002\n\u9700\u8981\u4e0b\u8f7d 4,804 kB \u7684\u5f52\u6863\u3002\n\u89e3\u538b\u7f29\u540e\u4f1a\u6d88\u8017 24.5 MB \u7684\u989d\u5916\u7a7a\u95f4\u3002\n\u60a8\u5e0c\u671b\u7ee7\u7eed\u6267\u884c\u5417\uff1f [Y/n] y\n\u83b7\u53d6:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main amd64 liberror-perl all 0.17029-2 [25.6 kB]\n\u83b7\u53d6:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 git-man all 1:2.43.0-1ubuntu7.1 [1,100 kB]\n\u83b7\u53d6:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 git amd64 1:2.43.0-1ubuntu7.1 [3,679 kB]\n\u5df2\u4e0b\u8f7d 4,804 kB\uff0c\u8017\u65f6 7\u79d2 (700 kB/s)\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 liberror-perl\u3002\n(\u6b63\u5728\u8bfb\u53d6\u6570\u636e\u5e93 ... \u7cfb\u7edf\u5f53\u524d\u5171\u5b89\u88c5\u6709 153464 \u4e2a\u6587\u4ef6\u548c\u76ee\u5f55\u3002)\n\u51c6\u5907\u89e3\u538b .../liberror-perl_0.17029-2_all.deb ...\n\n\u8fdb\u5ea6\uff1a[ 0%] [......................................................................................................................]\n\u6b63\u5728\u89e3\u538b liberror-perl (0.17029-2) .................................................................................................]\n\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 git-man\u3002....................................................................................................]\n\u51c6\u5907\u89e3\u538b .../git-man_1%3a2.43.0-1ubuntu7.1_all.deb ...\n\n\u6b63\u5728\u89e3\u538b git-man (1:2.43.0-1ubuntu7.1) .............................................................................................]\n\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 git\u3002######################..................................................................................]\n\u51c6\u5907\u89e3\u538b .../git_1%3a2.43.0-1ubuntu7.1_amd64.deb ...\n\n\u6b63\u5728\u89e3\u538b git (1:2.43.0-1ubuntu7.1) ...#####################.........................................................................]\n\n\u6b63\u5728\u8bbe\u7f6e liberror-perl (0.17029-2) ...##############################................................................................]\n\n\u8fdb\u5ea6\uff1a[ 54%] [###############################################################.......................................................]\n\u6b63\u5728\u8bbe\u7f6e git-man (1:2.43.0-1ubuntu7.1) ...############################################..............................................]\n\n\u8fdb\u5ea6\uff1a[ 69%] [#################################################################################.....................................]\n\u6b63\u5728\u8bbe\u7f6e git (1:2.43.0-1ubuntu7.1) ...##################################################################............................]\n\n\u8fdb\u5ea6\uff1a[ 85%] [###################################################################################################...................]\n\u6b63\u5728\u5904\u7406\u7528\u4e8e man-db (2.12.0-4build2) \u7684\u89e6\u53d1\u5668 ...#########################################################################..........]\nzhenxun@zhenxun:~$\n"})})]}),"\n",(0,i.jsx)(e.admonition,{title:"\u63d0\u793a",type:"tip",children:(0,i.jsxs)(e.p,{children:["\u6267\u884c\u547d\u4ee4\u540e\u9047\u5230 ",(0,i.jsx)(e.code,{children:"\u60a8\u5e0c\u671b\u7ee7\u7eed\u6267\u884c\u5417\uff1f [Y/n]"})," \u63d0\u793a\u540e\u8f93\u5165",(0,i.jsx)(e.code,{children:"y"})," \u540e\u56de\u8f66\u5373\u53ef"]})}),"\n",(0,i.jsx)(e.h5,{id:"\u5b89\u88c5pip3",children:"\u5b89\u88c5pip3"}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"sudo apt install python3-pip"})}),"\n",(0,i.jsxs)(l,{children:[(0,i.jsx)("summary",{children:"\u70b9\u51fb\u67e5\u770b\u8be6\u7ec6\u8f93\u51fa"}),(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-shell",children:"zhenxun@zhenxun:~$ sudo apt install python3-pip\n\u6b63\u5728\u8bfb\u53d6\u8f6f\u4ef6\u5305\u5217\u8868... \u5b8c\u6210\n\u6b63\u5728\u5206\u6790\u8f6f\u4ef6\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\u6811... \u5b8c\u6210\n\u6b63\u5728\u8bfb\u53d6\u72b6\u6001\u4fe1\u606f... \u5b8c\u6210\n\u5c06\u4f1a\u540c\u65f6\u5b89\u88c5\u4e0b\u5217\u8f6f\u4ef6\uff1a\n binutils binutils-common binutils-x86-64-linux-gnu build-essential bzip2 dpkg-dev fakeroot g++ g++-13 g++-13-x86-64-linux-gnu\n g++-x86-64-linux-gnu gcc gcc-13 gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu javascript-common libalgorithm-diff-perl\n libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan8 libbinutils libcc1-0 libctf-nobfd0 libctf0 libdpkg-perl libexpat1-dev\n libfakeroot libfile-fcntllock-perl libgcc-13-dev libgprofng0 libhwasan0 libitm1 libjs-jquery libjs-sphinxdoc libjs-underscore\n liblsan0 libpython3-dev libpython3.12-dev libquadmath0 libsframe1 libstdc++-13-dev libtsan2 libubsan1 lto-disabled-list make\n python3-dev python3-setuptools python3-wheel python3.12-dev zlib1g-dev\n\u5efa\u8bae\u5b89\u88c5\uff1a\n binutils-doc gprofng-gui bzip2-doc debian-keyring g++-multilib g++-13-multilib gcc-13-doc gcc-multilib autoconf automake libtool\n flex bison gcc-doc gcc-13-multilib gcc-13-locales gdb-x86-64-linux-gnu apache2 | lighttpd | httpd bzr libstdc++-13-doc make-doc\n python-setuptools-doc\n\u4e0b\u5217\u3010\u65b0\u3011\u8f6f\u4ef6\u5305\u5c06\u88ab\u5b89\u88c5\uff1a\n binutils binutils-common binutils-x86-64-linux-gnu build-essential bzip2 dpkg-dev fakeroot g++ g++-13 g++-13-x86-64-linux-gnu\n g++-x86-64-linux-gnu gcc gcc-13 gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu javascript-common libalgorithm-diff-perl\n libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan8 libbinutils libcc1-0 libctf-nobfd0 libctf0 libdpkg-perl libexpat1-dev\n libfakeroot libfile-fcntllock-perl libgcc-13-dev libgprofng0 libhwasan0 libitm1 libjs-jquery libjs-sphinxdoc libjs-underscore\n liblsan0 libpython3-dev libpython3.12-dev libquadmath0 libsframe1 libstdc++-13-dev libtsan2 libubsan1 lto-disabled-list make\n python3-dev python3-pip python3-setuptools python3-wheel python3.12-dev zlib1g-dev\n\u5347\u7ea7\u4e86 0 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u65b0\u5b89\u88c5\u4e86 51 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u8981\u5378\u8f7d 0 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u6709 3 \u4e2a\u8f6f\u4ef6\u5305\u672a\u88ab\u5347\u7ea7\u3002\n\u9700\u8981\u4e0b\u8f7d 65.9 MB \u7684\u5f52\u6863\u3002\n\u89e3\u538b\u7f29\u540e\u4f1a\u6d88\u8017 252 MB \u7684\u989d\u5916\u7a7a\u95f4\u3002\n\u60a8\u5e0c\u671b\u7ee7\u7eed\u6267\u884c\u5417\uff1f [Y/n] y\n\u83b7\u53d6:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 binutils-common amd64 2.42-4ubuntu2.3 [239 kB]\n\u83b7\u53d6:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 libsframe1 amd64 2.42-4ubuntu2.3 [14.9 kB]\n\u83b7\u53d6:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 libbinutils amd64 2.42-4ubuntu2.3 [575 kB]\n\u83b7\u53d6:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 libctf-nobfd0 amd64 2.42-4ubuntu2.3 [97.1 kB]\n\u83b7\u53d6:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 libctf0 amd64 2.42-4ubuntu2.3 [94.5 kB]\n\u83b7\u53d6:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 libgprofng0 amd64 2.42-4ubuntu2.3 [849 kB]\n\u83b7\u53d6:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.42-4ubuntu2.3 [2,463 kB]\n********************************************************************\n\u83b7\u53d6:49 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 python3-setuptools all 68.1.2-2ubuntu1.1 [396 kB]\n\u83b7\u53d6:50 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe amd64 python3-wheel all 0.42.0-2 [53.1 kB]\n\u83b7\u53d6:51 http://cn.archive.ubuntu.com/ubuntu noble-updates/universe amd64 python3-pip all 24.0+dfsg-1ubuntu1.1 [1,317 kB]\n\u5df2\u4e0b\u8f7d 65.9 MB\uff0c\u8017\u65f6 32\u79d2 (2,064 kB/s)\n\u6b63\u5728\u4ece\u8f6f\u4ef6\u5305\u4e2d\u89e3\u51fa\u6a21\u677f\uff1a100%\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 binutils-common:amd64\u3002\n(\u6b63\u5728\u8bfb\u53d6\u6570\u636e\u5e93 ... \u7cfb\u7edf\u5f53\u524d\u5171\u5b89\u88c5\u6709 154548 \u4e2a\u6587\u4ef6\u548c\u76ee\u5f55\u3002)\n\u51c6\u5907\u89e3\u538b .../00-binutils-common_2.42-4ubuntu2.3_amd64.deb ...\n\n\u6b63\u5728\u89e3\u538b binutils-common:amd64 (2.42-4ubuntu2.3) ...................................................................................]\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 libsframe1:amd64\u3002\n\u51c6\u5907\u89e3\u538b .../01-libsframe1_2.42-4ubuntu2.3_amd64.deb ...\n\n\u6b63\u5728\u89e3\u538b libsframe1:amd64 (2.42-4ubuntu2.3) ........................................................................................]\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 libbinutils:amd64\u3002\n\u51c6\u5907\u89e3\u538b .../02-libbinutils_2.42-4ubuntu2.3_amd64.deb ...\n\n\u6b63\u5728\u89e3\u538b libbinutils:amd64 (2.42-4ubuntu2.3) .......................................................................................]\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 libctf-nobfd0:amd64\u3002\n\u51c6\u5907\u89e3\u538b .../03-libctf-nobfd0_2.42-4ubuntu2.3_amd64.deb ...\n\n\u6b63\u5728\u89e3\u538b libctf-nobfd0:amd64 (2.42-4ubuntu2.3) .....................................................................................]\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 libctf0:amd64\u3002\n\u51c6\u5907\u89e3\u538b .../04-libctf0_2.42-4ubuntu2.3_amd64.deb ...\n\n\u6b63\u5728\u89e3\u538b libctf0:amd64 (2.42-4ubuntu2.3) ...........................................................................................]\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 libgprofng0:amd64\u3002\n\u51c6\u5907\u89e3\u538b .../05-libgprofng0_2.42-4ubuntu2.3_amd64.deb ...\n\n\u6b63\u5728\u89e3\u538b libgprofng0:amd64 (2.42-4ubuntu2.3) .......................................................................................]\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 binutils-x86-64-linux-gnu\u3002\n\u51c6\u5907\u89e3\u538b .../06-binutils-x86-64-linux-gnu_2.42-4ubuntu2.3_amd64.deb ...\n\n\u6b63\u5728\u89e3\u538b binutils-x86-64-linux-gnu (2.42-4ubuntu2.3) ...............................................................................]\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 binutils\u3002\n\u51c6\u5907\u89e3\u538b .../07-binutils_2.42-4ubuntu2.3_amd64.deb ...\n\n\u6b63\u5728\u89e3\u538b binutils (2.42-4ubuntu2.3) ................................................................................................]\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 libcc1-0:amd64\u3002\n\u51c6\u5907\u89e3\u538b .../08-libcc1-0_14.2.0-4ubuntu2~24.04_amd64.deb ...\n\n\u6b63\u5728\u89e3\u538b libcc1-0:amd64 (14.2.0-4ubuntu2~24.04) ....................................................................................]\n\u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 libitm1:amd64\u3002\n\u51c6\u5907\u89e3\u538b .../09-libitm1_14.2.0-4ubuntu2~24.04_amd64.deb ...\n\n********************************************************************\n\nupdate-alternatives: \u4f7f\u7528 /usr/bin/g++ \u6765\u5728\u81ea\u52a8\u6a21\u5f0f\u4e2d\u63d0\u4f9b /usr/bin/c++ (c++)#####################################################...]\n\u6b63\u5728\u8bbe\u7f6e build-essential (12.10ubuntu1) ...\n\n\u6b63\u5728\u5904\u7406\u7528\u4e8e man-db (2.12.0-4build2) \u7684\u89e6\u53d1\u5668 ...#################################################################################..]\n\u6b63\u5728\u5904\u7406\u7528\u4e8e libc-bin (2.39-0ubuntu8.3) \u7684\u89e6\u53d1\u5668 ...\n"})})]}),"\n",(0,i.jsx)(e.h5,{id:"\u5b89\u88c5poetry",children:"\u5b89\u88c5poetry"}),"\n",(0,i.jsx)(e.admonition,{title:"\u7834\u574f\u8b66\u544a",type:"warning",children:(0,i.jsx)(e.p,{children:"\u4e0b\u9762\u7684\u547d\u4ee4\u53ef\u80fd\u4f1a\u7834\u574f\u7cfb\u7edf\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u5b9e\u6d4b\u540e\u6682\u65f6\u6ca1\u53d1\u73b0\u95ee\u9898\uff0c\u6015\u5f71\u54cd\u7684\u53ef\u4ee5\u4f7f\u7528\u865a\u62df\u73af\u5883\u6216pipx"})}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"sudo pip install --break-system-packages poetry"})}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"sudo pip install --break-system-packages poetry -i https://mirrors.aliyun.com/pypi/simple/"})}),"\n",(0,i.jsx)(e.admonition,{type:"tip",children:(0,i.jsx)(e.p,{children:"\u56fd\u5185\u670d\u52a1\u5668\u63a8\u8350\u4f7f\u7528\u7b2c\u4e8c\u6761\u547d\u4ee4"})}),"\n",(0,i.jsxs)(l,{children:[(0,i.jsx)("summary",{children:"\u70b9\u51fb\u67e5\u770b\u8be6\u7ec6\u8f93\u51fa"}),(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-shell",children:"zhenxun@zhenxun:~/zhenxun_bot$ sudo pip install --break-system-packages poetry -i https://mirrors.aliyun.com/pypi/simple/\nLooking in indexes: https://mirrors.aliyun.com/pypi/simple/\nCollecting poetry\n Downloading https://mirrors.aliyun.com/pypi/packages/62/93/b73911fd5eb152cd42cb7aca0ecc23289d6a94da7a6699046acc46224db9/poetry-1.8.4-py3-none-any.whl (249 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 249.9/249.9 kB 824.6 kB/s eta 0:00:00\nRequirement already satisfied: build<2.0.0,>=1.0.3 in /usr/local/lib/python3.12/dist-packages (from poetry) (1.2.2.post1)\nRequirement already satisfied: cachecontrol<0.15.0,>=0.14.0 in /usr/local/lib/python3.12/dist-packages (from cachecontrol[filecache]<0.15.0,>=0.14.0->poetry) (0.14.1)\nRequirement already satisfied: cleo<3.0.0,>=2.1.0 in /usr/local/lib/python3.12/dist-packages (from poetry) (2.1.0)\nRequirement already satisfied: crashtest<0.5.0,>=0.4.1 in /usr/local/lib/python3.12/dist-packages (from poetry) (0.4.1)\nRequirement already satisfied: dulwich<0.22.0,>=0.21.2 in /usr/local/lib/python3.12/dist-packages (from poetry) (0.21.7)\nRequirement already satisfied: fastjsonschema<3.0.0,>=2.18.0 in /usr/local/lib/python3.12/dist-packages (from poetry) (2.21.0)\nRequirement already satisfied: installer<0.8.0,>=0.7.0 in /usr/local/lib/python3.12/dist-packages (from poetry) (0.7.0)\nRequirement already satisfied: keyring<25.0.0,>=24.0.0 in /usr/local/lib/python3.12/dist-packages (from poetry) (24.3.1)\nRequirement already satisfied: packaging>=23.1 in /usr/lib/python3/dist-packages (from poetry) (24.0)\nRequirement already satisfied: pexpect<5.0.0,>=4.7.0 in /usr/lib/python3/dist-packages (from poetry) (4.9.0)\nRequirement already satisfied: pkginfo<2.0,>=1.10 in /usr/local/lib/python3.12/dist-packages (from poetry) (1.11.2)\nRequirement already satisfied: platformdirs<5,>=3.0.0 in /usr/lib/python3/dist-packages (from poetry) (4.2.0)\nRequirement already satisfied: poetry-core==1.9.1 in /usr/local/lib/python3.12/dist-packages (from poetry) (1.9.1)\nRequirement already satisfied: poetry-plugin-export<2.0.0,>=1.6.0 in /usr/local/lib/python3.12/dist-packages (from poetry) (1.8.0)\nRequirement already satisfied: pyproject-hooks<2.0.0,>=1.0.0 in /usr/local/lib/python3.12/dist-packages (from poetry) (1.2.0)\nRequirement already satisfied: requests<3.0,>=2.26 in /usr/lib/python3/dist-packages (from poetry) (2.31.0)\nRequirement already satisfied: requests-toolbelt<2.0.0,>=1.0.0 in /usr/local/lib/python3.12/dist-packages (from poetry) (1.0.0)\nRequirement already satisfied: shellingham<2.0,>=1.5 in /usr/local/lib/python3.12/dist-packages (from poetry) (1.5.4)\nRequirement already satisfied: tomlkit<1.0.0,>=0.11.4 in /usr/local/lib/python3.12/dist-packages (from poetry) (0.13.2)\nRequirement already satisfied: trove-classifiers>=2022.5.19 in /usr/local/lib/python3.12/dist-packages (from poetry) (2024.10.21.16)\nRequirement already satisfied: virtualenv<21.0.0,>=20.26.6 in /usr/local/lib/python3.12/dist-packages (from poetry) (20.28.0)\nRequirement already satisfied: msgpack<2.0.0,>=0.5.2 in /usr/local/lib/python3.12/dist-packages (from cachecontrol<0.15.0,>=0.14.0->cachecontrol[filecache]<0.15.0,>=0.14.0->poetry) (1.1.0)\nRequirement already satisfied: filelock>=3.8.0 in /usr/local/lib/python3.12/dist-packages (from cachecontrol[filecache]<0.15.0,>=0.14.0->poetry) (3.16.1)\nRequirement already satisfied: rapidfuzz<4.0.0,>=3.0.0 in /usr/local/lib/python3.12/dist-packages (from cleo<3.0.0,>=2.1.0->poetry) (3.10.1)\nRequirement already satisfied: urllib3>=1.25 in /usr/lib/python3/dist-packages (from dulwich<0.22.0,>=0.21.2->poetry) (2.0.7)\nRequirement already satisfied: jaraco.classes in /usr/local/lib/python3.12/dist-packages (from keyring<25.0.0,>=24.0.0->poetry) (3.4.0)\nRequirement already satisfied: SecretStorage>=3.2 in /usr/local/lib/python3.12/dist-packages (from keyring<25.0.0,>=24.0.0->poetry) (3.3.3)\nRequirement already satisfied: jeepney>=0.4.2 in /usr/local/lib/python3.12/dist-packages (from keyring<25.0.0,>=24.0.0->poetry) (0.8.0)\nRequirement already satisfied: distlib<1,>=0.3.7 in /usr/local/lib/python3.12/dist-packages (from virtualenv<21.0.0,>=20.26.6->poetry) (0.3.9)\nRequirement already satisfied: cryptography>=2.0 in /usr/lib/python3/dist-packages (from SecretStorage>=3.2->keyring<25.0.0,>=24.0.0->poetry) (41.0.7)\nRequirement already satisfied: more-itertools in /usr/local/lib/python3.12/dist-packages (from jaraco.classes->keyring<25.0.0,>=24.0.0->poetry) (10.5.0)\nInstalling collected packages: poetry\nSuccessfully installed poetry-1.8.4\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\n\n"})})]}),"\n",(0,i.jsx)(e.h4,{id:"\u5b89\u88c5\u771f\u5bfb",children:"\u5b89\u88c5\u771f\u5bfb"}),"\n",(0,i.jsx)(e.h5,{id:"\u62c9\u53d6\u6700\u65b0\u4ee3\u7801",children:"\u62c9\u53d6\u6700\u65b0\u4ee3\u7801"}),"\n",(0,i.jsx)(e.admonition,{type:"tip",children:(0,i.jsxs)(e.p,{children:["\u5982\u679c\u4f60\u7684\u7f51\u7edc\u73af\u5883\u8f83\u5dee\uff0c\u65e0\u6cd5\u8fde\u63a5\u5230 Github\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,i.jsx)(e.a,{href:"https://ghp.ci/",children:"GitHub Proxy"})," \u63d0\u4f9b\u7684\u6587\u4ef6\u4ee3\u7406\u52a0\u901f\u4e0b\u8f7d\u670d\u52a1\uff0c\u56fd\u5185\u670d\u52a1\u5668\u5747\u63a8\u8350\u7b2c\u4e8c\u6761\u547d\u4ee4"]})}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"git clone https://github.com/HibiKier/zhenxun_bot.git"})}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"git clone https://ghp.ci/https://github.com/HibiKier/zhenxun_bot.git"})}),"\n",(0,i.jsxs)(l,{children:[(0,i.jsx)("summary",{children:"\u70b9\u51fb\u67e5\u770b\u8be6\u7ec6\u8f93\u51fa"}),(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-shell",children:"zhenxun@zhenxun:~$ git clone https://ghp.ci/https://github.com/HibiKier/zhenxun_bot.git\n\u6b63\u514b\u9686\u5230 'zhenxun_bot'...\nremote: Enumerating objects: 17145, done.\nremote: Counting objects: 100% (1039/1039), done.\nremote: Compressing objects: 100% (410/410), done.\nremote: Total 17145 (delta 539), reused 917 (delta 444), pack-reused 16106 (from 1)\n\u63a5\u6536\u5bf9\u8c61\u4e2d: 100% (17145/17145), 294.74 MiB | 14.56 MiB/s, \u5b8c\u6210.\n\u5904\u7406 delta \u4e2d: 100% (9487/9487), \u5b8c\u6210.\n\u6b63\u5728\u66f4\u65b0\u6587\u4ef6: 100% (540/540), \u5b8c\u6210.\n"})})]}),"\n",(0,i.jsx)(e.h5,{id:"\u5b89\u88c5\u4f9d\u8d56",children:"\u5b89\u88c5\u4f9d\u8d56"}),"\n",(0,i.jsx)(e.h6,{id:"\u8fdb\u5165\u9879\u76ee\u76ee\u5f55",children:"\u8fdb\u5165\u9879\u76ee\u76ee\u5f55"}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"cd zhenxun_bot/"})}),"\n",(0,i.jsx)(e.h6,{id:"\u8fd0\u884c\u5b89\u88c5\u4f9d\u8d56\u547d\u4ee4",children:"\u8fd0\u884c\u5b89\u88c5\u4f9d\u8d56\u547d\u4ee4"}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"poetry install"})}),"\n",(0,i.jsxs)(l,{children:[(0,i.jsx)("summary",{children:"\u70b9\u51fb\u67e5\u770b\u8be6\u7ec6\u8f93\u51fa"}),(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-shell",children:"zhenxun@zhenxun:~$ cd zhenxun_bot/\nzhenxun@zhenxun:~/zhenxun_bot$ poetry install\nWarning: Found deprecated key 'default' or 'secondary' in pyproject.toml configuration for source ali. Please provide the key 'priority' instead. Accepted values are: 'default', 'primary', 'secondary', 'supplemental', 'explicit'.\nWarning: Found deprecated priority 'default' for source 'ali' in pyproject.toml. You can achieve the same effect by changing the priority to 'primary' and putting the source first.\nCreating virtualenv zhenxun-bot-jK_EF8Sg-py3.12 in /home/zhenxun/.cache/pypoetry/virtualenvs\nInstalling dependencies from lock file\n\nPackage operations: 150 installs, 0 updates, 0 removals\n\n - Installing idna (3.10)\n - Installing sniffio (1.3.1)\n - Installing typing-extensions (4.12.2)\n - Installing anyio (4.6.2.post1)\n - Installing mdurl (0.1.2)\n - Installing multidict (6.1.0)\n - Installing propcache (0.2.0)\n - Installing six (1.16.0)\n - Installing tarina (0.6.7)\n - Installing certifi (2024.8.30)\n - Installing chardet (5.2.0)\n - Installing charset-normalizer (3.4.0)\n - Installing click (8.1.7)\n - Installing exceptiongroup (1.2.2)\n - Installing h11 (0.14.0)\n - Installing httptools (0.6.4)\n - Installing loguru (0.7.2)\n - Installing markdown-it-py (3.0.0)\n - Installing markupsafe (3.0.2)\n - Installing nepattern (0.7.7)\n - Installing pycparser (2.22)\n - Installing pydantic (1.10.18)\n - Installing pygments (2.18.0)\n - Installing pygtrie (2.5.0)\n - Installing python-dateutil (2.9.0.post0)\n - Installing python-dotenv (1.0.1)\n - Installing pyyaml (6.0.2)\n - Installing starlette (0.41.3)\n - Installing text-unidecode (1.3)\n - Installing types-python-dateutil (2.9.0.20241003)\n - Installing urllib3 (2.2.3)\n - Installing uvloop (0.21.0)\n - Installing watchfiles (0.24.0)\n - Installing wcwidth (0.2.13)\n - Installing websockets (14.1)\n - Installing yarl (1.18.0)\n - Installing arclet-alconna (1.8.34)\n - Installing arrow (1.3.0)\n - Installing binaryornot (0.4.4)\n - Installing cffi (1.17.1)\n - Installing distlib (0.3.9)\n - Installing fastapi (0.115.5)\n - Installing filelock (3.16.1)\n - Installing frozenlist (1.5.0)\n - Installing greenlet (3.1.1)\n - Installing httpcore (0.16.3)\n - Installing iniconfig (2.0.0)\n - Installing jinja2 (3.1.4)\n - Installing markdown (3.7)\n - Installing nonebot2 (2.4.0)\n - Installing numpy (2.1.3)\n - Installing packaging (24.2)\n - Installing platformdirs (4.3.6)\n - Installing pluggy (1.5.0)\n - Installing prompt-toolkit (3.0.48)\n - Installing pyasn1 (0.6.1)\n - Installing pyee (12.0.0)\n - Installing python-slugify (8.0.4)\n - Installing requests (2.32.3)\n - Installing rfc3986 (1.5.0)\n - Installing rich (13.9.4)\n - Installing tzlocal (5.2)\n - Installing uvicorn (0.32.1)\n - Installing zipp (3.21.0)\n - Installing aiofiles (23.2.1)\n - Installing aiohappyeyeballs (2.4.3)\n - Installing aiosignal (1.3.1)\n - Installing aiosqlite (0.17.0)\n - Installing apscheduler (3.11.0)\n - Installing arclet-alconna-tools (0.7.10)\n - Installing asgiref (3.8.1)\n - Installing async-asgi-testclient (1.4.11)\n - Installing asyncpg (0.30.0)\n - Installing attrs (24.2.0)\n - Installing cachetools (5.5.0)\n - Installing cashews (7.4.0)\n - Installing cookiecutter (2.6.0)\n - Installing coverage (7.6.8)\n - Installing cryptography (44.0.0)\n - Installing ecdsa (0.19.0)\n - Installing emoji (2.14.0)\n - Installing execnet (2.1.1)\n - Installing grpcio (1.68.0)\n - Installing httpx (0.23.3)\n - Installing importlib-metadata (8.5.0)\n - Installing iso8601 (1.1.0)\n - Installing msgpack (1.1.0)\n - Installing mypy-extensions (1.0.0)\n - Installing nonebot-plugin-waiter (0.8.0)\n - Installing noneprompt (0.1.9)\n - Installing pathspec (0.12.1)\n - Installing pillow (10.4.0)\n - Installing playwright (1.49.0)\n - Installing proces (0.1.7)\n - Installing protobuf (4.25.5)\n - Installing pyfiglet (1.0.2)\n - Installing pymdown-extensions (10.12)\n - Installing pypika-tortoise (0.1.6)\n - Installing pytest (8.3.3)\n - Installing python-markdown-math (0.8)\n - Installing pytz (2024.2)\n - Installing pywavelets (1.7.0)\n - Installing regex (2024.11.6)\n - Installing rsa (4.9)\n - Installing ruamel-yaml-clib (0.2.12)\n - Installing scipy (1.14.1)\n - Installing setuptools (75.6.0)\n - Installing sgmllib3k (1.0.0)\n - Installing soupsieve (2.6)\n - Installing strenum (0.4.15)\n - Installing tomlkit (0.13.2)\n - Installing virtualenv (20.28.0)\n - Installing aiocache (0.12.3)\n - Installing aiohttp (3.11.8)\n - Installing beautifulsoup4 (4.12.3)\n - Installing bilireq (0.2.3.post0)\n - Installing black (24.10.0)\n - Installing cattrs (23.2.3)\n - Installing cn2an (0.5.22)\n - Installing dateparser (1.2.0)\n - Installing imagehash (4.3.1)\n - Installing feedparser (6.0.11)\n - Installing lxml (5.3.0)\n - Installing nb-cli (1.4.2)\n - Installing nonebot-adapter-discord (0.1.8)\n - Installing nonebot-adapter-dodo (0.1.4)\n - Installing nonebot-adapter-kaiheila (0.3.4)\n - Installing nonebot-adapter-onebot (2.4.6)\n - Installing nonebot-plugin-alconna (0.53.1)\n - Installing nonebot-plugin-apscheduler (0.3.0)\n - Installing nonebot-plugin-htmlrender (0.3.5)\n - Installing nonebot-plugin-session (0.2.3)\n - Installing nonebot-plugin-uninfo (0.4.1)\n - Installing nonebot-plugin-userinfo (0.1.3)\n - Installing nonebug (0.3.7)\n - Installing opencv-python (4.10.0.84)\n - Installing psutil (5.9.8)\n - Installing pypinyin (0.51.0)\n - Installing py-cpuinfo (9.0.0)\n - Installing pytest-asyncio (0.23.8)\n - Installing pytest-cov (5.0.0)\n - Installing pytest-mock (3.14.0)\n - Installing pytest-xdist (3.6.1)\n - Installing python-jose (3.3.0)\n - Installing python-multipart (0.0.9)\n - Installing respx (0.21.1)\n - Installing retrying (1.3.4)\n - Installing ruamel-yaml (0.18.6)\n - Installing tortoise-orm (0.20.0)\n - Installing ujson (5.10.0)\nWarning: Validation of the RECORD file of playwright-1.49.0-py3-none-manylinux1_x86_64.whl failed. Please report to the maintainers of that package so they can fix their build process. Details:\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/LICENSE is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/node is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/package.json is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/cli.js is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/browsers.json is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/api.json is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/index.mjs is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/index.d.ts is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/README.md is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/LICENSE is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/NOTICE is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/index.js is not mentioned in RECORD\nIn /home/zhenxun/.cache/pypoetry/artifacts/19/6f/d4/e408c18242c36038a71ebe1dccde7a5bed56a2a0915d4f40efa5d26967/playwright-1.49.0-py3-none-manylinux1_x86_64.whl, playwright/driver/package/ThirdPartyNotices.txt is not mentioned in RECORD\n**************************************************\n\n"})})]}),"\n",(0,i.jsx)(e.admonition,{type:"tip",children:(0,i.jsxs)(e.p,{children:["\u4e0b\u8f7d\u4f9d\u8d56\u9014\u4e2d\u5982\u9047\u62a5\u9519\uff0c\u8bf7\u5220\u9664\u76ee\u5f55\u4e0b\u7684 ",(0,i.jsx)(e.code,{children:"poetry.lock"})," \u6587\u4ef6\u540e\u91cd\u65b0\u8fd0\u884c\u547d\u4ee4"]})}),"\n",(0,i.jsx)(e.h6,{id:"\u624b\u52a8\u5b89\u88c5playwright",children:"\u624b\u52a8\u5b89\u88c5playwright"}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"poetry run playwright install"})}),"\n",(0,i.jsxs)(l,{children:[(0,i.jsx)("summary",{children:"\u70b9\u51fb\u67e5\u770b\u8be6\u7ec6\u8f93\u51fa"}),(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-shell",children:"zhenxun@zhenxun:~/zhenxun_bot$ poetry run playwright install\nWarning: Found deprecated key 'default' or 'secondary' in pyproject.toml configuration for source ali. Please provide the key 'priority' instead. Accepted values are: 'default', 'primary', 'secondary', 'supplemental', 'explicit'.\nWarning: Found deprecated priority 'default' for source 'ali' in pyproject.toml. You can achieve the same effect by changing the priority to 'primary' and putting the source first.\nDownloading Chromium 131.0.6778.33 (playwright build v1148) from https://playwright.azureedge.net/builds/chromium/1148/chromium-linux.zip\n161.3 MiB [====================] 100% 0.0s\nChromium 131.0.6778.33 (playwright build v1148) downloaded to /home/zhenxun/.cache/ms-playwright/chromium-1148\nDownloading Chromium Headless Shell 131.0.6778.33 (playwright build v1148) from https://playwright.azureedge.net/builds/chromium/1148/chromium-headless-shell-linux.zip\n100.9 MiB [====================] 100% 0.0s\nChromium Headless Shell 131.0.6778.33 (playwright build v1148) downloaded to /home/zhenxun/.cache/ms-playwright/chromium_headless_shell-1148\nDownloading Firefox 132.0 (playwright build v1466) from https://playwright.azureedge.net/builds/firefox/1466/firefox-ubuntu-24.04.zip\n87.6 MiB [====================] 100% 0.0s\nFirefox 132.0 (playwright build v1466) downloaded to /home/zhenxun/.cache/ms-playwright/firefox-1466\nDownloading Webkit 18.2 (playwright build v2104) from https://playwright.azureedge.net/builds/webkit/2104/webkit-ubuntu-24.04.zip\n94.9 MiB [====================] 100% 0.0s\nWebkit 18.2 (playwright build v2104) downloaded to /home/zhenxun/.cache/ms-playwright/webkit-2104\nDownloading FFMPEG playwright build v1010 from https://playwright.azureedge.net/builds/ffmpeg/1010/ffmpeg-linux.zip\n2.3 MiB [====================] 100% 0.0s\nFFMPEG playwright build v1010 downloaded to /home/zhenxun/.cache/ms-playwright/ffmpeg-1010\n"})})]}),"\n",(0,i.jsx)(e.h4,{id:"\u914d\u7f6e\u771f\u5bfb",children:"\u914d\u7f6e\u771f\u5bfb"}),"\n",(0,i.jsx)(e.h5,{id:"\u6570\u636e\u5e93\u914d\u7f6e",children:"\u6570\u636e\u5e93\u914d\u7f6e"}),"\n",(0,i.jsx)(e.admonition,{type:"tip",children:(0,i.jsx)(e.p,{children:"\u672c\u6559\u7a0b\u4f7f\u7528\u7684\u4e3asqlite\uff0c\u771f\u5bfb\u652f\u6301postgresql sqlite mysql\u4e09\u79cd\u6570\u636e\u5e93\uff0c\u5c0f\u767d\u53ea\u63a8\u8350\u4f7f\u7528sqlite\uff08\u6587\u4ef6\u578b\u6570\u636e\u5e93\uff0c\u597d\u8fc1\u79fb\u4e0d\u7528\u5b89\u88c5\uff09"})}),"\n",(0,i.jsx)(e.h6,{id:"\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\u540e\u8fd0\u884c",children:"\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\u540e\u8fd0\u884c"}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"mkdir data/db"})}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-shell",children:"zhenxun@zhenxun:~/zhenxun_bot$ mkdir data/db\nzhenxun@zhenxun:~/zhenxun_bot$\n"})}),"\n",(0,i.jsxs)(e.h6,{id:"\u4fee\u6539\u914d\u7f6e\u6587\u4ef6envdev",children:["\u4fee\u6539\u914d\u7f6e\u6587\u4ef6",(0,i.jsx)(e.code,{children:".env.dev"})]}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-python",metastring:'title="env.dev"',children:'DB_URL = "sqlite:data/db/zhenxun.db"\n'})}),"\n",(0,i.jsx)(e.admonition,{type:"tip",children:(0,i.jsx)(e.p,{children:"\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u4f7f\u7528\u8fde\u63a5\u5de5\u5177\u91cc\u81ea\u5e26\u7684\u6587\u4ef6\u7ba1\u7406\u529f\u80fd\uff0c\u4e5f\u53ef\u4ee5\u7528 vi\u3001nano\u3001vim\u3001emacs \u7f16\u8f91\u5668\u547d\u4ee4\u4fee\u6539"})}),"\n",(0,i.jsx)(e.h5,{id:"vi\u7f16\u8f91\u5668\u547d\u4ee4\u4fee\u6539\u6f14\u793a",children:"vi\u7f16\u8f91\u5668\u547d\u4ee4\u4fee\u6539\u6f14\u793a"}),"\n",(0,i.jsxs)(l,{children:[(0,i.jsx)("summary",{children:"\u70b9\u51fb\u67e5\u770b"}),(0,i.jsx)(e.p,{children:(0,i.jsx)(e.img,{alt:"_",src:t(7490).A+"",width:"1513",height:"813"})})]}),"\n",(0,i.jsx)(e.h5,{id:"\u5176\u4f59\u914d\u7f6e",children:"\u5176\u4f59\u914d\u7f6e"}),"\n",(0,i.jsxs)(e.h6,{id:"\u5176\u4e2d-123456789-\u4e3a\u8d85\u7ea7\u7528\u6237\u4e3b\u4ebaqq\u53f7\u8bf7\u81ea\u884c\u4fee\u6539",children:["\u5176\u4e2d ",(0,i.jsx)(e.code,{children:"123456789"})," \u4e3a\u8d85\u7ea7\u7528\u6237\uff08\u4e3b\u4eba\uff09qq\u53f7\u8bf7\u81ea\u884c\u4fee\u6539"]}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-python",metastring:'title="env.dev"',children:'SUPERUSERS=["123456789"]\n\nCOMMAND_START=[""]\n\nSESSION_RUNNING_EXPRESSION="\u522b\u6025\u5440,\u5c0f\u771f\u5bfb\u8981\u5b95\u673a\u4e86!QAQ"\n\nNICKNAME=["\u771f\u5bfb", "\u5c0f\u771f\u5bfb", "\u7eea\u5c71\u771f\u5bfb", "\u5c0f\u5bfb\u5b50"]\n\nSESSION_EXPIRE_TIMEOUT=30\n\nALCONNA_USE_COMMAND_START=True\n\n# \u5168\u5c40\u56fe\u7247\u7edf\u4e00\u4f7f\u7528bytes\u53d1\u9001\uff0c\u5f53\u771f\u5bfb\u4e0e\u534f\u8bae\u7aef\u4e0d\u5728\u540c\u4e00\u670d\u52a1\u5668\u4e0a\u65f6\u4e3aTrue\nIMAGE_TO_BYTES = True\n\n# \u56de\u590d\u6d88\u606f\u65f6\u81ea\u79f0\nSELF_NICKNAME="\u5c0f\u771f\u5bfb"\n\n# \u5b98bot appid:bot\u8d26\u53f7\nQBOT_ID_DATA = \'{\n\n}\'\n\n# \u6570\u636e\u5e93\u914d\u7f6e\n# \u793a\u4f8b: "postgres://user:password@127.0.0.1:5432/database"\n# \u793a\u4f8b: "mysql://user:password@127.0.0.1:3306/database"\n# \u793a\u4f8b: "sqlite:data/db/zhenxun.db" \u5728data\u76ee\u5f55\u4e0b\u5efa\u7acbdb\u6587\u4ef6\u5939\nDB_URL = "sqlite:data/db/zhenxun.db"\n\n# \u7cfb\u7edf\u4ee3\u7406\n# SYSTEM_PROXY = "http://127.0.0.1:7890"\n\nPLATFORM_SUPERUSERS = \'\n {\n "qq": ["123456789"],\n "dodo": [""]\n }\n\'\n\nDRIVER=~fastapi+~httpx+~websockets\n\n\n# LOG_LEVEL=DEBUG\n# \u670d\u52a1\u5668\u548c\u7aef\u53e3\nHOST = 127.0.0.1\nPORT = 8080\n'})}),"\n",(0,i.jsx)(e.h4,{id:"\u8fd0\u884c\u771f\u5bfb",children:"\u8fd0\u884c\u771f\u5bfb"}),"\n",(0,i.jsx)(e.p,{children:(0,i.jsx)(e.code,{children:"poetry run python bot.py"})}),"\n",(0,i.jsxs)(l,{children:[(0,i.jsx)("summary",{children:"\u70b9\u51fb\u67e5\u770b\u8be6\u7ec6\u8f93\u51fa"}),(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-python",children:'zhenxun@zhenxun:~/zhenxun_bot$ poetry run python bot.py\nWarning: Found deprecated key \'default\' or \'secondary\' in pyproject.toml configuration for source ali. Please provide the key \'priority\' instead. Accepted values are: \'default\', \'primary\', \'secondary\', \'supplemental\', \'explicit\'.\nWarning: Found deprecated priority \'default\' for source \'ali\' in pyproject.toml. You can achieve the same effect by changing the priority to \'primary\' and putting the source first.\n11-29 20:14:07 [SUCCESS] nonebot | NoneBot is initializing...\n11-29 20:14:07 [INFO] nonebot | Current Env: dev\n11-29 20:14:08 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_session"\n11-29 20:14:08 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_apscheduler"\n11-29 20:14:08 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_alconna:uniseg" from "nonebot_plugin_alconna.uniseg"\n11-29 20:14:08 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_alconna"\n11-29 20:14:08 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_userinfo"\n11-29 20:14:08 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_htmlrender"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "sign_in" from "zhenxun.builtin_plugins.sign_in"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "catchphrase" from "zhenxun.builtin_plugins.catchphrase"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "record_request" from "zhenxun.builtin_plugins.record_request"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "scheduler:morning" from "zhenxun.builtin_plugins.scheduler.morning"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "scheduler:auto_update_group" from "zhenxun.builtin_plugins.scheduler.auto_update_group"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "scheduler:chat_check" from "zhenxun.builtin_plugins.scheduler.chat_check"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "scheduler:auto_backup" from "zhenxun.builtin_plugins.scheduler.auto_backup"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "scheduler" from "zhenxun.builtin_plugins.scheduler"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "hooks:chkdsk_hook" from "zhenxun.builtin_plugins.hooks.chkdsk_hook"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "hooks:call_hook" from "zhenxun.builtin_plugins.hooks.call_hook"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "hooks:withdraw_hook" from "zhenxun.builtin_plugins.hooks.withdraw_hook"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "hooks:ban_hook" from "zhenxun.builtin_plugins.hooks.ban_hook"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "hooks:auth_hook" from "zhenxun.builtin_plugins.hooks.auth_hook"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "hooks" from "zhenxun.builtin_plugins.hooks"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "info" from "zhenxun.builtin_plugins.info"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "scripts" from "zhenxun.builtin_plugins.scripts"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "plugin_store" from "zhenxun.builtin_plugins.plugin_store"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "web_ui" from "zhenxun.builtin_plugins.web_ui"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "platform:group_handle" from "zhenxun.builtin_plugins.platform.qq.group_handle"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "platform:exception" from "zhenxun.builtin_plugins.platform.qq.exception"\n11-29 20:14:09 [WARNING] zhenxun | \u672a\u5b89\u88c5 qq-adapter\uff0c\u65e0\u6cd5\u52a0\u8f7dQQ\u5b98\u5e73\u53f0\u4e13\u7528\u63d2\u4ef6...\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "platform" from "zhenxun.builtin_plugins.platform"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "plugin_store" from "zhenxun.builtin_plugins.plugin_store"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "statistics:statistics_handle" from "zhenxun.builtin_plugins.statistics.statistics_handle"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "statistics:statistics_hook" from "zhenxun.builtin_plugins.statistics.statistics_hook"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "statistics" from "zhenxun.builtin_plugins.statistics"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "help" from "zhenxun.builtin_plugins.help"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "admin:ban" from "zhenxun.builtin_plugins.admin.ban"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "admin:group_update" from "zhenxun.builtin_plugins.admin.group_update"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "admin:plugin_switch" from "zhenxun.builtin_plugins.admin.plugin_switch"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "admin:admin_watch" from "zhenxun.builtin_plugins.admin.admin_watch"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "admin:admin_help" from "zhenxun.builtin_plugins.admin.admin_help"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "admin:welcome_message" from "zhenxun.builtin_plugins.admin.welcome_message"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "admin:group_member_update" from "zhenxun.builtin_plugins.admin.group_member_update"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "admin" from "zhenxun.builtin_plugins.admin"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "auto_update" from "zhenxun.builtin_plugins.auto_update"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "nickname" from "zhenxun.builtin_plugins.nickname"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "chat_history:chat_message" from "zhenxun.builtin_plugins.chat_history.chat_message"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "chat_history:chat_message_handle" from "zhenxun.builtin_plugins.chat_history.chat_message_handle"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "chat_history" from "zhenxun.builtin_plugins.chat_history"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "check" from "zhenxun.builtin_plugins.check"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "shop" from "zhenxun.builtin_plugins.shop"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "about" from "zhenxun.builtin_plugins.about"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "withdraw" from "zhenxun.builtin_plugins.withdraw"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "restart" from "zhenxun.builtin_plugins.restart"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "init:manager" from "zhenxun.builtin_plugins.init.manager"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "init:init_plugin" from "zhenxun.builtin_plugins.init.init_plugin"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "init:init_config" from "zhenxun.builtin_plugins.init.init_config"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "init" from "zhenxun.builtin_plugins.init"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "help_help" from "zhenxun.builtin_plugins.help_help"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:broadcast" from "zhenxun.builtin_plugins.superuser.broadcast"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:clear_data" from "zhenxun.builtin_plugins.superuser.clear_data"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:exec_sql" from "zhenxun.builtin_plugins.superuser.exec_sql"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:update_fg_info" from "zhenxun.builtin_plugins.superuser.update_fg_info"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:reload_setting" from "zhenxun.builtin_plugins.superuser.reload_setting"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:group_manage" from "zhenxun.builtin_plugins.superuser.group_manage"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:fg_manage" from "zhenxun.builtin_plugins.superuser.fg_manage"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:super_help" from "zhenxun.builtin_plugins.superuser.super_help"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:bot_manage" from "zhenxun.builtin_plugins.superuser.bot_manage"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:request_manage" from "zhenxun.builtin_plugins.superuser.request_manage"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser:set_admin" from "zhenxun.builtin_plugins.superuser.set_admin"\n11-29 20:14:09 [SUCCESS] nonebot | Succeeded to load plugin "superuser" from "zhenxun.builtin_plugins.superuser"\n11-29 20:14:09 [SUCCESS] nonebot | Running NoneBot...\n11-29 20:14:09 [INFO] uvicorn | Started server process [249867]\n11-29 20:14:09 [INFO] uvicorn | Waiting for application startup.\n11-29 20:14:09 [INFO] zhenxun | Database loaded successfully!\n11-29 20:14:09 [INFO] nonebot_plugin_apscheduler | Scheduler Started\n11-29 20:14:10 [INFO] nonebot_plugin_htmlrender | \u4f7f\u7528 chromium \u542f\u52a8\n11-29 20:14:10 [INFO] nonebot_plugin_htmlrender | Browser Started.\n11-29 20:14:10 [WARNING] zhenxun | \u6570\u636e\u8fc1\u79fb || \u9519\u8bef<class \'tortoise.exceptions.OperationalError\'>: near "on": syntax error\n/home/zhenxun/zhenxun_bot/zhenxun/builtin_plugins/scripts.py:44: RuntimeWarning: coroutine \'_make_delegate_method.<locals>.method\' was never awaited\n json.dump(data, f, indent=4, ensure_ascii=False)\nRuntimeWarning: Enable tracemalloc to get the object allocation traceback\n11-29 20:14:24 [INFO] zhenxun | \u81ea\u52a8\u66f4\u65b0\u57ce\u5e02\u5217\u8868\u5b8c\u6210.....\n11-29 20:14:29 [INFO] zhenxun | \u4e0b\u8f7d https://github.com/HibiKier/zhenxun_bot_webui/archive/refs/heads/dist.zip \u6210\u529f.. Path\uff1a/home/zhenxun/zhenxun_bot/resources/temp/web_ui/webui_assets.zip\n11-29 20:14:29 [INFO] zhenxun | CMD[WebUI\u8d44\u6e90\u7ba1\u7406] \u4e0b\u8f7d webui_assets \u6210\u529f...\n11-29 20:14:29 [INFO] zhenxun | CMD[Web UI] API\u542f\u52a8\u6210\u529f\n11-29 20:14:29 [INFO] zhenxun | \u5df2\u7ecf\u52a0\u8f7d 2 \u4e2a\u63d2\u4ef6\u9650\u5236.\n11-29 20:14:29 [INFO] uvicorn | Application startup complete.\n11-29 20:14:29 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:8080 (Press CTRL+C to quit)\n^C11-29 20:14:34 [INFO] uvicorn | Shutting down\n11-29 20:14:34 [INFO] uvicorn | Waiting for application shutdown.\n11-29 20:14:34 [INFO] nonebot_plugin_htmlrender | Browser Stopped.\n11-29 20:14:34 [INFO] nonebot_plugin_apscheduler | Scheduler Shutdown\n11-29 20:14:34 [INFO] uvicorn | Application shutdown complete.\n11-29 20:14:34 [INFO] uvicorn | Finished server process [249867]\n\n'})})]})]})}function d(n={}){const{wrapper:e}={...(0,a.R)(),...n.components};return e?(0,i.jsx)(e,{...n,children:(0,i.jsx)(c,{...n})}):c(n)}},7490:(n,e,t)=>{t.d(e,{A:()=>i});const i=t.p+"assets/images/vi_config-48e1bd51d858b2579dbd5a4968e90633.gif"},8453:(n,e,t)=>{t.d(e,{R:()=>o,x:()=>u});var i=t(6540);const a={},l=i.createContext(a);function o(n){const e=i.useContext(l);return i.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function u(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(a):n.components||a:o(n.components),i.createElement(l.Provider,{value:e},n.children)}}}]); |