{"id":15610,"date":"2025-04-18T22:08:09","date_gmt":"2025-04-18T14:08:09","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/15610.html"},"modified":"2025-04-18T22:08:09","modified_gmt":"2025-04-18T14:08:09","slug":"%e5%9c%a8%e6%97%a0%e7%95%8c%e9%9d%a2ubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e9%85%8d%e7%bd%aechrome%e6%b5%8f%e8%a7%88%e5%99%a8%ef%bc%8c%e7%bb%93%e5%90%88undetected_chromedriver%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/15610.html","title":{"rendered":"\u5728\u65e0\u754c\u9762ubuntu\u670d\u52a1\u5668\u4e0a\u914d\u7f6echrome\u6d4f\u89c8\u5668\uff0c\u7ed3\u5408undetected_chromedriver\u5b9e\u73b0\u6570\u636e\u6293\u53d6\uff01\u4e0d\u4f7f\u7528sudo\u6743\u9650\u5b89\u88c5chrome\u6d4f\u89c8\u5668\uff01"},"content":{"rendered":"<p>                    import undetected_chromedriver as uc<\/p>\n<p>driver &#061; uc.Chrome(options&#061;options) <\/p>\n<h3><span style=\"color:#be191c\">\u95ee\u9898&#xff1a;uc.Chrome\u5728Linux\u670d\u52a1\u5668\u8fd0\u884c\u65f6\u51fa\u73b0\u62a5\u9519&#xff1a;\u00a0 <\/span><span style=\"color:#333333\">Binary Location Must be a String &#8211; Linux<\/span><\/h3>\n<p>\u5176\u539f\u56e0\u662f\u56e0\u4e3a\u670d\u52a1\u5668\u4e0a\u6ca1\u6709\u5b89\u88c5chrome\u6d4f\u89c8\u5668&#xff0c;\u7cfb\u7edf\u627e\u4e0d\u5230\u53ef\u6267\u884c\u8def\u5f84\u3002<\/p>\n<p>\u5927\u591a\u6570\u89e3\u51b3\u529e\u6cd5\u4e3a&#xff1a;\u5982\u4e0b\u94fe\u63a5<\/p>\n<p>sudo pacman -S chromium\u00a0 \u6216\u8005\u00a0 \u00a0sudo snap install chromium\u00a0 \u6216\u8005sudo apt install google-chrome-stable<\/p>\n<p>\u8fd9\u4e9b\u90fd\u9700\u8981root\u7528\u6237\u7684sodu\u6743\u9650&#xff0c;\u8fd9\u662f\u7531\u4e8e\u5728linux\u4e2d\u5b89\u88c5\u548c\u8fd0\u884c\u7a0b\u5e8f\u7684\u8981\u6c42\u3002\u4f46\u662f\u6211\u4eec\u5728\u79df\u670d\u52a1\u5668\u65f6\u6709\u65f6\u4e0d\u662froot\u7528\u6237\u3002<\/p>\n<p>&#034;TypeError: Binary Location Must be a String&#034; on Linux Mint with basic code \u00b7 Issue #2011 \u00b7 ultrafunkamsterdam\/undetected-chromedriverNo Binary Location \/ Binary Location Must be a String &#8211; Linux \u00b7 Issue #1544 \u00b7 ultrafunkamsterdam\/undetected-chromedriver<\/p>\n<h3>\u89e3\u51b3&#xff1a;\u5728\u81ea\u5df1\u8d26\u6237\u4e0b\u5b89\u88c5chrome\u6d4f\u89c8\u5668&#xff1a;<\/h3>\n<h4>\u4e00.\u5b89\u88c5chrome<\/h4>\n<h4>\u4e0b\u8f7d Chrome \u7684\u4fbf\u643a\u7248\u672c&#xff08;\u65e0\u9700\u5b89\u88c5&#xff09;<\/h4>\n<p>Google \u63d0\u4f9b\u4e86\u4e00\u4e9b\u4fbf\u643a\u5f0f&#xff08;portable&#xff09;\u7248\u672c&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u5e76\u8fd0\u884c&#xff0c;\u800c\u65e0\u9700\u5b89\u88c5\u5230\u7cfb\u7edf\u8def\u5f84\u3002<\/p>\n<li>\n<p>\u4e0b\u8f7d Chrome \u5b89\u88c5\u5305&#xff1a;<\/p>\n<p>\u6253\u5f00\u7ec8\u7aef\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d .deb \u6587\u4ef6&#xff1a;<\/p>\n<p>wget https:\/\/dl.google.com\/linux\/direct\/google-chrome-stable_current_amd64.deb <\/p>\n<\/li>\n<li>\n<p>\u89e3\u538b .deb \u6587\u4ef6&#xff1a;<\/p>\n<p>Debian \u6587\u4ef6\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u5f52\u6863\u5305&#xff0c;\u53ef\u4ee5\u4f7f\u7528 ar \u5de5\u5177\u63d0\u53d6\u5185\u5bb9\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff08;\u65e0\u9700 sudo&#xff09;&#xff1a;<\/p>\n<p>ar x google-chrome-stable_current_amd64.deb tar -xvf data.tar.xz<\/p>\n<p>\u8fd9\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u89e3\u538b\u51fa Chrome \u7684\u6587\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p>\u627e\u5230 Chrome \u53ef\u6267\u884c\u6587\u4ef6&#xff1a;<\/p>\n<p>\u89e3\u538b\u540e&#xff0c;\u60a8\u4f1a\u5728 opt\/google\/chrome\/ \u76ee\u5f55\u4e0b\u627e\u5230 Chrome \u53ef\u6267\u884c\u6587\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8&#xff1a;<\/p>\n<p>.\/opt\/google\/chrome\/chrome\u6b64\u65f6\u4f1a\u62a5\u9519&#xff1a;[1128\/155453.382705:WARNING:chrome_main_linux.cc(80)] Read channel stable from .\/opt\/google\/chrome\/CHROME_VERSION_EXTRA [582953:582953:1128\/155453.396982:FATAL:setuid_sandbox_host.cc(163)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I&#039;m aborting now. You need to make sure that \/home\/zhubin\/workspace\/Chromium\/opt\/google\/chrome\/chrome-sandbox is owned by root and has mode 4755. Trace\/breakpoint trap (core dumped)<span style=\"color:#7b7f82\">\u4e5f\u53ef\u80fd\u51fa\u73b0&#xff1a;error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory \u89e3\u51b3\u529e\u6cd5&#xff1a;sudo apt update\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sudo apt install libgbm1<\/span><\/p>\n<\/li>\n<h4>\u4e8c\u3001\u65e0\u5934\u8fd0\u884cchrome<\/h4>\n<p>\u4e0a\u9762\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u95ee\u9898&#xff0c;\u5c24\u5176\u662f\u5728\u6ca1\u6709 sudo \u6743\u9650\u7684\u60c5\u51b5\u4e0b\u5c1d\u8bd5\u8fd0\u884c Google Chrome \u6216 Chromium\u3002\u9519\u8bef\u4fe1\u606f\u6307\u51fa SUID sandbox helper binary \u914d\u7f6e\u4e0d\u6b63\u786e\u3002\u7531\u4e8e\u6ca1\u6709 sudo \u6743\u9650&#xff0c;\u65e0\u6cd5\u66f4\u6539\u6587\u4ef6\u7684\u6240\u6709\u8005\u6216\u6743\u9650\u3002<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5&#xff1a;.\/opt\/google\/chrome\/chrome &#8211;no-sandbox &#8211;disable-setuid-sandbox &#8211;headless &#8211;disable-gpu &#8211;remote-debugging-port&#061;9222 \u51fa\u73b0&#xff1a;[1128\/155748.393876:WARNING:chrome_main_linux.cc(80)] Read channel stable from .\/opt\/google\/chrome\/CHROME_VERSION_EXTRA DevTools listening on ws:\/\/127.0.0.1:9222\/devtools\/browser\/ff9e1148-3944-4415-983d-25607d77c263<\/p>\n<p>\u8fd0\u884c\u6210\u529f&#xff01; \u8fd9\u610f\u5473\u7740\u60a8\u5df2\u7ecf\u6210\u529f\u542f\u52a8\u4e86 Chrome \u7684 \u65e0\u5934\u6a21\u5f0f&#xff08;Headless mode&#xff09;&#xff0c;\u5e76\u4e14\u6d4f\u89c8\u5668\u6b63\u5728\u76d1\u542c\u8c03\u8bd5\u7aef\u53e3 9222&#xff0c;\u7b49\u5f85\u63a5\u53d7\u8fdc\u7a0b\u8c03\u8bd5\u8fde\u63a5\u3002\u8fd9\u79cd\u6a21\u5f0f\u975e\u5e38\u9002\u5408\u81ea\u52a8\u5316\u4efb\u52a1&#xff0c;\u5982\u7f51\u9875\u6293\u53d6\u3001\u81ea\u52a8\u5316\u6d4b\u8bd5\u7b49\u3002<\/p>\n<h3>\u5728python\u4e2d\u4f7f\u7528\u793a\u4f8b\u4ee3\u7801&#xff1a;<\/h3>\n<p># \u542f\u52a8 Undetected ChromeDriver<br \/>\noptions &#061; uc.options.ChromeOptions()<br \/>\n# options.add_argument(&#034;&#8211;start-maximized&#034;)  # \u7a97\u53e3\u6700\u5927\u5316<br \/>\noptions.binary_location &#061; &#034;\/home\/workspace\/Chromium\/opt\/google\/chrome\/chrome&#034;<br \/>\n# \u6dfb\u52a0\u53c2\u6570\u4e0e\u65e0\u5934 Chrome \u4ea4\u4e92<br \/>\noptions.add_argument(&#034;&#8211;no-sandbox&#034;)<br \/>\noptions.add_argument(&#034;&#8211;disable-setuid-sandbox&#034;)<br \/>\noptions.add_argument(&#034;&#8211;headless&#034;)<br \/>\noptions.add_argument(&#034;&#8211;disable-gpu&#034;)<br \/>\noptions.add_argument(&#034;&#8211;remote-debugging-port&#061;9222&#034;)<\/p>\n<p>driver &#061; uc.Chrome(options&#061;options)<\/p>\n<p># \u6d4b\u8bd5\u6253\u5f00\u7f51\u9875<br \/>\ndriver.get(&#034;https:\/\/www.google.com&#034;)<br \/>\nprint(&#034;Page Title:&#034;, driver.title) <\/p>\n<p>cookie_list&#061;[]<br \/>\n# \u5c06\u6bcf\u4e2a Cookie \u6dfb\u52a0\u5230\u6d4f\u89c8\u5668<br \/>\nfor cookie in cookie_list:<br \/>\n    name, value &#061; cookie.split(&#034;&#061;&#034;, 1)  # \u6309\u7b49\u53f7\u62c6\u5206<br \/>\n    driver.add_cookie({<br \/>\n        &#034;name&#034;: name,<br \/>\n        &#034;value&#034;: value,<br \/>\n        &#034;domain&#034;: &#034;xxx.com&#034;  # \u786e\u4fdd\u57df\u540d\u6b63\u786e<br \/>\n    })<\/p>\n<p># \u5237\u65b0\u9875\u9762\u4ee5\u5e94\u7528 Cookie<br \/>\ndriver.refresh()<br \/>\n# \u6253\u5f00\u76ee\u6807\u9875\u9762&#xff0c;\u9a8c\u8bc1\u662f\u5426\u5df2\u6210\u529f\u52a0\u8f7d Cookie<br \/>\ndriver.get(url)<br \/>\nredirected_url &#061; driver.current_url  # \u6216\u901a\u8fc7 driver.page_source \u89e3\u6790 HTML<br \/>\nresponse &#061; requests.get(redirected_url, headers&#061;headers)<br \/>\nprint(&#034;Extracted URL:&#034;, redirected_url)<br \/>\n# \u83b7\u53d6\u6574\u4e2a\u9875\u9762\u7684html\u5185\u5bb9<br \/>\npage_source &#061; driver.page_source<\/p>\n<p># \u5173\u95ed\u6d4f\u89c8\u5668<br \/>\ndriver.quit() <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u95ee\u9898\uff1auc.Chrome\u5728Linux\u670d\u52a1\u5668\u8fd0\u884c\u65f6\u51fa\u73b0\u62a5\u9519\uff1a\u5176\u539f\u56e0\u662f\u56e0\u4e3a\u670d\u52a1\u5668\u4e0a\uff0c\u7cfb\u7edf\u627e\u4e0d\u5230\u53ef\u6267\u884c\u8def\u5f84\u3002\u5927\u591a\u6570\u89e3\u51b3\u529e\u6cd5\u4e3a\uff1a\u5982\u4e0b\u94fe\u63a5sudo pacman -S chromium  \u6216\u8005   sudo snap install chromium\u6216\u8005sudo apt install google-chrome-stable\u8fd9\u4e9b\u90fd\u9700\u8981root\u7528\u6237\u7684sodu\u6743\u9650\uff0c\u8fd9\u662f\u7531\u4e8e\u5728linux\u4e2d\u5b89\u88c5\u548c\u8fd0\u884c\u7a0b\u5e8f\u7684\u8981\u6c42\u3002\u4f46\u662f\u6211\u4eec\u5728\u79df\u670d\u52a1\u5668\u65f6\u6709\u65f6\u4e0d\u662froot\u7528\u6237\u3002_typeerror: binary location must be a string<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[130,50,87,43,44],"topic":[],"class_list":["post-15610","post","type-post","status-publish","format-standard","hentry","category-server","tag-chrome","tag-50","tag-87","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728\u65e0\u754c\u9762ubuntu\u670d\u52a1\u5668\u4e0a\u914d\u7f6echrome\u6d4f\u89c8\u5668\uff0c\u7ed3\u5408undetected_chromedriver\u5b9e\u73b0\u6570\u636e\u6293\u53d6\uff01\u4e0d\u4f7f\u7528sudo\u6743\u9650\u5b89\u88c5chrome\u6d4f\u89c8\u5668\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/15610.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u65e0\u754c\u9762ubuntu\u670d\u52a1\u5668\u4e0a\u914d\u7f6echrome\u6d4f\u89c8\u5668\uff0c\u7ed3\u5408undetected_chromedriver\u5b9e\u73b0\u6570\u636e\u6293\u53d6\uff01\u4e0d\u4f7f\u7528sudo\u6743\u9650\u5b89\u88c5chrome\u6d4f\u89c8\u5668\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u95ee\u9898\uff1auc.Chrome\u5728Linux\u670d\u52a1\u5668\u8fd0\u884c\u65f6\u51fa\u73b0\u62a5\u9519\uff1a\u5176\u539f\u56e0\u662f\u56e0\u4e3a\u670d\u52a1\u5668\u4e0a\uff0c\u7cfb\u7edf\u627e\u4e0d\u5230\u53ef\u6267\u884c\u8def\u5f84\u3002\u5927\u591a\u6570\u89e3\u51b3\u529e\u6cd5\u4e3a\uff1a\u5982\u4e0b\u94fe\u63a5sudo pacman -S chromium \u6216\u8005  sudo snap install chromium\u6216\u8005sudo apt install google-chrome-stable\u8fd9\u4e9b\u90fd\u9700\u8981root\u7528\u6237\u7684sodu\u6743\u9650\uff0c\u8fd9\u662f\u7531\u4e8e\u5728linux\u4e2d\u5b89\u88c5\u548c\u8fd0\u884c\u7a0b\u5e8f\u7684\u8981\u6c42\u3002\u4f46\u662f\u6211\u4eec\u5728\u79df\u670d\u52a1\u5668\u65f6\u6709\u65f6\u4e0d\u662froot\u7528\u6237\u3002_typeerror: binary location must be a string\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/15610.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T14:08:09+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/15610.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/15610.html\",\"name\":\"\u5728\u65e0\u754c\u9762ubuntu\u670d\u52a1\u5668\u4e0a\u914d\u7f6echrome\u6d4f\u89c8\u5668\uff0c\u7ed3\u5408undetected_chromedriver\u5b9e\u73b0\u6570\u636e\u6293\u53d6\uff01\u4e0d\u4f7f\u7528sudo\u6743\u9650\u5b89\u88c5chrome\u6d4f\u89c8\u5668\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T14:08:09+00:00\",\"dateModified\":\"2025-04-18T14:08:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/15610.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/15610.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/15610.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u65e0\u754c\u9762ubuntu\u670d\u52a1\u5668\u4e0a\u914d\u7f6echrome\u6d4f\u89c8\u5668\uff0c\u7ed3\u5408undetected_chromedriver\u5b9e\u73b0\u6570\u636e\u6293\u53d6\uff01\u4e0d\u4f7f\u7528sudo\u6743\u9650\u5b89\u88c5chrome\u6d4f\u89c8\u5668\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728\u65e0\u754c\u9762ubuntu\u670d\u52a1\u5668\u4e0a\u914d\u7f6echrome\u6d4f\u89c8\u5668\uff0c\u7ed3\u5408undetected_chromedriver\u5b9e\u73b0\u6570\u636e\u6293\u53d6\uff01\u4e0d\u4f7f\u7528sudo\u6743\u9650\u5b89\u88c5chrome\u6d4f\u89c8\u5668\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/15610.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u65e0\u754c\u9762ubuntu\u670d\u52a1\u5668\u4e0a\u914d\u7f6echrome\u6d4f\u89c8\u5668\uff0c\u7ed3\u5408undetected_chromedriver\u5b9e\u73b0\u6570\u636e\u6293\u53d6\uff01\u4e0d\u4f7f\u7528sudo\u6743\u9650\u5b89\u88c5chrome\u6d4f\u89c8\u5668\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u95ee\u9898\uff1auc.Chrome\u5728Linux\u670d\u52a1\u5668\u8fd0\u884c\u65f6\u51fa\u73b0\u62a5\u9519\uff1a\u5176\u539f\u56e0\u662f\u56e0\u4e3a\u670d\u52a1\u5668\u4e0a\uff0c\u7cfb\u7edf\u627e\u4e0d\u5230\u53ef\u6267\u884c\u8def\u5f84\u3002\u5927\u591a\u6570\u89e3\u51b3\u529e\u6cd5\u4e3a\uff1a\u5982\u4e0b\u94fe\u63a5sudo pacman -S chromium \u6216\u8005  sudo snap install chromium\u6216\u8005sudo apt install google-chrome-stable\u8fd9\u4e9b\u90fd\u9700\u8981root\u7528\u6237\u7684sodu\u6743\u9650\uff0c\u8fd9\u662f\u7531\u4e8e\u5728linux\u4e2d\u5b89\u88c5\u548c\u8fd0\u884c\u7a0b\u5e8f\u7684\u8981\u6c42\u3002\u4f46\u662f\u6211\u4eec\u5728\u79df\u670d\u52a1\u5668\u65f6\u6709\u65f6\u4e0d\u662froot\u7528\u6237\u3002_typeerror: binary location must be a string","og_url":"https:\/\/www.wsisp.com\/helps\/15610.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T14:08:09+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/15610.html","url":"https:\/\/www.wsisp.com\/helps\/15610.html","name":"\u5728\u65e0\u754c\u9762ubuntu\u670d\u52a1\u5668\u4e0a\u914d\u7f6echrome\u6d4f\u89c8\u5668\uff0c\u7ed3\u5408undetected_chromedriver\u5b9e\u73b0\u6570\u636e\u6293\u53d6\uff01\u4e0d\u4f7f\u7528sudo\u6743\u9650\u5b89\u88c5chrome\u6d4f\u89c8\u5668\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T14:08:09+00:00","dateModified":"2025-04-18T14:08:09+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/15610.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/15610.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/15610.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728\u65e0\u754c\u9762ubuntu\u670d\u52a1\u5668\u4e0a\u914d\u7f6echrome\u6d4f\u89c8\u5668\uff0c\u7ed3\u5408undetected_chromedriver\u5b9e\u73b0\u6570\u636e\u6293\u53d6\uff01\u4e0d\u4f7f\u7528sudo\u6743\u9650\u5b89\u88c5chrome\u6d4f\u89c8\u5668\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/15610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=15610"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/15610\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=15610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=15610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=15610"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=15610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}