{"id":5694,"date":"2017-02-14T10:15:38","date_gmt":"2017-02-14T01:15:38","guid":{"rendered":"https:\/\/www.vincentina.net\/?p=5694"},"modified":"2020-02-23T20:23:16","modified_gmt":"2020-02-23T11:23:16","slug":"apparently-theres-dependencies-nginx","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=5694","title":{"rendered":"Apparently there&#8217;s dependencies nginx"},"content":{"rendered":"<p>There&#8217;s to resolve problem and I have to apt-get upgrade otherwise my site might be die.<br \/>\nI totally didn&#8217;t notice this problem though.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get upgrade\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\u3053\u308c\u3089\u3092\u76f4\u3059\u305f\u3081\u306b\u306f 'apt-get -f install' \u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\r\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u6e80\u305f\u305b\u306a\u3044\u4f9d\u5b58\u95a2\u4fc2\u304c\u3042\u308a\u307e\u3059:\r\nnginx : \u4f9d\u5b58: nginx-full (&amp;lt; 1.10.2-2~dotdeb+8.2.1~) \u3057\u304b\u3057\u30011.10.3-1~dotdeb+8.1 \u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059 \u307e\u305f\u306f\r\nnginx-light (&amp;lt; 1.10.2-2~dotdeb+8.2.1~) \u3057\u304b\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093 \u307e\u305f\u306f\r\nnginx-extras (&amp;lt; 1.10.2-2~dotdeb+8.2.1~) \u3057\u304b\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093\r\nE: \u672a\u89e3\u6c7a\u306e\u4f9d\u5b58\u95a2\u4fc2\u304c\u3042\u308a\u307e\u3059\u3002-f \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n<\/pre>\n<p>First I tried this case how to resolve.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ dpkg --get-selections | grep nginx | awk '{print $1}' | xargs -I % echo % hold | sudo dpkg --set-selections\r\n$ dpkg --get-selections | grep nginx\r\nlibnginx-mod-http-auth-pam\t\t\thold\r\nlibnginx-mod-http-geoip\t\t\t\thold\r\nlibnginx-mod-http-image-filter\t\t\thold\r\nlibnginx-mod-http-xslt-filter\t\t\thold\r\nlibnginx-mod-mail\t\t\t\thold\r\nlibnginx-mod-stream\t\t\t\thold\r\nnginx\t\t\t\t\t\thold\r\nnginx-common\t\t\t\t\thold\r\nnginx-full\t\t\t\t\thold\r\n<\/pre>\n<p>BUT, this way wasn&#8217;t resolve this problem.Orz<br \/>\nDon&#8217;t forget restore config file.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ dpkg --get-selections | grep nginx\r\nlibnginx-mod-http-auth-pam\t\t\tinstall\r\nlibnginx-mod-http-geoip\t\t\t\tinstall\r\nlibnginx-mod-http-image-filter\t\t\tinstall\r\nlibnginx-mod-http-xslt-filter\t\t\tinstall\r\nlibnginx-mod-mail\t\t\t\tinstall\r\nlibnginx-mod-stream\t\t\t\tinstall\r\nnginx\t\t\t\t\t\tinstall\r\nnginx-common\t\t\t\t\tinstall\r\nnginx-full\t\t\t\t\tinstall\r\n<\/pre>\n<p>Actually We have a method that is to resolve a problem.<br \/>\nLet&#8217;s me show you apt-cache policy.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ apt-cache policy nginx\r\nnginx:\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3: 1.10.2-2~dotdeb+8.2\r\n  \u5019\u88dc:               1.10.3-1~jessie\r\n  \u30d1\u30c3\u30b1\u30fc\u30b8 Pin: 1.10.3-1~jessie\r\n  \u30d0\u30fc\u30b8\u30e7\u30f3\u30c6\u30fc\u30d6\u30eb:\r\n     1.10.3-1~jessie 1001\r\n        500 http:\/\/nginx.org\/packages\/debian\/ jessie\/nginx amd64 Packages\r\n     1.10.3-1~dotdeb+8.1 1001\r\n        500 http:\/\/packages.dotdeb.org\/ jessie\/all amd64 Packages\r\n *** 1.10.2-2~dotdeb+8.2 1001\r\n        500 http:\/\/packages.dotdeb.org\/ jessie\/all amd64 Packages\r\n        100 \/var\/lib\/dpkg\/status\r\n     1.10.2-2~dotdeb+8.1 1001\r\n        500 http:\/\/packages.dotdeb.org\/ jessie\/all amd64 Packages\r\n     1.10.2-1~jessie 1001\r\n        500 http:\/\/nginx.org\/packages\/debian\/ jessie\/nginx amd64 Packages\r\n     1.10.2-1~dotdeb+8.1 1001\r\n        500 http:\/\/packages.dotdeb.org\/ jessie\/all amd64 Packages\r\n<\/pre>\n<p>As you can see, default repository is the highest position in this file.<br \/>\nI need write this file to success apt-get upgrade and  resolve dependence.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncat \/etc\/apt\/preferences.d\/nginx\r\nPackage: nginx\r\nPin: origin packages.dotdeb.org\r\nPin-Priority: 999\r\n<\/pre>\n<p>It&#8217;s like this, I can write config file for apt.<br \/>\nLet&#8217;s me show you apt-cache policy again.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ apt-cache policy nginx\r\nnginx:\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3: 1.10.2-2~dotdeb+8.2\r\n  \u5019\u88dc:               1.10.3-1~dotdeb+8.1\r\n  \u30d1\u30c3\u30b1\u30fc\u30b8 Pin: 1.10.3-1~dotdeb+8.1\r\n  \u30d0\u30fc\u30b8\u30e7\u30f3\u30c6\u30fc\u30d6\u30eb:\r\n     1.10.3-1~jessie 999\r\n        500 http:\/\/nginx.org\/packages\/debian\/ jessie\/nginx amd64 Packages\r\n     1.10.3-1~dotdeb+8.1 999\r\n        500 http:\/\/packages.dotdeb.org\/ jessie\/all amd64 Packages\r\n *** 1.10.2-2~dotdeb+8.2 999\r\n        500 http:\/\/packages.dotdeb.org\/ jessie\/all amd64 Packages\r\n        100 \/var\/lib\/dpkg\/status\r\n     1.10.2-2~dotdeb+8.1 999\r\n        500 http:\/\/packages.dotdeb.org\/ jessie\/all amd64 Packages\r\n     1.10.2-1~jessie 999\r\n        500 http:\/\/nginx.org\/packages\/debian\/ jessie\/nginx amd64 Packages\r\n<\/pre>\n<p>dotdeb is having file priority have changed from low to high.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get -f install\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\u4f9d\u5b58\u95a2\u4fc2\u3092\u89e3\u6c7a\u3057\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  nginx\r\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3055\u308c\u307e\u3059:\r\n  nginx\r\n\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9: 1 \u500b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: 0 \u500b\u3001\u524a\u9664: 0 \u500b\u3001\u4fdd\u7559: 2 \u500b\u3002\r\n<\/pre>\n<p>Succeeded!!<\/p>\n<p>Sorry, language&#8217;s settings in my os is Japanese..<\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=5694\" data-text=\"Apparently there&#8217;s dependencies nginx\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s to resolve problem and I have to apt-get upgrade otherwise my site might be die. I totally didn&#038; &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=5694\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Apparently there&#8217;s dependencies nginx&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-5694","post","type-post","status-publish","format-standard","hentry","category-english"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5694"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5694\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}