{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/freedombox/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/freedombox/", "feed_url": "https://matoken.org/blog/tag/freedombox/feed/json/", "language": "ja", "title": "FreedomBox – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=1601", "url": "https://matoken.org/blog/2017/04/19/restore-broken-var-lib-dpkg-status-in-freedombox-of-raspberry-pi/", "title": "Raspberry Pi\u306eFreedomBox\u3067/var/lib/dpkg/status\u304c\u58ca\u308c\u305f\u306e\u3092\u5fa9\u65e7", "content_html": "
Raspberry Pi\u3067FreedomBox\u3092\u8a66\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\uff0c\u30b9\u30c8\u30ec\u30fc\u30b8\u304cmicroSD\u306e\u305b\u3044\u304b\u4fee\u6b63\u3057\u3066\u3044\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u304b\u4f55\u304b\u304c\u304a\u304b\u3057\u304f\u306a\u3063\u305f\u305b\u3044\u304b/var/lib/dpkg/status\u304c\u58ca\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e
$ sudo apt update\nHit:1 http://cdn-fastly.deb.debian.org/debian testing InRelease\nReading package lists... Error!\nE: Unable to parse package file /var/lib/dpkg/status (1)\nW: You may want to run apt-get update to correct these problems\nE: The package cache file is corrupted\n\n
E: \u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb /var/lib/dpkg/status \u3092\u89e3\u91c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093 (1)\nW: \u3053\u308c\u3089\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u306f apt-get update \u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\nE: \u30d1\u30c3\u30b1\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u30d5\u30a1\u30a4\u30eb\u304c\u58ca\u308c\u3066\u3044\u307e\u3059\n\n
apt-get update\u3067\u6cbb\u308b\u306e\u304b\u306a\u3068\u601d\u3063\u3066\u53e9\u3044\u3066\u307f\u307e\u3057\u305f\u304c\u99c4\u76ee\u3067\u3057\u305f\uff0e
Debian \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u7b2c2\u7ae0 Debian \u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306b\u3088\u308b\u3068\uff0c
\n\n\n2.6.5. \u30d1\u30c3\u30b1\u30fc\u30b8\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u5fa9\u5143
\n\u3082\u3057\u4f55\u3089\u304b\u306e\u7406\u7531\u3067 “/var/lib/dpkg/status” \u306e\u5185\u5bb9\u304c\u8150\u3063\u305f\u5834\u5408\u306b\u306f\u3001Debian \u30b7\u30b9\u30c6\u30e0\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u9078\u629e\u30c7\u30fc\u30bf\u30fc\u304c\u5931\u308f\u308c\u5927\u304d\u306a\u6253\u6483\u3092\u88ab\u308a\u307e\u3059\u3002\u53e4\u3044 “/var/lib/dpkg/status” \u30d5\u30a1\u30a4\u30eb\u306f\u3001”/var/lib/dpkg/status-old” \u3084 “/var/backups/dpkg.status.*” \u3068\u3057\u3066\u3042\u308b\u306e\u3067\u63a2\u3057\u307e\u3059\u3002
\n“/var/backups/” \u306f\u591a\u304f\u306e\u91cd\u8981\u306a\u60c5\u5831\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u5225\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u4e0a\u306b\u7f6e\u304f\u306e\u3082\u826f\u3044\u8003\u3048\u3067\u3059\u3002
\n
\u3068\u306e\u3053\u3068\u306a\u306e\u3067\uff0c/var/lib/dpkg/status-old\u304b\u3089\u5fa9\u65e7\u3092\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u3053\u308c\u3082\u65e2\u306b\u58ca\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\uff0e/var/backups/dpkg.status.0\u306f\u307e\u3060\u58ca\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3053\u308c\u3067\u4e0a\u66f8\u304d\u3057\u3066\u5fa9\u65e7\u3057\u305f\u3088\u3046\u3067\u3059\uff0e
$ sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status\n\n