前引
aic8800d80相关驱动在最新的linux内核中无法安装,在网上找了很多别人重新编译的驱动都无法正常使用,后来才了解到deb文件可以解压出源码文件,在针对错误进行修改后又可以重新打包。
命令
安装
1
apt install dpkg
解压deb文件
1
dpkg-deb -x org.deb ./src/
将deb文件解压到一个文件夹中
修改源码文件
为了后续重新打包最好不要改变源代码文件结构
解压出包的控制信息
1
dpkg-deb -e org.deb ./src/DEBIAN
重新打包
1
dpkg-deb -b ./src new.deb
安装
1
dpkg -i new.deb
暂无评论
object(Widget\Comments\Archive)#100 (15) { ["request":protected]=> object(Typecho\Widget\Request)#92 (3) { ["filter":"Typecho\Widget\Request":private]=> array(0) { } ["request":"Typecho\Widget\Request":private]=> object(Typecho\Request)#9 (8) { ["sandbox":"Typecho\Request":private]=> NULL ["params":"Typecho\Request":private]=> NULL ["pathInfo":"Typecho\Request":private]=> string(33) "/post/dpkg-deb-rebuild/index.html" ["requestUri":"Typecho\Request":private]=> string(33) "/post/dpkg-deb-rebuild/index.html" ["requestRoot":"Typecho\Request":private]=> string(23) "https://blog.teohzy.com" ["baseUrl":"Typecho\Request":private]=> string(0) "" ["ip":"Typecho\Request":private]=> NULL ["urlPrefix":"Typecho\Request":private]=> string(23) "https://blog.teohzy.com" } ["params":"Typecho\Widget\Request":private]=> object(Typecho\Config)#94 (1) { ["currentConfig":"Typecho\Config":private]=> array(0) { } } } ["response":protected]=> object(Typecho\Widget\Response)#99 (2) { ["request":"Typecho\Widget\Response":private]=> object(Typecho\Request)#9 (8) { ["sandbox":"Typecho\Request":private]=> NULL ["params":"Typecho\Request":private]=> NULL ["pathInfo":"Typecho\Request":private]=> string(33) "/post/dpkg-deb-rebuild/index.html" ["requestUri":"Typecho\Request":private]=> string(33) "/post/dpkg-deb-rebuild/index.html" ["requestRoot":"Typecho\Request":private]=> string(23) "https://blog.teohzy.com" ["baseUrl":"Typecho\Request":private]=> string(0) "" ["ip":"Typecho\Request":private]=> NULL ["urlPrefix":"Typecho\Request":private]=> string(23) "https://blog.teohzy.com" } ["response":"Typecho\Widget\Response":private]=> object(Typecho\Response)#2 (8) { ["charset":"Typecho\Response":private]=> string(5) "UTF-8" ["contentType":"Typecho\Response":private]=> string(9) "text/html" ["responders":"Typecho\Response":private]=> array(0) { } ["cookies":"Typecho\Response":private]=> array(1) { [0]=> array(7) { [0]=> string(46) "05c7ece7306bd76dc42039292480cfb4contents_views" [1]=> string(3) "176" [2]=> int(0) [3]=> string(1) "/" [4]=> string(15) "blog.teohzy.com" [5]=> bool(false) [6]=> bool(false) } } ["headers":"Typecho\Response":private]=> array(2) { ["Content-Type"]=> string(24) "text/html; charset=UTF-8" ["X-Pingback"]=> string(37) "https://blog.teohzy.com/action/xmlrpc" } ["status":"Typecho\Response":private]=> int(200) ["enableAutoSendHeaders":"Typecho\Response":private]=> bool(false) ["sandbox":"Typecho\Response":private]=> bool(false) } } ["stack":protected]=> array(0) { } ["sequence":protected]=> int(0) ["length":protected]=> int(0) ["parameter":protected]=> object(Typecho\Config)#101 (1) { ["currentConfig":"Typecho\Config":private]=> array(6) { ["parentId"]=> string(3) "176" ["parentContent"]=> array(33) { ["cid"]=> string(3) "176" ["title"]=> string(47) "使用dpkg-deb对deb文件解压、重新打包" ["slug"]=> string(16) "dpkg-deb-rebuild" ["created"]=> string(10) "1730963880" ["authorId"]=> string(1) "1" ["modified"]=> string(10) "1730964097" ["type"]=> string(4) "post" ["status"]=> string(7) "publish" ["text"]=> string(751) "## 前引 aic8800d80相关驱动在最新的linux内核中无法安装,在网上找了很多别人重新编译的驱动都无法正常使用,后来才了解到deb文件可以解压出源码文件,在针对错误进行修改后又可以重新打包。 ## 命令 - 安装 ```shell apt install dpkg ``` - 解压deb文件 ```sehll dpkg-deb -x org.deb ./src/ ``` 将deb文件解压到一个文件夹中 - 修改源码文件 为了后续重新打包最好不要改变源代码文件结构 - 解压出包的控制信息 ```shell dpkg-deb -e org.deb ./src/DEBIAN ``` - 重新打包 ```shell dpkg-deb -b ./src new.deb ``` - 安装 ```shell dpkg -i new.deb ```" ["commentsNum"]=> string(1) "0" ["order"]=> string(1) "0" ["template"]=> NULL ["password"]=> NULL ["allowComment"]=> string(1) "1" ["allowPing"]=> string(1) "1" ["allowFeed"]=> string(1) "1" ["parent"]=> string(1) "0" ["categories"]=> array(1) { [0]=> array(15) { ["mid"]=> string(2) "93" ["name"]=> string(5) "Linux" ["slug"]=> string(5) "Linux" ["type"]=> string(8) "category" ["description"]=> string(17) "Linux命令配置" ["count"]=> string(2) "13" ["order"]=> string(1) "3" ["parent"]=> string(1) "0" ["cid"]=> string(3) "176" ["directory"]=> array(1) { [0]=> string(5) "Linux" } ["permalink"]=> string(39) "https://blog.teohzy.com/category/Linux/" ["url"]=> string(39) "https://blog.teohzy.com/category/Linux/" ["feedUrl"]=> string(44) "https://blog.teohzy.com/feed/category/Linux/" ["feedRssUrl"]=> string(48) "https://blog.teohzy.com/feed/rss/category/Linux/" ["feedAtomUrl"]=> string(49) "https://blog.teohzy.com/feed/atom/category/Linux/" } } ["category"]=> string(5) "Linux" ["directory"]=> array(1) { [0]=> string(5) "Linux" } ["date"]=> object(Typecho\Date)#46 (4) { ["timeStamp"]=> int(1730992680) ["year"]=> string(4) "2024" ["month"]=> string(2) "11" ["day"]=> string(2) "07" } ["year"]=> string(4) "2024" ["month"]=> string(2) "11" ["day"]=> string(2) "07" ["hidden"]=> bool(false) ["pathinfo"]=> string(33) "/post/dpkg-deb-rebuild/index.html" ["permalink"]=> string(56) "https://blog.teohzy.com/post/dpkg-deb-rebuild/index.html" ["url"]=> string(56) "https://blog.teohzy.com/post/dpkg-deb-rebuild/index.html" ["isMarkdown"]=> bool(true) ["feedUrl"]=> string(61) "https://blog.teohzy.com/feed/post/dpkg-deb-rebuild/index.html" ["feedRssUrl"]=> string(65) "https://blog.teohzy.com/feed/rss/post/dpkg-deb-rebuild/index.html" ["feedAtomUrl"]=> string(66) "https://blog.teohzy.com/feed/atom/post/dpkg-deb-rebuild/index.html" ["content"]=> string(2968) "前引
aic8800d80相关驱动在最新的linux内核中无法安装,在网上找了很多别人重新编译的驱动都无法正常使用,后来才了解到deb文件可以解压出源码文件,在针对错误进行修改后又可以重新打包。
命令
安装
" } ["respondId"]=> string(16) "respond-post-176" ["commentPage"]=> int(0) ["allowComment"]=> bool(true) ["commentsNum"]=> string(1) "0" } } ["row":protected]=> array(0) { } ["options":protected]=> object(Widget\Options)#18 (13) { ["request":protected]=> object(Typecho\Widget\Request)#15 (3) { ["filter":"Typecho\Widget\Request":private]=> array(0) { } ["request":"Typecho\Widget\Request":private]=> object(Typecho\Request)#9 (8) { ["sandbox":"Typecho\Request":private]=> NULL ["params":"Typecho\Request":private]=> NULL ["pathInfo":"Typecho\Request":private]=> string(33) "/post/dpkg-deb-rebuild/index.html" ["requestUri":"Typecho\Request":private]=> string(33) "/post/dpkg-deb-rebuild/index.html" ["requestRoot":"Typecho\Request":private]=> string(23) "https://blog.teohzy.com" ["baseUrl":"Typecho\Request":private]=> string(0) "" ["ip":"Typecho\Request":private]=> NULL ["urlPrefix":"Typecho\Request":private]=> string(23) "https://blog.teohzy.com" } ["params":"Typecho\Widget\Request":private]=> object(Typecho\Config)#16 (1) { ["currentConfig":"Typecho\Config":private]=> array(0) { } } } ["response":protected]=> object(Typecho\Widget\Response)#17 (2) { ["request":"Typecho\Widget\Response":private]=> object(Typecho\Request)#9 (8) { ["sandbox":"Typecho\Request":private]=> NULL ["params":"Typecho\Request":private]=> NULL ["pathInfo":"Typecho\Request":private]=> string(33) "/post/dpkg-deb-rebuild/index.html" ["requestUri":"Typecho\Request":private]=> string(33) "/post/dpkg-deb-rebuild/index.html" ["requestRoot":"Typecho\Request":private]=> string(23) "https://blog.teohzy.com" ["baseUrl":"Typecho\Request":private]=> string(0) "" ["ip":"Typecho\Request":private]=> NULL ["urlPrefix":"Typecho\Request":private]=> string(23) "https://blog.teohzy.com" } ["response":"Typecho\Widget\Response":private]=> object(Typecho\Response)#2 (8) { ["charset":"Typecho\Response":private]=> string(5) "UTF-8" ["contentType":"Typecho\Response":private]=> string(9) "text/html" ["responders":"Typecho\Response":private]=> array(0) { } ["cookies":"Typecho\Response":private]=> array(1) { [0]=> array(7) { [0]=> string(46) "05c7ece7306bd76dc42039292480cfb4contents_views" [1]=> string(3) "176" [2]=> int(0) [3]=> string(1) "/" [4]=> string(15) "blog.teohzy.com" [5]=> bool(false) [6]=> bool(false) } } ["headers":"Typecho\Response":private]=> array(2) { ["Content-Type"]=> string(24) "text/html; charset=UTF-8" ["X-Pingback"]=> string(37) "https://blog.teohzy.com/action/xmlrpc" } ["status":"Typecho\Response":private]=> int(200) ["enableAutoSendHeaders":"Typecho\Response":private]=> bool(false) ["sandbox":"Typecho\Response":private]=> bool(false) } } ["stack":protected]=> array(1) { [0]=> &array(146) { ["3e3dc16e4aeeb7ef1c2f64abcd4c61c8"]=> string(264) "2PQo/6cIHZ9aa8TpRumF4nIMmKChljBTwYc98lTWDIlC/JEAEsajPfS8qDUQbCDG0/WK7FcStrPnidxJ9BfM35F5gSRbXY/RwbyC7KT0DD6bCD9/e8ZRRnkxs41+wr8AL6VywAMh8m9CZb+54vZmujKQlxlmb1jMv3ZiSDu9AUIaI75gFsoTM3jB34etA/RKSbWVIUaDsrHk2vKLGKf+8LtuDdWLwL2tdeOOzkljAcg=????CqP8xp/5Y9SoBl+236op8w==" ["actionTable"]=> string(47) "a:1:{s:10:"cross-edit";s:15:"Handsome_Action";}" ["allowRegister"]=> string(1) "0" ["allowXmlRpc"]=> string(1) "2" ["attachmentTypes"]=> string(21) "@image@,@media@,@doc@" ["autoSave"]=> string(1) "0" ["charset"]=> string(5) "UTF-8" ["commentDateFormat"]=> string(18) "F jS, Y \a\t h:i a" ["commentsAntiSpam"]=> bool(false) ["commentsAutoClose"]=> string(1) "0" ["commentsAvatar"]=> string(1) "1" ["commentsAvatarRating"]=> string(1) "G" ["commentsCheckReferer"]=> string(1) "1" ["commentsHTMLTagAllowed"]=> string(69) "解压deb文件
将deb文件解压到一个文件夹中
修改源码文件
为了后续重新打包最好不要改变源代码文件结构
解压出包的控制信息
重新打包
安装