{"id":1695,"date":"2021-01-27T16:30:16","date_gmt":"2021-01-27T08:30:16","guid":{"rendered":"http:\/\/iqotom.com\/?p=1695"},"modified":"2021-01-27T16:30:24","modified_gmt":"2021-01-27T08:30:24","slug":"ubuntu%e5%a6%82%e4%bd%95%e7%bc%96%e8%af%91%e7%bd%91%e5%8d%a1%e9%a9%b1%e5%8a%a8","status":"publish","type":"post","link":"http:\/\/iqotom.com\/?p=1695","title":{"rendered":"Ubuntu\u5982\u4f55\u7f16\u8bd1\u7f51\u5361\u9a71\u52a8"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4ec5\u4f9b\u53c2\u8003<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">\u7f16\u8bd1\u73af\u5883\uff1a<br>Windows 10 Ubuntu WLS \uff08\u5fae\u8f6f\u5b50\u7cfb\u7edf\uff09<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"985\" height=\"705\" src=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_001.png\" alt=\"\" class=\"wp-image-1696\" srcset=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_001.png 985w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_001-300x215.png 300w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_001-768x550.png 768w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_001-660x472.png 660w\" sizes=\"(max-width: 985px) 100vw, 985px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u6f14\u793a\u4e00\uff1a<strong>\u7f16\u8bd1intel\u6709\u7ebf\u7f51\u5361\u9a71\u52a8igb-5.4.6<\/strong><\/h2>\n\n\n\n<p style=\"font-size:17px\">\u8fdb\u5165\u9a71\u52a8src\uff0cmake\u7f16\u8bd1\u76f4\u63a5\u62a5\u9519<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">laohu@HUCHANGHUI:~\/igb-5.4.6\/src$ make\ncommon.mk:82: *** Kernel header files not in any of the expected locations.\ncommon.mk:83: *** Install the appropriate kernel development package, e.g.\ncommon.mk:84: *** kernel-devel, for building kernel modules and try again.  Stop.<\/code><\/pre>\n\n\n\n<p style=\"font-size:17px\">\u5b89\u88c5\u5185\u6838\u6e90\u7801<br><code>sudo apt-get install linux-headers-$(uname -r)<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">laohu@HUCHANGHUI:~$ sudo apt-get install linux-headers-$(uname -r)\n[sudo] password for laohu:\nReading package lists... Done\nBuilding dependency tree\nReading state information... Done\nE: Unable to locate package linux-headers-4.4.0-19041-Microsoft\nE: Couldn't find any package by glob 'linux-headers-4.4.0-19041-Microsoft'\nE: Couldn't find any package by regex 'linux-headers-4.4.0-19041-Microsoft'<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\"><strong>\u6ca1\u6709\u8fd9\u4e2a\u5185\u6838\uff0c\u771f\u5b9e\u7cfb\u7edf\u6216\u865a\u62df\u673a\u5e94\u8be5\u662f\u4e0d\u4f1a\u51fa\u9519\u7684<\/strong><\/p>\n\n\n\n<p style=\"font-size:17px\">\u5b89\u88c5\u901a\u7528\u5185\u6838\u66ff\u4ee3<br> <code>sudo apt-get install linux-headers-generic <\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"225\" src=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_002.png\" alt=\"\" class=\"wp-image-1697\" srcset=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_002.png 914w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_002-300x74.png 300w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_002-768x189.png 768w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_002-660x162.png 660w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/><\/figure>\n\n\n\n<p style=\"font-size:17px\">\u5b89\u88c5\u7f16\u8bd1\u5de5\u5177\u5305<br> <code>sudo apt-get install build-essential <\/code><\/p>\n\n\n\n<p style=\"font-size:17px\">\u56e0\u4e3auname -r \u8f93\u51fa\u7684\u5185\u6838\u7248\u672c\u4e0d\u5b58\u5728\uff0c\u6240\u4ee5\u8981\u4fee\u6539\u7f16\u8bd1\u8def\u5f84<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"672\" height=\"275\" src=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_007.png\" alt=\"\" class=\"wp-image-1702\" srcset=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_007.png 672w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_007-300x123.png 300w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_007-660x270.png 660w\" sizes=\"(max-width: 672px) 100vw, 672px\" \/><\/figure>\n\n\n\n<p style=\"font-size:17px\">\u8fd9\u91cc\u521b\u5efa\u8f6f\u8fde\u63a5\u5c31\u53ef\u4ee5\u4e86<br><code>sudo ln -s \/usr\/src\/linux-headers-5.4.0-65-generic \/usr\/src\/linux<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"120\" src=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_003.png\" alt=\"\" class=\"wp-image-1698\" srcset=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_003.png 703w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_003-300x51.png 300w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_003-660x113.png 660w\" sizes=\"(max-width: 703px) 100vw, 703px\" \/><\/figure>\n\n\n\n<p style=\"font-size:17px\"><code>sudo make<\/code>\u7f16\u8bd1\u6210\u529f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"469\" src=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_004.png\" alt=\"\" class=\"wp-image-1699\" srcset=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_004.png 829w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_004-300x170.png 300w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_004-768x434.png 768w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_004-660x373.png 660w\" sizes=\"(max-width: 829px) 100vw, 829px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6f14\u793a\u4e8c\uff1a<strong>\u7f16\u8bd1realtek 8101\u7f51\u5361\u9a71\u52a8<\/strong><\/h2>\n\n\n\n<p style=\"font-size:17px\">\u8fdb\u5165src\u76ee\u5f55\u7f16\u8bd1\u62a5\u9519<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">laohu@HUCHANGHUI:~\/realtek-r8101-linux-driver-master\/src$ make modules\nfind: \u2018\/lib\/modules\/4.4.0-19041-Microsoft\/kernel\/drivers\/net\/ethernet\u2019: No such file or directory\nfind: \u2018\/lib\/modules\/4.4.0-19041-Microsoft\/kernel\/drivers\/net\u2019: No such file or directory\nmake -C \/lib\/modules\/4.4.0-19041-Microsoft\/build M=\/home\/laohu\/realtek-r8101-linux-driver-master\/src modules\nmake[1]: *** \/lib\/modules\/4.4.0-19041-Microsoft\/build: No such file or directory.  Stop.\nmake: *** [Makefile:116: modules] Error 2<\/code><\/pre>\n\n\n\n<p style=\"font-size:17px\">\u540c\u6837\u662f\u7f16\u8bd1\u8def\u5f84\u5f15\u8d77\uff0c\u4fee\u6539Makefile\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"230\" src=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_005.png\" alt=\"\" class=\"wp-image-1701\" srcset=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_005.png 709w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_005-300x97.png 300w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_005-660x214.png 660w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<p style=\"font-size:17px\">\u4fee\u6539\u540e\u7f16\u8bd1\u6210\u529f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"228\" src=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_006.png\" alt=\"\" class=\"wp-image-1700\" srcset=\"http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_006.png 841w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_006-300x81.png 300w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_006-768x208.png 768w, http:\/\/iqotom.com\/wp-content\/uploads\/2021\/01\/ubuntu_wls_driver_006-660x179.png 660w\" sizes=\"(max-width: 841px) 100vw, 841px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u624b\u6559\u7a0b\uff0cubuntu\u5982\u4f55\u7f16\u8bd1\u7f51\u5361\u9a71\u52a8<\/p>\n","protected":false},"author":1,"featured_media":1696,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,5],"tags":[51],"_links":{"self":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/1695"}],"collection":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1695"}],"version-history":[{"count":1,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/1695\/revisions"}],"predecessor-version":[{"id":1703,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/1695\/revisions\/1703"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/media\/1696"}],"wp:attachment":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1695"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}