{"id":293,"date":"2018-08-24T14:16:13","date_gmt":"2018-08-24T06:16:13","guid":{"rendered":"http:\/\/www.inhhh.com\/blog\/?p=293"},"modified":"2018-08-24T14:16:13","modified_gmt":"2018-08-24T06:16:13","slug":"%e8%a7%a3%e5%86%b3mysql%e5%ae%89%e8%a3%85%e9%94%99%e8%af%afe-sub-process-usrbindpkg-returned-an-error-code-1","status":"publish","type":"post","link":"http:\/\/www.inhhh.com\/blog\/?p=293","title":{"rendered":"\u89e3\u51b3mysql\u5b89\u88c5\u9519\u8befE: Sub-process \/usr\/bin\/dpkg returned an error code (1)"},"content":{"rendered":"<p>\u7528apt\u5b89\u88c5mysql\uff0c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86E: Sub-process \/usr\/bin\/dpkg returned an error code (1)\u9519\u8bef\uff0c\u627e\u4e86\u597d\u591a\u65b9\u6cd5\u65e0\u6cd5\u89e3\u51b3\uff0c\u6700\u540e\u7ec8\u4e8e\u5728deepin\u8bba\u575b\u627e\u5230\u4e86\u89e3\u51b3\u529e\u6cd5<\/p>\n<pre class=\"prettyprint\"><code class=\"hljs bash has-numbering\"><span class=\"hljs-built_in\">cd<\/span> \/var\/lib\/dpkg\r\n    <span class=\"hljs-built_in\">sudo<\/span> mv info info.bak\r\n    <span class=\"hljs-built_in\">sudo<\/span> mkdir info\r\n    <span class=\"hljs-built_in\">sudo<\/span> dpkg --configure <span class=\"hljs-operator\">-a<\/span>\r\n    <span class=\"hljs-built_in\">sudo<\/span> apt-get install <span class=\"hljs-operator\">-f<\/span>\r\n    <span class=\"hljs-built_in\">sudo<\/span> mv \/var\/lib\/dpkg\/info\/* \/var\/lib\/dpkg\/info.bak\r\n    <span class=\"hljs-built_in\">sudo<\/span> rm -rf \/var\/lib\/dpkg\/info\r\n    <span class=\"hljs-built_in\">sudo<\/span> mv \/var\/lib\/dpkg\/info.bak \/var\/lib\/dpkg\/info<\/code><\/pre>\n<ul class=\"pre-numbering\">\n<li>1<\/li>\n<li>2<\/li>\n<li>3<\/li>\n<li>4<\/li>\n<li>5<\/li>\n<li>6<\/li>\n<li>7<\/li>\n<li>8<\/li>\n<\/ul>\n<p>\u4f9d\u6b21\u6267\u884c\u4ee5\u4e0a\u4ee3\u7801\uff0c\u7136\u540e\u5f7b\u5e95\u5220\u9664mysql\u3002<\/p>\n<pre class=\"prettyprint\"><code class=\"hljs lasso has-numbering\">sudo apt remove <span class=\"hljs-subst\">--<\/span>purge mysql<span class=\"hljs-attribute\">-soucre<\/span><span class=\"hljs-subst\">-<\/span><span class=\"hljs-number\">5.6<\/span>\r\nsudo apt remove <span class=\"hljs-subst\">--<\/span>purge mysql<span class=\"hljs-attribute\">-server<\/span><span class=\"hljs-subst\">-<\/span><span class=\"hljs-number\">5.6<\/span>\r\nsudo apt remove <span class=\"hljs-subst\">--<\/span>purge mysql<span class=\"hljs-attribute\">-client<\/span><span class=\"hljs-subst\">-<\/span><span class=\"hljs-number\">5.6<\/span>\r\nsudo apt remove <span class=\"hljs-subst\">--<\/span>purge mysql<span class=\"hljs-attribute\">-source<\/span><span class=\"hljs-subst\">-<\/span><span class=\"hljs-number\">5.6<\/span>\r\nsudo apt remove <span class=\"hljs-subst\">--<\/span>purge mysql<span class=\"hljs-attribute\">-common<\/span> \r\nsudo apt remove <span class=\"hljs-subst\">--<\/span>purge mysql<span class=\"hljs-attribute\">-server<\/span><span class=\"hljs-attribute\">-core<\/span><span class=\"hljs-subst\">-<\/span><span class=\"hljs-number\">5.6<\/span> \r\nsudo apt remove <span class=\"hljs-subst\">--<\/span>purge mysql<span class=\"hljs-attribute\">-client<\/span><span class=\"hljs-attribute\">-core<\/span><span class=\"hljs-subst\">-<\/span><span class=\"hljs-number\">5.6<\/span><\/code><\/pre>\n<ul class=\"pre-numbering\">\n<li>1<\/li>\n<li>2<\/li>\n<li>3<\/li>\n<li>4<\/li>\n<li>5<\/li>\n<li>6<\/li>\n<li>7<\/li>\n<\/ul>\n<p>\u8fd9\u6837\u5c31\u5f7b\u5e95\u5220\u9664\u4e86\uff0c\u5982\u679c\u4e0d\u653e\u5fc3\uff0c\u5c31\u8f93\u5165 sudo apt remove \u2013purge mysql-\u591a\u6309\u51e0\u6b21tab\u8fd9\u6837\u4f1a\u81ea\u52a8\u63d0\u793a\u5173\u4e8emysql\u7684\u5305\u3002<br \/>\n\u5220\u9664\u540e\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\uff0c\u91cd\u65b0\u5b89\u88c5\u5c31\u53ef\u4ee5\u4e86<\/p>\n<pre class=\"prettyprint\"><code class=\"hljs vbscript has-numbering\">sudo apt-<span class=\"hljs-keyword\">get<\/span> install mysql-<span class=\"hljs-built_in\">server<\/span>-<span class=\"hljs-number\">5.6<\/span><\/code><\/pre>\n<ul class=\"pre-numbering\">\n<li>1<\/li>\n<\/ul>\n<p>\u5927\u529f\u544a\u6210\u3002<br \/>\n\u6ce8\u610f\u5982\u679c\u4ee5\u524d\u5b89\u88c5\u8fc7mysql\u8fd9\u65f6\u5019\u4e0d\u4f1a\u6709\u8bbe\u7f6eroot\u5bc6\u7801\u7684\u63d0\u793a\uff0c\u4f60\u7528\u539f\u6765\u7684\u5bc6\u7801\u5c31\u53ef\u4ee5\u4e86\uff0c\u5982\u679c\u4ee5\u524d\u6ca1\u5b89\u88c5\u6210\u529f\u8fc7\uff0c\u5219\u4f1a\u51fa\u73b0root\u5bc6\u7801\u8bbe\u7f6e\u7684\u63d0\u793a\uff0c\u81ea\u5df1\u8bbe\u7f6e\u5373\u53ef\u3002<br \/>\n\u4e3a\u5565\u5b89\u88c5mysql5.6\u5462\uff0c\u56e0\u4e3a5.7\u6709\u4e2a\u8ba9\u4eba\u65e0\u6cd5\u63a5\u53d7\u7684\u95ee\u9898\uff0c\u90a3\u5c31\u662f\u505c\u6b62\u670d\u52a1\u9700\u8981\u7b4910\u5206\u949f\uff0c\u751a\u81f3\u5173\u673a\u90fd\u8981\u7b49<\/p>\n<p>&nbsp;<\/p>\n<p>\u6765\u6e90\uff1ahttps:\/\/blog.csdn.net\/shooke\/article\/details\/75578303<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528apt\u5b89\u88c5mysql\uff0c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86E: Sub-process \/usr\/bin\/dpkg retur<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"http:\/\/www.inhhh.com\/blog\/?p=293\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-293","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=293"}],"version-history":[{"count":1,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/293\/revisions"}],"predecessor-version":[{"id":294,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/293\/revisions\/294"}],"wp:attachment":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}