{"id":65,"date":"2025-08-04T17:04:17","date_gmt":"2025-08-04T17:04:17","guid":{"rendered":"https:\/\/www.soyorin.cn\/?p=65"},"modified":"2025-08-04T17:11:30","modified_gmt":"2025-08-04T17:11:30","slug":"2025ubuntu%e4%b8%8b-qbittorrent-5-1-2-%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/www.soyorin.cn\/?p=65","title":{"rendered":"[2025]Ubuntu\u4e0b qBittorrent 5.1.2 \u5b89\u88c5"},"content":{"rendered":"<h1>[2025]Ubuntu\u4e0b qBittorrent 5.1.2 \u5b89\u88c5<\/h1>\n<p><em>\u5e8f\u8a00\uff1a\u672c\u4eba\u6709\u4e0b\u8f7d\u52a8\u6f2b\u5230\u81ea\u5efa\u670d\u52a1\u5668\u9700\u6c42\uff0c\u800c\u670d\u52a1\u5668\u53d7\u6027\u80fd\u4e0e\u5185\u5b58\u6240\u9650\u4f18\u5316\u6389\u4e86\u56fe\u5f62\u5316\u684c\u9762\uff0c\u6240\u4ee5\u6211\u9700\u8981\u4e00\u4e2a\u4e0d\u4f9d\u8d56\u56fe\u5f62\u5316\u684c\u9762\u7684BT\u4e0b\u8f7d\u5668\uff0c\u6545\u9009\u5b9a\u4e86qbittorrent-nox\uff08no X server\uff09\uff0c\u4f7f\u7528webUI\u7684\u65b9\u5f0f\u53d8\u76f8\u5b9e\u73b0\u4ea4\u4e92\u3002\u524d\u671f\u4f7f\u75284.*\u7248\u672c\uff0c\u4f7f\u7528\u4e00\u6bb5\u65f6\u95f4\u540e\u9891\u7e41\u51fa\u73b0RSS\u8ba2\u9605\u66f4\u65b0\u5931\u8d25\u7b49\u95ee\u9898\uff0c\u800c\u5728PC\u7aef\u76845.*\u7248\u672c\u5219\u6ca1\u6709\u7c7b\u4f3c\u60c5\u51b5\uff0c\u4e8e\u662f\u51b3\u5b9a\u5347\u7ea7\u7248\u672c\u3002\u65e7\u7248\u672c\u4e3a\u4f7f\u7528apt\u6e90\u5b89\u88c5\uff0c\u800c\u65b0\u7248\u672c\u5219\u9700\u8981\u81ea\u884c\u7f16\u8bd1\uff0c\u8fc7\u7a0b\u8f83\u4e3a\u7e41\u7410\u3002\u9274\u4e8e\u7f51\u4e0a\u8d44\u6e90\u8f83\u4e3a\u8fc7\u65f6\uff0c\u6545\u4e00\u4e00\u8bb0\u5f55\uff0c\u4ee5\u4f9b\u53c2\u8003\u3002<\/em><\/p>\n<h2>0. \u73af\u5883\u4ecb\u7ecd\uff1a<\/h2>\n<p>OS\uff1aUbuntu-22.04\uff0cx86<\/p>\n<p>\u79d1\u5b66\u4e0a\u7f51\u73af\u5883\uff08\u786e\u4fdd\u652f\u6301BT\u4e0b\u8f7d\uff09 <\/p>\n<h2>1. \u8bbf\u95eeqbittorrent github \u4e3b\u9875\uff0c\u67e5\u770b\u76f8\u5173\u5f15\u5bfc\uff1a<\/h2>\n<p>\u8bbf\u95ee\uff08<a href=\"https:\/\/github.com\/qbittorrent\/qBittorrent\/blob\/master\/INSTALL\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/qbittorrent\/qBittorrent\/blob\/master\/INSTALL<\/a>\uff09 \uff0c\u53ef\u4ee5\u4e86\u89e3\u5230\u4f9d\u8d56\u9879\u4e3b\u8981\u6709<code>Boost<\/code>\uff0c<code>libtorrent-rasterbar<\/code>\uff0c<code>Qt<\/code>\uff08\u5176\u4f59\u53ef\u4ee5\u76f4\u63a5apt\u4e0b\u8f7d\uff09\uff0c\u6545\u4e0b\u9762\u8fdb\u884c\u9010\u4e2a\u5b89\u88c5\u3002<\/p>\n<h2>2.\u4f9d\u8d56\u9879\u5b89\u88c5<\/h2>\n<h3>1. Boost\u5b89\u88c5\uff1a<\/h3>\n<ul>\n<li>\n<p>\u8bbf\u95eeBoost\u5b98\u7f51\uff0c\u8fdb\u5165\u6700\u65b0\u7248\u4e0b\u8f7d\u9875\u9762\uff08<a href=\"https:\/\/www.boost.org\/releases\/latest\/\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.boost.org\/releases\/latest\/<\/a>\uff09 \u3002\u590d\u5236\u5bf9\u5e94\u4e0b\u8f7d\u94fe\u63a5\u5230\u547d\u4ee4\u884c\uff0c\u4f7f\u7528wget\u4e0b\u8f7d\uff1a<code>wget https:\/\/archives.boost.io\/release\/1.88.0\/source\/boost_1_88_0.tar.bz2<\/code><\/p>\n<\/li>\n<li>\n<p>\u89e3\u538b\u4e0b\u8f7d\u597d\u7684\u538b\u7f29\u5305\uff1a<code>tar -xjvf boost_1_88_0.tar.bz2<\/code><\/p>\n<\/li>\n<li>\n<p>\u8bbf\u95ee\u5b98\u7f51\u4f7f\u7528\u624b\u518c\uff08<a href=\"https:\/\/www.boost.org\/doc\/user-guide\/getting-started.html\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.boost.org\/doc\/user-guide\/getting-started.html<\/a>\uff09 \uff0c\u786e\u4fdd\u76f8\u5173\u73af\u5883\u65e0\u8bef\u540e\uff0c\u8df3\u8f6c\u5230<code>Bootstrap<\/code>\u90e8\u5206(<a href=\"https:\/\/www.boost.org\/doc\/user-guide\/getting-started.html#_bootstrap\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.boost.org\/doc\/user-guide\/getting-started.html#_bootstrap<\/a>) \uff0c\u6309\u8bf4\u660e\u6267\u884c\u4ee5\u4e0b\u4e09\u4e2a\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"language-bash\">.\/bootstrap.sh\n.\/b2\n.\/b2 install --prefix=\/usr\/local<\/code><\/pre>\n<\/li>\n<li>\n<p>\u6267\u884c\u65e0\u8bef\u540e\uff0c\u5199\u5165\u76f8\u5173\u73af\u5883\u53d8\u91cf\u5230<code>~\/.bashrc<\/code>\u4e2d<\/p>\n<pre><code class=\"language-bash\">export BOOST_ROOT=\/usr\/local \nexport LD_LIBRARY_PATH=\/usr\/local\/lib:$LD_LIBRARY_PATH \nexport CPLUS_INCLUDE_PATH=\/usr\/local\/include:$CPLUS_INCLUDE_PATH <\/code><\/pre>\n<p>\u6700\u540e<code>source ~\/.bashrc<\/code>\uff0c<code>Boost<\/code>\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>2. libtorrent-rasterbar\u5b89\u88c5\uff1a<\/h3>\n<ul>\n<li>\n<p>\u8bbf\u95ee\u5b98\u65b9github\u9875\u9762\uff08<a href=\"https:\/\/github.com\/arvidn\/libtorrent\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/arvidn\/libtorrent<\/a>\uff09 \uff0c\u67e5\u770brelease\u4e2d\u7684<code>libtorrent-rasterbar<\/code>\u8fdb\u884c\u4e0b\u8f7d\uff1a<code>wget https:\/\/github.com\/arvidn\/libtorrent\/releases\/download\/v2.0.11\/libtorrent-rasterbar-2.0.11.tar.gz<\/code><\/p>\n<\/li>\n<li>\n<p>\u67e5\u770b\u6784\u5efa\u5f15\u5bfc\uff08<a href=\"https:\/\/github.com\/arvidn\/libtorrent\/blob\/RC_2_0\/docs\/building.rst#building-with-cmake\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/arvidn\/libtorrent\/blob\/RC_2_0\/docs\/building.rst#building-with-cmake<\/a>\uff09 \uff08\u672c\u6b21\u4f7f\u7528cmake\u6784\u5efa\uff09\uff0c\u6309\u7167\u5f15\u5bfc\u6267\u884c\u3002<\/p>\n<pre><code class=\"language-bash\">mkdir build\ncd build\ncmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -G Ninja ..\nninja\nninja install#\u5b98\u65b9\u5f15\u5bfc\u4e2d\u7f3a\u5c11\u8fd9\u4e00\u6b65\uff0c\u4f1a\u5bfc\u81f4\u540e\u7eed\u627e\u4e0d\u5230\u76f8\u5173\u6587\u4ef6<\/code><\/pre>\n<h3>3. Qt6\u5b89\u88c5\uff1a<\/h3>\n<\/li>\n<li>\n<p>\u4f7f\u7528apt\u5b89\u88c5\u7684qt\u5e76\u4e0d\u6ee1\u8db3\u7248\u672c\u8981\u6c42\uff0c\u9700\u8981\u6211\u4eec\u81ea\u884c\u5b89\u88c5\u3002\u672c\u6b21\u4f7f\u7528aqt\u5de5\u5177\u5b89\u88c5\uff08\u9ed8\u8ba4\u5df2\u914d\u7f6e\u597dpython\u73af\u5883\uff09\uff1a<code>pip install aqtinstall<\/code><\/p>\n<\/li>\n<li>\n<p>\u5b89\u88c5qt6.9.1\u76f8\u5173\u7ec4\u4ef6\uff1a<code>aqt install-qt linux desktop 6.9.1 linux_gcc_64<\/code><\/p>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u73af\u5883\u53d8\u91cf\uff1a<code>export PATH=~\/Qt\/6.5.2\/gcc_64\/bin:$PATH<\/code>(\u66ff\u6362\u4e3a\u81ea\u5df1\u7684\u8def\u5f84)<\/p>\n<\/li>\n<\/ul>\n<h2>3. qbittorrent-nox\u7f16\u8bd1\u5b89\u88c5\uff1a<\/h2>\n<ul>\n<li>\n<p><code>clone<\/code>\u6e90\u4ee3\u7801\u5230\u672c\u5730\uff1a<code>git clone https:\/\/github.com\/qbittorrent\/qBittorrent\/tree\/master<\/code><\/p>\n<\/li>\n<li>\n<p>\u6309\u7167\u5f15\u5bfc\uff0c\u9010\u6b65\u6267\u884c\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"language-bash\">cmake -B build -DCMAKE_BUILD_TYPE=Release\ncmake --build build\ncmake --install build<\/code><\/pre>\n<p><em>\u65f6\u95f4\u53ef\u80fd\u8f83\u957f\uff0c\u53ef\u4ee5\u9009\u62e9\u5728\u6027\u80fd\u597d\u7684\u673a\u5668\u4e0a\u7f16\u8bd1\uff08\u9700\u4fdd\u8bc1\u73af\u5883\u76f8\u540c\uff09\uff0c\u800c\u540e\u590d\u5236\u53ef\u6267\u884c\u6587\u4ef6\u5230\u76ee\u6807\u673a\u5668\u3002<\/em><\/p>\n<\/li>\n<li>\n<p>\u8fd0\u884cqbittorrent-nox\uff0c\u5982\u51fa\u73b0\u627e\u4e0d\u5230\u6587\u4ef6\u9519\u8bef\uff0c\u624b\u52a8\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u5373\u53ef\uff1a<\/p>\n<pre><code class=\"language-bash\">export PATH=\/home\/qt\/6.9.1\/gcc_64\/lib:$PATH\nexport LD_LIBRARY_PATH=\"\/home\/qt\/6.9.1\/gcc_64\/lib:$LD_LIBRARY_PATH\"<\/code><\/pre>\n<\/li>\n<li>\n<p>\u8bbf\u95eewebUI\u754c\u9762\uff0c\u8c03\u6574\u4ee3\u7406\u8bbe\u7f6e\uff08\u76f8\u5173\u6559\u7a0b\u6bd4\u8f83\u591a\uff0c\u4e0d\u518d\u8d58\u8ff0\uff09\uff0c\u6d4b\u8bd5RSS\u8ba2\u9605\uff0c\u5747\u80fd\u6d41\u7545\u8fd0\u884c\u3002<img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/Black-Whitexx\/PictureLink\/main\/image-20250805005802274.png\" alt=\"image-20250805005802274\" \/><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>[2025]Ubuntu\u4e0b q&#8230;<\/p>\n","protected":false},"author":1,"featured_media":66,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=\/wp\/v2\/posts\/65"}],"collection":[{"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65"}],"version-history":[{"count":5,"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":71,"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions\/71"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=\/wp\/v2\/media\/66"}],"wp:attachment":[{"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.soyorin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}