{"id":1945,"date":"2010-12-17T08:56:27","date_gmt":"2010-12-17T08:56:27","guid":{"rendered":"http:\/\/www.icocean.com\/blog\/?p=1945"},"modified":"1970-01-01T07:00:00","modified_gmt":"1970-01-01T07:00:00","slug":"debian%E8%BD%AF%E4%BB%B6%E5%8C%85%E5%AE%89%E8%A3%85%E5%88%A0%E9%99%A4%E5%A4%B1%E8%B4%A5%E7%9A%84%E7%BB%88%E7%BA%A7%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88","status":"publish","type":"post","link":"https:\/\/www.icocean.com\/blog\/?p=1945","title":{"rendered":"Debian\u8f6f\u4ef6\u5305\u5b89\u88c5\u5220\u9664\u5931\u8d25\u7684\u7ec8\u7ea7\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>\u4f5c\u8005: \u79cb\u98ce\u7684\u5bb6<\/p>\n<p>\u4e00\u3001\u524d\u8a00<\/p>\n<p>\u6240\u8c13\u7684\u8f6f\u4ef6\u5b89\u88c5\uff0c\u4e0d\u7ba1\u662f\u90a3\u4e2a\u7cfb\u7edf\uff0c\u90fd\u662f\u901a\u8fc7\u4e00\u5b9a\u7684\u65b9\u6cd5\u628a\u6587\u4ef6\u4ece\u6e90\u590d\u5236\u5230\u76ee\u7684\uff0c\u7136\u540e\u505a\u4e00\u4e9b\u914d\u7f6e\u5de5\u4f5c\uff0c\u4f7f\u5176\u80fd\u6b63\u5e38\u7684\u8fd0\u884c\uff0c\u5378\u8f7d\u3002<\/p>\n<p>\u5bf9\u4e8eLinux\u6765\u8bf4\uff0c\u5176\u76ee\u5f55\u7684\u9ad8\u5ea6\u7ec4\u7ec7\u5316\uff0c\u4ee5\u53ca\u5404\u8f6f\u4ef6\u4f9d\u8d56\u5173\u7cfb\u7684\u590d\u6742\u6027\uff0c\u4f7f\u5f97\u8f6f\u4ef6\u5305\u6570\u636e\u5e93\u663e\u5f97\u975e\u5e38\u91cd\u8981\u3002<\/p>\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u8f6f\u4ef6\u5305\u6570\u636e\u5e93\u6700\u4e3b\u8981\u8bb0\u5f55\u4e24\u70b9\uff1a<\/p>\n<p>&nbsp;&nbsp; 1. \u8f6f\u4ef6\u5305\u5305\u542b\u7684\u6587\u4ef6\u5217\u8868<br \/>&nbsp;&nbsp; 2. \u8f6f\u4ef6\u7684\u4f9d\u8d56\u5173\u7cfb<\/p>\n<p>\u5bf9\u4e0edebian\u7684\u8f6f\u4ef6\u5305\u6570\u636e\u5e93\u6765\u8bf4\uff0c\u8981\u505a\u7684\u4e8b\u60c5\u66f4\u591a\uff1a<\/p>\n<p>&nbsp;&nbsp; 1. \u8f6f\u4ef6\u7684\u5b89\u88c5\u72b6\u6001<br \/>&nbsp;&nbsp; 2. \u8f6f\u4ef6\u7684\u914d\u7f6e\u72b6\u6001<br \/>&nbsp;&nbsp; 3. \u8f6f\u4ef6\u7684post-uninstall<\/p>\n<p>\u6709\u5f88\u591a\u539f\u56e0\u4f1a\u5bfc\u81f4\u8f6f\u4ef6\u5b89\u88c5\u5931\u8d25\uff0c\u4f46\u5927\u591a\u6570\u90fd\u96c6\u4e2d\u5728\uff1a<\/p>\n<p>&nbsp;&nbsp; 1. \u5b89\u88c5\u65f6\u7684post-install<br \/>&nbsp;&nbsp; 2. \u5378\u8f7d\u65f6\u7684post-uninstall<\/p>\n<p>\u867d\u7136\u4e0d\u4f1a\u5bf9\u7cfb\u7edf\u9020\u6210\u95ee\u9898\uff0c\u4f46\u662f\u6bcf\u6b21\u5b89\u88c5\u8f6f\u4ef6\uff0c\u6216\u8005\u5347\u7ea7\u8f6f\u4ef6\u7684\u65f6\u5019\uff0c\u90fd\u4f1a\u63d0\u793a\u6709\u8f6f\u4ef6\u5305\u9700\u8981\u914d\u7f6e\uff0c\u5176\u5b9e\u7684\u786e\u5f88\u70e6\u4eba\u3002<!--more--><\/p>\n<p>\u5f53\u7136\uff0c\u5927\u591a\u6570\u60c5\u51b5\u53ef\u4ee5\u901a\u8fc7\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;dpkg-reconfigure PKG_NAME<\/p>\n<p>\u6765\u5b8c\u6210\u3002\u66f4\u8ba8\u538c\u7684\u662f\uff0c\u6709\u65f6\u5019\u8fd9\u4e2a\u529e\u6cd5\u4e0d\u662f\u603b\u5341\u5206\u6709\u6548\u3002<\/p>\n<p>\u8fd9\u65f6\u5019\u5c31\u9700\u8981\u624b\u52a8\u4fee\u6539\u8f6f\u4ef6\u5305\u6570\u636e\u5e93\uff0c\u4ee5\u8fbe\u5230\u5b8c\u6210\u914d\u7f6e\uff0c\u4fee\u590d\u5b89\u88c5\u7684\u76ee\u7684\u3002<br \/>\u4e8c\u3001\u539f\u7406<\/p>\n<p>dpkg\u4e4b\u6240\u4ee5\u80fd\u591f\u5bf9\u6bcf\u4e2a\u5305\u7684\u72b6\u6001\u4e86\u5982\u6307\uff0c\u5b8c\u5168\u662f\u56e0\u4e3adpkg\u6570\u636e\u5e93&#8212;>>\/var\/lib\/dpkg\/status<br \/>\u8fd9\u4e2a\u6587\u672c\u6587\u4ef6\u4e2d\u8bb0\u5f55\u4e86\u8f6f\u4ef6\u4ed3\u5e93\u4e2d\u66fe\u7ecf\u5b89\u88c5\u8fc7\u7684\u8f6f\u4ef6\u5305\u7684\u5b89\u88c5\u72b6\u6001\u3002<br \/>\u6240\u4ee5\uff0c\u53ea\u9700\u8981\u6539\u52a8\u8fd9\u4e2a\u6587\u4ef6\u5c31\u80fd\u591f\u6539\u53d8\u8f6f\u4ef6\u5305\u7684\u72b6\u6001\u3002<\/p>\n<p>\u6839\u636edpkg\u624b\u518c\u9875\u7684\u63cf\u8ff0\uff0c\u8f6f\u4ef6\u5305\u7684\u72b6\u6001\u6709<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;1\u3001not-installed<br \/>&nbsp;&nbsp;&nbsp;&nbsp;The package is not installed on your system.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;2\u3001config-files<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Only the configuration files of the package exist on the system.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;3\u3001half-installed<br \/>&nbsp;&nbsp;&nbsp;&nbsp;The installation of the package has been started, but not com-<br \/>&nbsp;&nbsp;&nbsp;&nbsp;pleted for some reason.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;4\u3001unpacked<br \/>&nbsp;&nbsp;&nbsp;&nbsp;The package is unpacked, but not configured.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;5\u3001half-configured<br \/>&nbsp;&nbsp;&nbsp;&nbsp;The package is unpacked and configuration has been started, but<br \/>&nbsp;&nbsp;&nbsp;&nbsp;not yet completed for some reason.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;6\u3001 triggers-awaited<br \/>&nbsp;&nbsp;&nbsp;&nbsp;The package awaits trigger processing by another package.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;7\u3001 triggers-pending<br \/>&nbsp;&nbsp;&nbsp;&nbsp;The package has been triggered.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;8\u3001 installed<br \/>&nbsp;&nbsp;&nbsp;&nbsp;The package is unpacked and configured OK.<\/p>\n<p>\u5176\u4e2d\uff0chalf-installed\u548chalf-configured\u662f\u5e38\u89c1\u7684\u9519\u8bef\u72b6\u6001\uff0c\u4e0d\u5b8c\u5168\u914d\u7f6e\uff0c\u6216\u8005\u4e0d\u5b8c\u5168\u5b89\u88c5\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u8f6f\u4ef6\u5305\u8fd8\u6709\u4e00\u4e2a\u9009\u62e9\u72b6\u6001\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;1\u3001install<br \/>&nbsp;&nbsp;&nbsp;&nbsp;The package is selected for installation.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;2\u3001deinstall<br \/>&nbsp;&nbsp;&nbsp;&nbsp;The package is selected for deinstallation (i.e. we want to<br \/>&nbsp;&nbsp;&nbsp;&nbsp;remove all files, except configuration files).<br \/>&nbsp;&nbsp;&nbsp;&nbsp;3\u3001purge The package is selected to be purged (i.e. we want to remove<br \/>&nbsp;&nbsp;&nbsp;&nbsp;everything, even configuration files).<\/p>\n<p>\u6700\u540e\u7ec4\u5408\u8d77\u6765\u7684\u9519\u8bef\u72b6\u6001\u5927\u6982\u5c31\u67096\u79cd\uff0c\u5b89\u88c5\u3001\u5220\u9664\u51fa\u9519\u90fd\u4f1a\u5c06\u8f6f\u4ef6\u5305\u7684\u72b6\u6001\u6807\u8bb0\u6210\u5176\u4e2d\u4e4b\u4e00\uff01<br \/>\u5b83\u4eec\u7684\u72b6\u6001\u90fd\u8981\u88ab\u4fee\u6539\u6210\uff1ainstall ok installed ; deinstall ok not-installed\u6216purge ok not-installed\u3002<\/p>\n<p>\u6700\u540e\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a<br \/>\u8f6f\u4ef6\u5305\u9664\u4e86\u5904\u5728not-install \u7684\u72b6\u6001\uff0c\u5176\u4f59\u72b6\u6001\u90fd\u662f\u6709\u5b8c\u6574\u7684\u63cf\u8ff0\u7684\u3002<br \/>\u8981\u5c06\u9519\u8bef\u72b6\u6001\u4fee\u6539\u6210installed\u72b6\u6001\uff0c\u9700\u8981\u67e5\u770b\u4e00\u4e0b\u8f6f\u4ef6\u5305\u7684\u63cf\u8ff0\u662f\u5426\u6709\u3002\uff08\u8fd9\u4e2a\u4e00\u822c\u662f\u6709\u7684\uff09<br \/>\u8981\u5c06\u9519\u8bef\u72b6\u6001\u4fee\u6539\u6210not-install\u72b6\u6001\uff0c\u9700\u8981\u5220\u9664\u8f6f\u4ef6\u5305\u7684\u63cf\u8ff0\uff0c\u5220\u9664Section\u884c\u4e0b\u9762\u7684\u5168\u90e8\u3002\uff08\u4e0d\u8981\u628a\u522b\u4eba\u7684\u5220\u6389\uff09<br \/>\u4e09\u3001\u4f8b\u5b50<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;Package: libexempi3<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Status: purge ok half-installed<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Priority: optional<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Section: libs<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Installed-Size: 748<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com><br \/>&nbsp;&nbsp;&nbsp;&nbsp;Architecture: i386<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Source: exempi<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Version: 2.0.2-2<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Depends: libc6 (>= 2.4), libexpat1 (>= 1.95.8), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.2.1)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Description: library to parse XMP metadata (Library)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Exempi is a library to parse XMP metadata as defined by the<br \/>&nbsp;&nbsp;&nbsp;&nbsp;specification.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;XMP (Extensible Metadata Platform) facilitates embedding metadata in files<br \/>&nbsp;&nbsp;&nbsp;&nbsp;using a subset of RDF. Most notably XMP supports embedding metadata in PDF<br \/>&nbsp;&nbsp;&nbsp;&nbsp;and many image formats, though it is designed to support nearly any file type.<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Original-Maintainer: Asheesh Laroia <asheesh@asheesh.org><br \/>&nbsp;&nbsp;&nbsp;&nbsp;Homepage: http:\/\/libopenraw.freedesktop.org\/wiki\/Exempi<\/p>\n<p>\u8272\u6807\u8bb0\u5904\u5c31\u662f\u4e00\u79cd\u9519\u8bef\u7684\u72b6\u6001\u3002\u628a\u5b83\u4fee\u6539\u6210\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;Package: libexempi3<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Status: purge ok not-installed<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Priority: optional<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Section: libs<\/p>\n<p>\u8fd9\u4e2a\u8f6f\u4ef6\u5305\u7684\u72b6\u6001\u5c31\u4fee\u6539\u597d\u4e86\uff0c\u4e0d\u4f1a\u518d\u62a5\u9519\u4e86\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u5199\u4e86\u8fd9\u4e48\u591a\u4e86\uff0c\u6700\u540e\u4e00\u4e2a\u8b66\u544a\uff1a\u7f16\u8f91\u8fd9\u4e2a\u6587\u4ef6\u4e4b\u524d\u8bb0\u5f97\u5907\u4efd\uff01<\/p>\n<p>\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\u6b64\u65b9\u6cd5\u7edd\u65e0\u6bd2\u526f\u4f5c\u7528\uff0c\u53ef\u653e\u5fc3\u4f7f\u7528\uff0d\uff0d\uff0d\uff0d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005: \u79cb\u98ce\u7684\u5bb6 \u4e00\u3001\u524d\u8a00 \u6240\u8c13\u7684\u8f6f\u4ef6\u5b89\u88c5\uff0c\u4e0d\u7ba1\u662f\u90a3\u4e2a\u7cfb\u7edf\uff0c\u90fd\u662f\u901a\u8fc7\u4e00\u5b9a\u7684\u65b9\u6cd5\u628a\u6587\u4ef6\u4ece\u6e90\u590d\u5236\u5230\u76ee\u7684\uff0c\u7136\u540e\u505a\u4e00\u4e9b <a href='https:\/\/www.icocean.com\/blog\/?p=1945' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[3122,3124,3123],"class_list":["post-1945","post","type-post","status-publish","format-standard","hentry","category-linuxunix","tag-debian","tag-3124","tag-3123","category-16-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1945"}],"version-history":[{"count":0,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1945\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}