{"id":7773,"date":"2021-06-05T20:10:16","date_gmt":"2021-06-05T11:10:16","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7773"},"modified":"2021-06-05T20:23:10","modified_gmt":"2021-06-05T11:23:10","slug":"ubuntu-20-04-%e3%81%a7%e5%a4%89%e3%81%aa%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%81%ae-libc-%e3%81%8c%e5%85%a5%e3%81%a3%e3%81%a6%e3%81%97%e3%81%be%e3%81%86%e7%8f%be%e8%b1%a1","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7773","title":{"rendered":"Ubuntu 20.04 \u3067\u5909\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u306e libc \u304c\u5165\u3063\u3066\u3057\u307e\u3046\u73fe\u8c61"},"content":{"rendered":"<p>\u624b\u5143\u306e 20.04 \u306b GCC (g++) \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u898b\u6163\u308c\u306a\u3044\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<blockquote>\n<pre>\r\n$ sudo apt install gcc g++ make\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nSome packages could not be installed. This may mean that you have\r\nrequested an impossible situation or if you are using the unstable\r\ndistribution that some required packages have not yet been created\r\nor been moved out of Incoming.\r\nThe following information may help to resolve the situation:\r\n\r\nThe following packages have unmet dependencies:\r\n g++ : Depends: g++-9 (>= 9.3.0-3~) but it is not going to be installed\r\nE: Unable to correct problems, you have held broken packages.\r\n<\/pre>\n<\/blockquote>\n<p>\u306f\u3066\uff1f<\/p>\n<p>\u4f9d\u5b58\u95a2\u4fc2\u3092\u6398\u3063\u3066\u3044\u304f\u3068\u3001 g++ -> g++-9 -> libstdc++-9-dev -> libc6-dev -> libc6 \u3068\u8fbf\u308c\u305f\u306e\u3067\u3059\u304c\u3001 \u6700\u5f8c\u306e libc6-dev -> libc6 \u306e\u3068\u3053\u308d\u3067\u3053\u3093\u306a\u3053\u3068\u8a00\u308f\u308c\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\n$ sudo apt install libc6-dev\r\n\uff08\u7565\uff09\r\nThe following packages have unmet dependencies:\r\n libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.3 is to be installed\r\nE: Unable to correct problems, you have held broken packages.\r\n<\/pre>\n<\/blockquote>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u3042\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3088\u308a\u65b0\u3057\u3044\u3082\u306e\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u2026\uff1f<\/p>\n<blockquote>\n<pre>\r\n$ apt list --installed | grep libc\r\n\uff08\u7565\uff09\r\nlibc-bin\/now 2.31-0ubuntu9.3 amd64 [installed,local]\r\nlibc6\/now 2.31-0ubuntu9.3 amd64 [installed,local]\r\n<\/pre>\n<\/blockquote>\n<p>local\u2026\uff1f deb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u899a\u3048\u306f\u7121\u3044\u305e\uff1f<\/p>\n<p>\u300c2.31-0ubuntu9.3\u300d\u3067\u3061\u3087\u3061\u3087\u3063\u3068\u30b0\u30b0\u3063\u3066\u307f\u308b\u3068\u3001 18.04 \u304b\u3089 20.04 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305f Ubuntu \u3067\u3053\u306e\u73fe\u8c61\u304c\u8d77\u3053\u308b\u3053\u3068\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u3068\u3082\u304b\u304f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\n$ apt list --installed | grep local\r\n\uff08\u7565\uff09\r\nlibc-bin\/now 2.31-0ubuntu9.3 amd64 [installed,local]\r\nlibc6\/now 2.31-0ubuntu9.3 amd64 [installed,local]\r\nlocales\/now 2.31-0ubuntu9.3 all [installed,local]\r\n$ sudo apt install libc6=2.31-0ubuntu9.2 libc-bin=2.31-0ubuntu9.2 locales=2.31-0ubuntu9.2\r\n\uff08\u7565\uff09\r\nThe following packages will be DOWNGRADED:\r\n  libc6 libc-bin locales\r\n\uff08\u7565\uff09\r\n<\/pre>\n<\/blockquote>\n<p>\u3053\u308c\u3067 g++ \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u624b\u5143\u306e 20.04 \u306b GCC (g++) \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u898b\u6163\u308c\u306a\u3044\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-7773","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7773"}],"version-history":[{"count":6,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7773\/revisions"}],"predecessor-version":[{"id":7779,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7773\/revisions\/7779"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7773"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}