{"id":11259,"date":"2014-03-29T12:49:00","date_gmt":"2014-03-29T03:49:00","guid":{"rendered":"http:\/\/oichinote.com\/plus\/?p=11259"},"modified":"2014-03-29T12:49:00","modified_gmt":"2014-03-29T03:49:00","slug":"make-it-possible-to-apt-get-on-hdl4-g","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2014\/03\/make-it-possible-to-apt-get-on-hdl4-g.html","title":{"rendered":"LANDISK HDL4-G\u3092apt-get\u53ef\u80fd\u306b\u3059\u308b"},"content":{"rendered":"<p>LANDISK Home HDL4-G\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u305f\u3081\u306b\u3001\u3069\u3046\u3057\u3066\u3082\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u4e8b\u3001\u305d\u308c\u306fapt-get\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u69d8\u306b\u3059\u308b\u4e8b\u3067\u3059\u3002\u5e78\u3044\u3001\u4f55\u540d\u306e\u65b9\u304c\u6210\u529f\u3057\u3066\u304a\u3089\u308c\u3001\u8cc7\u6599\u3082\u6b8b\u3057\u3066\u4e0b\u3055\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u306b\u6cbf\u3063\u3066\u3001\u79c1\u3082\u8ffd\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u4e00\u756a\u7c21\u6f54\u306b\u307e\u3068\u3081\u3089\u308c\u3066\u3044\u305f\u306e\u304c\u3001\u6b21\u306e\u30da\u30fc\u30b8\u3067\u3059\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/nakapon\/20110215\" target=\"_blank\">2011-02-15 &#8211; \u306a\u304b\u307d\u3093\u306e\u96d1\u8a18<\/a><\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306e\u8a18\u8ff0\u306f\u3001\u3053\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306e\u5185\u5bb9\u3092\u5143\u306b\u3001\u6574\u7406\u3057\u3066\u3001\u4e0d\u8db3\u5206\u3092\u88dc\u3063\u305f\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li>root\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092rw\u3067mount<\/li>\n<li>apt-get\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4f5c\u6210<\/li>\n<li>\u30ea\u30f3\u30af\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u4f5c\u6210<\/li>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u7fd2\u5f97<\/li>\n<li>dpkg\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(1\/2)<\/li>\n<li>dpkg\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(2\/2)<\/li>\n<li>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>\u78ba\u8a8d<\/li>\n<li>root\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092ro\u3067mount<\/li>\n<\/ol>\n<p>\u305d\u3057\u3066\u3001\u5927\u5143\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u306f\u3001\u6b21\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3067\u3059\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/www.compensator.net\/doc\/hdl4g.html\" target=\"_blank\">Compensator.net &#8211; LANDISK Home (HDL4-G) Hack<\/a><\/li>\n<\/ul>\n<p>\u5b9f\u969b\u306e\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u9014\u4e2d\u7d4c\u904e\u3082\u308f\u304b\u308b\u69d8\u306b\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u306e\u69d8\u5b50\u3082\u8cbc\u308a\u4ed8\u3051\u3066\u3044\u307e\u3059\u3002apt-get\u3092\u53ef\u80fd\u3068\u3059\u308b\u305f\u3081\u306b\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u3089\u5165\u529b\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u90e8\u5206\u306f\u3001\u7dd1\u8272\u306e\u6240\u3067\u3059\u3002<\/p>\n<p>Debian\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306b\u95a2\u3057\u3066\u306f\u3001\u6b21\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/qref.sourceforge.net\/Debian\/quick-reference\/ch-package.ja.html\" target=\"_blank\">Debian \u30af\u30a4\u30c3\u30af\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 &#8211; Debian \u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406<\/a><\/li>\n<\/ul>\n<h3>1. root\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092rw\u3067mount<\/h3>\n<p>\u5b9f\u969b\u306broot\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u66f8\u304d\u8fbc\u3080\u4f5c\u696d\u306f\u4e00\u90e8\u306a\u306e\u3067\u3059\u304c\u3001\u6700\u521d\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">mount -o rw,remount \/<\/span><\/pre>\n<h3>2. apt-get\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4f5c\u6210<\/h3>\n<p>apt-get\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3069\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">cd \/mnt\/hda5\/landisk\/<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">mkdir -p apt\/lists\/partial<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">touch apt\/lists\/lock<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">mkdir -p apt-cache\/archives\/partial<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">mkdir -p dpkg\/updates<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">touch dpkg\/available<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">touch dpkg\/status<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">mkdir backups<\/span><\/pre>\n<p>\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# ls\r\napt  apt-cache  backups  conffiles  dpkg  powerlog  samba\r\nsh-2.05b# ls -algtr\r\ntotal 9\r\ndrwxr-xr-x  12 1000 1024 May 22  2009 ..\r\ndrwxr-xr-x   3 root 1024 Mar  4 21:35 samba\r\n-rw-r--r--   1 root   95 Mar  5 04:38 powerlog\r\ndrwxr-xr-x   2 root 1024 Mar 18 23:37 conffiles\r\ndrwxr-xr-x   3 root 1024 Mar 19 00:06 apt\r\ndrwxr-xr-x   3 root 1024 Mar 19 00:07 apt-cache\r\ndrwxr-xr-x   3 root 1024 Mar 19 00:07 dpkg\r\ndrwxr-xr-x   2 root 1024 Mar 19 00:07 backups\r\ndrwxrwxrwx   8 root 1024 Mar 19 00:07 .\r\nsh-2.05b# ls -lR apt\r\napt:\r\ntotal 1\r\ndrwxr-xr-x  3 root root 1024 Mar 19 00:07 lists\r\n\r\napt\/lists:\r\ntotal 1\r\n-rw-r--r--  1 root root    0 Mar 19 00:07 lock\r\ndrwxr-xr-x  2 root root 1024 Mar 19 00:06 partial\r\n\r\napt\/lists\/partial:\r\ntotal 0\r\nsh-2.05b#<\/pre>\n<h3>3. \u30ea\u30f3\u30af\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u4f5c\u6210<\/h3>\n<p>\u3053\u3053\u3067\u4f5c\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30f3\u30af\u3059\u308b\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">cd \/mnt\/hda5\/<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">vi make_apt_links.sh<\/span><\/pre>\n<p>make_apt_links.sh\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"hljs\"><code>ln -s \/mnt\/hda5\/landisk\/apt \/var\/lib\/apt\r\nln -s \/mnt\/hda5\/landisk\/apt-cache \/var\/cache\/apt\r\nln -s \/mnt\/hda5\/landisk\/dpkg \/var\/lib\/dpkg\r\nln -s \/mnt\/hda5\/landisk\/backups \/var\/backups\r\n<\/code><\/pre>\n<p>\u3053\u306emake_apt_links.sh\u3092\u5b9f\u884c\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30f3\u30af\u3057\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">chmod +x make_apt_links.sh<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">.\/make_apt_links.sh<\/span><\/pre>\n<p>\/var\u306fRAMDISK\u306a\u306e\u3067\u3001\u518d\u8d77\u52d5\u3059\u308b\u3068\u3053\u306e\u30ea\u30f3\u30af\u304c\u6d88\u6ec5\u3057\u307e\u3059\u3002\u306a\u306e\u3067\u3001\/etc\/init.d\/rc.local\u306e\u6700\u5f8c\u306b\u3001\u6b21\u306e\u4e00\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">vi \/etc\/init.d\/rc.local<\/span><\/pre>\n<pre class=\"hljs\"><code>\/mnt\/hda5\/make_apt_links.sh\r\n<\/code><\/pre>\n<h3>sources.list\u306e\u4f5c\u6210<\/h3>\n<p>apt-get\u306e\u53d6\u5f97\u5bfe\u8c61\u3068\u306a\u308b\u5834\u6240\u3092sources.list\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">mkdir \/etc\/apt<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">vi \/etc\/apt\/sources.list<\/span><\/pre>\n<p>sources.list\u306b\u8a18\u8ff0\u3059\u308b\u5185\u5bb9\u306f\u3001\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"hljs\"><code>deb http:\/\/archive.debian.org\/debian-archive\/debian\/ sarge main contrib non-free\r\ndeb-src http:\/\/archive.debian.org\/debian-archive\/debian\/ sarge main contrib non-free\r\ndeb http:\/\/archive.debian.org\/debian-archive\/debian-security\/ sarge\/updates main contrib non-free\r\ndeb-src http:\/\/archive.debian.org\/debian-archive\/debian-security\/ sarge\/updates main contrib non-free\r\n<\/code><\/pre>\n<p>\u6b21\u306e\u65b9\u3005\u306e\u8a2d\u5b9a\u306e\u901a\u308a\u3067\u3059\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/odawara\/20081202\/1228177922\" target=\"_blank\">LANDISK@Debian sarge &#8211; odawara\u306e\u300c\u306f\u3066\u306a de \u30e1\u30e2\u300d<\/a><\/li>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/hackermaskee\/20090419\" target=\"_blank\">HDL4-G hack(2) &#8211; Hacker Maskee\u306e\u65e5\u8a18<\/a><\/li>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/nakapon\/20110215\" target=\"_blank\">2011-02-15 \u2013 \u306a\u304b\u307d\u3093\u306e\u96d1\u8a18<\/a><\/li>\n<\/ul>\n<h3>4. \u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u7fd2\u5f97<\/h3>\n<p>apt-get\u3092\u5b9f\u884c\u3057\u3066\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002apt-get\u81ea\u4f53\u306f\u3001\u6700\u521d\u304b\u3089HDL4-G\u306b\u30d0\u30a4\u30ca\u30ea\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# which apt-get\r\n\/usr\/bin\/apt-get\r\nsh-2.05b# <span style=\"color: #00ff00;\">apt-get update<\/span>\r\nGet:1 http:\/\/archive.debian.org sarge\/main Packages [4362kB]\r\nGet:2 http:\/\/archive.debian.org sarge\/main Release [97B]                                                                            \r\nGet:3 http:\/\/archive.debian.org sarge\/contrib Packages [59.8kB]                                                                     \r\nGet:4 http:\/\/archive.debian.org sarge\/contrib Release [100B]                                                                        \r\nGet:5 http:\/\/archive.debian.org sarge\/non-free Packages [51.9kB]                                                                    \r\nGet:6 http:\/\/archive.debian.org sarge\/non-free Release [101B]                                                                       \r\nGet:7 http:\/\/archive.debian.org sarge\/main Sources [1323kB]                                                                         \r\nGet:8 http:\/\/archive.debian.org sarge\/main Release [100B]                                                                           \r\nGet:9 http:\/\/archive.debian.org sarge\/contrib Sources [24.7kB]                                                                      \r\nGet:10 http:\/\/archive.debian.org sarge\/contrib Release [103B]                                                                       \r\nGet:11 http:\/\/archive.debian.org sarge\/non-free Sources [23.5kB]                                                                    \r\nGet:12 http:\/\/archive.debian.org sarge\/non-free Release [104B]                                                                      \r\nGet:13 http:\/\/archive.debian.org sarge\/updates\/main Packages [417kB]                                                                \r\nGet:14 http:\/\/archive.debian.org sarge\/updates\/main Release [112B]                                                                  \r\nGet:15 http:\/\/archive.debian.org sarge\/updates\/contrib Packages [623B]                                                              \r\nGet:16 http:\/\/archive.debian.org sarge\/updates\/contrib Release [115B]                                                               \r\nGet:17 http:\/\/archive.debian.org sarge\/updates\/non-free Packages [676B]                                                             \r\nGet:18 http:\/\/archive.debian.org sarge\/updates\/non-free Release [116B]                                                              \r\nGet:19 http:\/\/archive.debian.org sarge\/updates\/main Sources [77.1kB]                                                                \r\nGet:20 http:\/\/archive.debian.org sarge\/updates\/main Release [115B]                                                                  \r\nGet:21 http:\/\/archive.debian.org sarge\/updates\/contrib Sources [20B]                                                                \r\nGet:22 http:\/\/archive.debian.org sarge\/updates\/contrib Release [118B]                                                               \r\nGet:23 http:\/\/archive.debian.org sarge\/updates\/non-free Sources [414B]                                                              \r\nGet:24 http:\/\/archive.debian.org sarge\/updates\/non-free Release [119B]                                                              \r\nFetched 6342kB in 2m7s (49.8kB\/s)                                                                                                   \r\nReading Package Lists... Done<\/pre>\n<p>\u53d6\u5f97\u3057\u305f\u30ea\u30b9\u30c8\u306f\u3001\/var\/lib\/apt\/lists\u306b\u5165\u308b\u69d8\u3067\u3059\u3002<\/p>\n<h3>5. dpkg\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(1\/2)<\/h3>\n<p>\u307e\u305a\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u53d6\u5f97\u3068\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u306e\/usr\/bin\u3078\u306e\u30b3\u30d4\u30fc\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">apt-get install dpkg<\/span>\r\nReading Package Lists... Done\r\nBuilding Dependency Tree... Done\r\nThe following extra packages will be installed:\r\n  dselect gcc-3.3-base libc6 libdb1-compat libgcc1 libncurses5 libstdc++5\r\nSuggested packages:\r\n  locales glibc-doc\r\nThe following NEW packages will be installed:\r\n  dpkg dselect gcc-3.3-base libc6 libdb1-compat libgcc1 libncurses5 libstdc++5\r\n0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.\r\nNeed to get 6930kB of archives.\r\nAfter unpacking 22.2MB of additional disk space will be used.\r\nDo you want to continue? [Y\/n] <span style=\"color: #00ff00;\">y<\/span>\r\nGet:1 http:\/\/archive.debian.org sarge\/main libdb1-compat 2.1.3-7 [34.3kB]\r\nGet:2 http:\/\/archive.debian.org sarge\/main libc6 2.3.2.ds1-22sarge6 [4068kB]\r\nGet:3 http:\/\/archive.debian.org sarge\/main libgcc1 1:3.4.3-13sarge1 [78.5kB]                                                        \r\nGet:4 http:\/\/archive.debian.org sarge\/main libncurses5 5.4-4 [273kB]                                                                \r\nGet:5 http:\/\/archive.debian.org sarge\/main gcc-3.3-base 1:3.3.5-13 [149kB]                                                          \r\nGet:6 http:\/\/archive.debian.org sarge\/main libstdc++5 1:3.3.5-13 [314kB]                                                            \r\nGet:7 http:\/\/archive.debian.org sarge\/main dselect 1.10.28 [117kB]                                                                  \r\nGet:8 http:\/\/archive.debian.org sarge\/main dpkg 1.10.28 [1896kB]                                                                    \r\nFetched 6930kB in 31s (217kB\/s)                                                                                                     \r\nCould not exec dpkg!\r\nE: Sub-process \/usr\/bin\/dpkg returned an error code (100)<\/pre>\n<p>\u60c5\u5831\u901a\u308a\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre>sh-2.05b# ls \/var\/cache\/apt\/archives\/\r\ndpkg_1.10.28_arm.deb               libc6_2.3.2.ds1-22sarge6_arm.deb    libncurses5_5.4-4_arm.deb        partial\r\ndselect_1.10.28_arm.deb            libdb1-compat_2.1.3-7_arm.deb       libstdc++5_1%3a3.3.5-13_arm.deb\r\ngcc-3.3-base_1%3a3.3.5-13_arm.deb  libgcc1_1%3a3.4.3-13sarge1_arm.deb  lock<\/pre>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u305d\u306e\u4e2d\u306edpkg\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u624b\u52d5\u3067\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">cd \/var\/cache\/apt\/archives\/<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">mkdir tmp_dpkg<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">cd tmp_dpkg<\/span> \r\nsh-2.05b# <span style=\"color: #00ff00;\">ar xv ..\/dpkg_1.10.28_arm.deb<\/span> \r\nx - debian-binary\r\nx - control.tar.gz\r\nx - data.tar.gz\r\nsh-2.05b# <span style=\"color: #00ff00;\">tar xvzf data.tar.gz<\/span><\/pre>\n<p>Debian\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001ar\u3067\u307e\u3068\u3081\u3089\u308c\u3066\u3044\u3066\u3001\u3055\u3089\u306b\u305d\u306e\u4e2d\u306b\u3001data.tar.gz\u3068\u8a00\u3046\u3001\u5b9f\u969b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3079\u304d\u30d5\u30a1\u30a4\u30eb\u304c\u306f\u3044\u3063\u3066\u3044\u307e\u3059\u3002data.tar.gz\u306e\u4e2d\u306b\u306f\u3001dpkg\u3067\u4f7f\u308f\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u304c&#8221;\/&#8221;\u3092\u629c\u3044\u305f\u5f62\u3067\u3001\u3053\u306e\u5834\u5408\u3001etc, sbin, usr, var\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30d4\u30fc(\u79fb\u52d5)\u5bfe\u8c61\u306f\u3001\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre>sh-2.05b# ls -l usr\/bin\/dpkg*\r\n-rwxr-xr-x  1 root root 153548 May 27  2005 usr\/bin\/dpkg\r\n-rwxr-xr-x  1 root root 181740 May 27  2005 usr\/bin\/dpkg-deb\r\n-rwxr-xr-x  1 root root  67408 May 27  2005 usr\/bin\/dpkg-query\r\n-rwxr-xr-x  1 root root  34928 May 27  2005 usr\/bin\/dpkg-split<\/pre>\n<p>\u3053\u308c\u3089\u306edpkg\u95a2\u4fc2\u306e\u30d0\u30a4\u30ca\u30ea\u3060\u3051\u3092\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u30b3\u30d4\u30fc(\u79fb\u52d5)\u3057\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">mv usr\/bin\/dpkg* \/usr\/bin<\/span><\/pre>\n<p>\u4e0d\u8981\u306b\u306a\u3063\u305f\u3001\u5c55\u958b\u6e08\u307f\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3054\u3068\u6d88\u3057\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">cd ..<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">rm -rf tmp_dpkg\/<\/span><\/pre>\n<h3>6. dpkg\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(2\/2)<\/h3>\n<p>\u30a8\u30e9\u30fc\u304c\u7121\u304f\u306a\u308b\u307e\u3067\u3001\u6b21\u306e\u884c\u7a0b\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">apt-get install dpkg<\/span>\r\nsh-2.05b# <span style=\"color: #00ff00;\">sed -i -e 's\/not-installed\/installed\/g' \/var\/lib\/dpkg\/status<\/span><\/pre>\n<p>4\u56de\u7a0b\u5ea6\u3067\u30a8\u30e9\u30fc\u304c\u7121\u304f\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u6210\u529f\u3059\u308b\u3068\u3001\u6b21\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">apt-get install dpkg<\/span>\r\nReading Package Lists... Done\r\nBuilding Dependency Tree... Done\r\ndpkg is already the newest version.\r\n0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.<\/pre>\n<p>\u53c2\u8003\u306b\u3057\u305f\u30da\u30fc\u30b8\u3067\u306f\u65e5\u672c\u8a9e\u3067\u3057\u305f\u304c\u3001\u79c1\u306e\u5834\u5408\u306f\u82f1\u8a9e\u3067\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u65b9\u6cd5\u3067\u3001dpkg\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306f\u3001\u6b21\u306e\u65b9\u304c\u767a\u898b\u3055\u308c\u305f\u69d8\u3067\u3059\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/sfio.hateblo.jp\/entry\/20110110\/1294653850\" target=\"_blank\">HDL4-G1.0\u3092HDL4-G4.0\u306b\u6539\u9020(4) &#8211; \u3060\u3044\u3053\u3093\u306e\u65e5\u30052<\/a><\/li>\n<\/ul>\n<p>\u305f\u3060\u3001\u8a18\u4e8b\u4e2d&#8221;non-installed&#8221;\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001&#8221;not-installed&#8221;\u306e\u9593\u9055\u3044\u3067\u3057\u3087\u3046\u3002\u305d\u308c\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u8a18\u4e8b\u3067\u3082\u9593\u9055\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/nakapon\/20110215\" target=\"_blank\">2011-02-15 &#8211; \u306a\u304b\u307d\u3093\u306e\u96d1\u8a18<\/a><\/li>\n<\/ul>\n<h3>7. \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u5148\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u3066\u3044\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">cd \/var\/cache\/apt\/archives<\/span>\r\nsh-2.05b# ls\r\ndpkg_1.10.28_arm.deb               libc6_2.3.2.ds1-22sarge6_arm.deb    libncurses5_5.4-4_arm.deb        partial\r\ndselect_1.10.28_arm.deb            libdb1-compat_2.1.3-7_arm.deb       libstdc++5_1%3a3.3.5-13_arm.deb\r\ngcc-3.3-base_1%3a3.3.5-13_arm.deb  libgcc1_1%3a3.4.3-13sarge1_arm.deb  lock\r\nsh-2.05b# <span style=\"color: #00ff00;\">dpkg -i *.deb<\/span><\/pre>\n<p>\u3053\u306e\u4f5c\u696d\u304c\u7d42\u308f\u308b\u3068\u3001\/var\/lib\/dpkg\/status\u3082\u6b63\u3057\u304f\u66f8\u304d\u5909\u308f\u308b\u69d8\u3067\u3059\u3002<\/p>\n<h3>8. \u78ba\u8a8d<\/h3>\n<p>dpkg\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nsh-2.05b# dpkg -l\r\nDesired=Unknown\/Install\/Remove\/Purge\/Hold\r\n| Status=Not\/Installed\/Config-files\/Unpacked\/Failed-config\/Half-installed\r\n|\/ Err?=(none)\/Hold\/Reinst-required\/X=both-problems (Status,Err: uppercase=bad)\r\n||\/ Name                        Version                     Description\r\n+++-===========================-===========================-======================================================================\r\nii  dpkg                        1.10.28                     Package maintenance system for Debian\r\nii  dselect                     1.10.28                     a user tool to manage Debian packages\r\nii  gcc-3.3-base                3.3.5-13                    The GNU Compiler Collection (base package)\r\nii  libc6                       2.3.2.ds1-22sarge6          GNU C Library: Shared libraries and Timezone data\r\nii  libdb1-compat               2.1.3-7                     The Berkeley database routines [glibc 2.0\/2.1 compatibility]\r\nii  libgcc1                     3.4.3-13sarge1              GCC support library\r\nii  libncurses5                 5.4-4                       Shared libraries for terminal handling\r\nii  libstdc++5                  3.3.5-13                    The GNU Standard C++ Library v3\r\n<\/pre>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u691c\u7d22\u306f\u3001apt-cache\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\nsh-2.05b# apt-cache search curl\r\ncurl - Get a file from an HTTP, HTTPS, FTP or GOPHER server\r\nflying - pool\/snooker\/carrom\/hockey\/curling simulator for X11\r\nlibcurl-ocaml - ocaml curl bindings\r\nlibcurl-ocaml-dev - ocaml libcurl bindings\r\nlibcurl3 - Multi-protocol file transfer library, now with SSL support!\r\nlibcurl3-dbg - libcurl compiled with debug symbols\r\nlibcurl3-dev - Development files and documentation for libcurl\r\nlibcurl3-gssapi - libcurl compiled with GSSAPI support\r\nlibghttp-dev - original GNOME HTTP client library - development kit\r\nlibwww-curl-perl - Perl bindings to libcurl\r\nlibwww-dev - The W3C WWW library - development files\r\nlibwww-ssl-dev - The W3C WWW library - development files (SSL support)\r\nphp4-curl - CURL module for php4\r\npmccabe - McCabe-style function complexity and line counting for C and C++\r\npython2.2-pycurl - Python bindings to libcurl\r\npython2.3-pycurl - Python bindings to libcurl\r\npython2.4-pycurl - Python bindings to libcurl\r\ntclcurl - Tcl bindings to libcurl\r\nwmget - Background download manager in a Window Maker dock app\r\n<\/pre>\n<p>curl\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# apt-get install curl\r\nReading Package Lists... Done\r\nBuilding Dependency Tree... Done\r\nThe following extra packages will be installed:\r\n  debconf debconf-i18n libcurl3 libidn11 liblocale-gettext-perl libssl0.9.7 libtext-charwidth-perl libtext-iconv-perl\r\n  libtext-wrapi18n-perl perl-base zlib1g\r\nSuggested packages:\r\n  debconf-doc debconf-utils whiptail dialog gnome-utils libterm-readline-gnu-perl libgnome2-perl libqt-perl libnet-ldap-perl\r\n  libcurl3-gssapi ca-certificates libldap2-dev\r\nRecommended packages:\r\n  apt-utils\r\nThe following NEW packages will be installed:\r\n  curl debconf debconf-i18n libcurl3 libidn11 liblocale-gettext-perl libssl0.9.7 libtext-charwidth-perl libtext-iconv-perl\r\n  libtext-wrapi18n-perl perl-base zlib1g\r\n0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.\r\nNeed to get 2144kB of archives.\r\nAfter unpacking 7164kB of additional disk space will be used.\r\nDo you want to continue? [Y\/n] n\r\nAbort.<\/pre>\n<p>\u9014\u4e2d\u3067abort\u3055\u305b\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3053\u305d\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u3046\u307e\u304f\u52d5\u3044\u3066\u3044\u308b\u69d8\u3067\u3059\u3002<\/p>\n<h3>9. root\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092ro\u3067mount<\/h3>\n<p>\u4f5c\u696d\u304c\u7d42\u4e86\u3057\u305f\u3089\u3001ro\u306b\u623b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>sh-2.05b# <span style=\"color: #00ff00;\">mount -o ro,remount \/<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>LANDISK Home HDL4-G\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u305f\u3081\u306b\u3001\u3069\u3046\u3057\u3066\u3082\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u4e8b\u3001\u305d\u308c\u306fapt-get\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u69d8\u306b\u3059\u308b\u4e8b\u3067\u3059\u3002\u5e78\u3044\u3001\u4f55\u540d\u306e\u65b9\u304c\u6210\u529f\u3057\u3066\u304a\u3089\u308c\u3001\u8cc7\u6599\u3082\u6b8b\u3057\u3066\u4e0b\u3055\u3063\u3066\u3044\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300eLANDISK HDL4-G\u3092apt-get\u53ef\u80fd\u306b\u3059\u308b\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[59],"tags":[],"class_list":["post-11259","post","type-post","status-publish","format-standard","hentry","category-nas"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":2015,"url":"https:\/\/oichinote.com\/plus\/2011\/07\/debian-sargenet.html","url_meta":{"origin":11259,"position":0},"title":"Debian Sarge\u306eLANDISK\u306b\u306fnetatalk 2.2beta4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e747\u670812\u65e5","format":false,"excerpt":"Parallels\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002 Parallels Desktop 6 for Mac\u3092\u8cb7\u3044\u307e\u3057\u305f\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2048,"url":"https:\/\/oichinote.com\/plus\/2011\/08\/debian-etchneta.html","url_meta":{"origin":11259,"position":1},"title":"Debian Etch\u306bnetatalk 2.2.0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(\u524d\u7de8)","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2011\u5e748\u670814\u65e5","format":false,"excerpt":"LANDISK Home HDL4-G\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u3044\u3064\u306b\u642d\u8f09\u3055\u308c\u3066\u3044\u308bnetatalk\u304c\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1650,"url":"https:\/\/oichinote.com\/plus\/2010\/07\/powermac-virtua.html","url_meta":{"origin":11259,"position":2},"title":"PowerMac\u306eVirtualPC\u306bDebian sarge\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u305d\u3057\u3066\u4eca\u5f8c\u306e\u91ce\u671b","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2010\u5e747\u670814\u65e5","format":false,"excerpt":"\u4e00\u6628\u65e5\u3001PowerMac\u306eVirtualPC\u306bDebian sarge\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d\u3067\u3057\u305f\u304c\u3001\u3068\u308a\u3042\u2026","rel":"","context":"Mac","block_context":{"text":"Mac","link":"https:\/\/oichinote.com\/plus\/category\/mac"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1605,"url":"https:\/\/oichinote.com\/plus\/2010\/05\/landisk-hdl4-gn-2.html","url_meta":{"origin":11259,"position":3},"title":"LANDISK HDL4-G\u3092NFS\u30b5\u30fc\u30d0\u306b\u3059\u308b[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2010\u5e745\u670830\u65e5","format":false,"excerpt":"LANDISK HDL4-G\u3092NFS\u30b5\u30fc\u30d0\u306b\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u306b\u306f\u3001dpkg\u3082apt-get\u3082\u4e0d\u8981\u3067\u3059\u3002\u305f\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2919,"url":"https:\/\/oichinote.com\/plus\/2012\/05\/netatalk-2-2-3-debian-dpkg-ubuntu-10-04-install.html","url_meta":{"origin":11259,"position":4},"title":"netatalk 2.2.3\u3092debian\u5316\u3057\u3066Ubuntu 10.04\u306bdpkg\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2012\u5e745\u670824\u65e5","format":false,"excerpt":"\u5148\u65e5\u3001netatalk 2.2.3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u306e\u3067\u3001\u65e9\u901f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002 Ubuntu 1\u2026","rel":"","context":"netatalk","block_context":{"text":"netatalk","link":"https:\/\/oichinote.com\/plus\/category\/netatalk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1610,"url":"https:\/\/oichinote.com\/plus\/2010\/06\/powermac-ubuntu.html","url_meta":{"origin":11259,"position":5},"title":"PowerMac Ubuntu9.10\u306bARM\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u69cb\u7bc9\u3057\u3088\u3046\u3068\u3057\u3066\u632b\u6298","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2010\u5e746\u67084\u65e5","format":false,"excerpt":"LANDISK HDL4-G\u306btelnet\u3092\u5165\u308c\u305f\u3089(\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3089)\u3001\u8272\u3005\u3084\u308a\u305f\u304f\u306a\u3063\u3066\u304d\u3066\u3057\u2026","rel":"","context":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/oichinote.com\/plus\/category\/computer"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/11259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=11259"}],"version-history":[{"count":26,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/11259\/revisions"}],"predecessor-version":[{"id":11358,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/11259\/revisions\/11358"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=11259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=11259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=11259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}