{"id":3247,"date":"2019-04-30T23:13:13","date_gmt":"2019-04-30T14:13:13","guid":{"rendered":"https:\/\/tech.akat.info\/?p=3247"},"modified":"2019-04-30T23:16:00","modified_gmt":"2019-04-30T14:16:00","slug":"ubuntu%e3%81%ab%e3%81%a6date%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%a7%e4%bb%a4%e5%92%8c%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%81%9f","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=3247","title":{"rendered":"Ubuntu\u306b\u3066date\u30b3\u30de\u30f3\u30c9\u3067\u4ee4\u548c\u3092\u8868\u793a\u3055\u305b\u305f"},"content":{"rendered":"<p>Ubuntu 18.04 LTS\u3082Ubuntu 16.04 LTS\u3082\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6700\u65b0\u306b\u3057\u3066\u3082\u4ee4\u548c\u306f\u8868\u793a\u3055\u308c\u306a\u3044\u3002<br \/>\nUbuntu 19.04 Disco Dingo\u306elibc6\u3092\u5229\u7528\u3057\u3066\u3001\u4ee4\u548c\u3092\u8868\u793a\u3055\u305b\u305f\u3002<\/p>\n<h2>Ubuntu 18.04<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# apt update \r\n# apt upgrade\r\n# cat \/etc\/lsb-release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=18.04\r\nDISTRIB_CODENAME=bionic\r\nDISTRIB_DESCRIPTION=&quot;Ubuntu 18.04.2 LTS&quot;\r\n# dpkg -l | grep libc6\r\nii  libc6:amd64                    2.27-3ubuntu1 ...\r\n# date +%Ec -d 20190501\r\n\u5e73\u621031\u5e7405\u670801\u65e5 00\u664200\u520600\u79d2\r\n\r\n# vi \/etc\/apt\/apt.conf.d\/01ubuntu\r\nAPT::Default-Release &quot;bionic&quot;;\r\n\r\n# vi \/etc\/apt\/sources.list\r\n...\r\ndeb http:\/\/ap-northeast-1.ec2.archive.ubuntu.com\/ubuntu\/ disco main restricted\r\n\r\n# apt install libc6 -t disco\r\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\r\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\r\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\r\n\u4ee5\u4e0b\u306e\u8ffd\u52a0\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\r\n  libc-bin libidn2-0 locales\r\n\u63d0\u6848\u30d1\u30c3\u30b1\u30fc\u30b8:\r\n  glibc-doc\r\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3055\u308c\u307e\u3059:\r\n  libc-bin libc6 libidn2-0 locales\r\n\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9: 4 \u500b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: 0 \u500b\u3001\u524a\u9664: 0 \u500b\u3001\u4fdd\u7559: 571 \u500b\u3002\r\n7,244 kB \u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\r\n\u3053\u306e\u64cd\u4f5c\u5f8c\u306b\u8ffd\u52a0\u3067 3,681 kB \u306e\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u6d88\u8cbb\u3055\u308c\u307e\u3059\u3002\r\n\u7d9a\u884c\u3057\u307e\u3059\u304b? &#x5B;Y\/n] y\r\n...\r\n\r\n# dpkg -l | grep libc6\r\nii  libc6:amd64                    2.29-0ubuntu2 ...\r\n\r\n# date +%Ec -d 20190501\r\n\u4ee4\u548c\u5143\u5e7405\u670801\u65e5 00\u664200\u520600\u79d2\r\n<\/pre>\n<h2>Ubuntu 16.04<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# apt update \r\n# apt upgrade\r\n# cat \/etc\/lsb-release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=16.04\r\nDISTRIB_CODENAME=xenial\r\nDISTRIB_DESCRIPTION=&quot;Ubuntu 16.04.6 LTS&quot;\r\n\r\n# dpkg -l | grep libc6\r\nii  libc6:amd64                       2.23-0ubuntu11 ...\r\n\r\n# date +%Ec -d 20190501\r\n\u5e73\u621031\u5e7405\u670801\u65e5 00\u664200\u520600\u79d2\r\n\r\n# vi \/etc\/apt\/apt.conf.d\/01ubuntu\r\nAPT::Default-Release &quot;xenial&quot;;\r\n\r\n# vi \/etc\/apt\/sources.list\r\n...\r\ndeb http:\/\/ap-northeast-1.ec2.archive.ubuntu.com\/ubuntu\/ disco main restricted\r\n\r\n# aptitude install libc6 -t disco\r\nThe following NEW packages will be installed:\r\n  libidn2-0{a} libunistring2{a}\r\nThe following packages will be upgraded:\r\n  libc-bin libc6 locales\r\n3 packages upgraded, 2 newly installed, 0 to remove and 452 not upgraded.\r\nNeed to get 7,613 kB of archives. After unpacking 6,995 kB will be used.\r\nThe following packages have unmet dependencies:\r\n libc6-dev : \u4f9d\u5b58: libc6 (= 2.23-0ubuntu11) but 2.29-0ubuntu2 is to be installed.\r\n libc-dev-bin : \u4f9d\u5b58: libc6 (&lt; 2.24) but 2.29-0ubuntu2 is to be installed.\r\nThe following actions will resolve these dependencies:\r\n\r\n      Remove the following packages:\r\n1)      build-essential\r\n2)      g++\r\n3)      g++-5\r\n4)      libc-dev-bin\r\n5)      libc6-dev\r\n6)      libstdc++-5-dev\r\n\r\n      Leave the following dependencies unresolved:\r\n7)      gcc recommends libc6-dev | libc-dev\r\n8)      dpkg-dev recommends build-essential\r\n9)      gcc-5 recommends libc6-dev (&gt;= 2.13-0ubuntu6)\r\n10)     libgcc-5-dev recommends libc6-dev (&gt;= 2.13-0ubuntu6)\r\n11)     golang-1.12-go recommends g++\r\n12)     golang-1.12-go recommends libc6-dev\r\n\r\n\r\nAccept this solution? &#x5B;Y\/n\/q\/?] n\r\nThe following actions will resolve these dependencies:\r\n\r\n     Upgrade the following packages:\r\n1)     libc-dev-bin &#x5B;2.23-0ubuntu11 (now, xenial-updates) -&gt; 2.29-0ubuntu2 (disco)]\r\n2)     libc6-dev &#x5B;2.23-0ubuntu11 (now, xenial-updates) -&gt; 2.29-0ubuntu2 (disco)]\r\n\r\nAccept this solution? &#x5B;Y\/n\/q\/?] y\r\n...\r\n\r\n# dpkg -l | grep libc6\r\nii  libc6:amd64                       2.29-0ubuntu2 ...\r\n\r\n# date +%Ec -d 20190501\r\n\u4ee4\u548c\u5143\u5e7405\u670801\u65e5 00\u664200\u520600\u79d2\r\n<\/pre>\n<h2>\u53c2\u8003<\/h2>\n<p>https:\/\/qiita.com\/yosshy\/items\/4ed9e3e49cf346ca670d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 18.04 LTS\u3082Ubuntu 16.04 LTS\u3082\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6700\u65b0\u306b\u3057\u3066\u3082\u4ee4\u548c\u306f\u8868\u793a\u3055\u308c\u306a\u3044\u3002 Ubuntu 19.04 Disco Dingo\u306elibc6\u3092\u5229\u7528\u3057\u3066\u3001\u4ee4\u548c\u3092\u8868\u793a\u3055\u305b\u305f\u3002 Ubuntu  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[84],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3247"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3247"}],"version-history":[{"count":3,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3247\/revisions"}],"predecessor-version":[{"id":3252,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3247\/revisions\/3252"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}