{"id":474,"date":"2026-07-03T19:33:55","date_gmt":"2026-07-03T10:33:55","guid":{"rendered":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/474"},"modified":"2026-07-04T19:08:49","modified_gmt":"2026-07-04T10:08:49","slug":"sudo-apt-get%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%a8%e5%9f%ba%e6%9c%ac%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89","status":"publish","type":"post","link":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/474","title":{"rendered":"sudo apt-get\u306e\u4f7f\u3044\u65b9\u3068\u57fa\u672c\u30b3\u30de\u30f3\u30c9"},"content":{"rendered":"<h2>sudo apt-get\u3068\u306f<\/h2>\n<p>Ubuntu\u3084Debian\u7cfbLinux\u3067\u5229\u7528\u3055\u308c\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<strong>sudo<\/strong>\u3067\u7ba1\u7406\u8005\u6a29\u9650\u3092\u53d6\u5f97\u3057\u3001<strong>apt-get<\/strong>\u3067\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30fb\u524a\u9664\u306a\u3069\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9<\/h2>\n<ul>\n<li><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u306e\u66f4\u65b0<\/strong>\n<pre><code>sudo apt-get update<\/code><\/pre>\n<\/li>\n<li><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong>\n<pre><code>sudo apt-get install \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/code><\/pre>\n<\/li>\n<li><strong>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/strong>\n<pre><code>sudo apt-get upgrade<\/code><\/pre>\n<\/li>\n<li><strong>\u4f9d\u5b58\u95a2\u4fc2\u3092\u8003\u616e\u3057\u305f\u30d5\u30eb\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/strong>\n<pre><code>sudo apt-get dist-upgrade<\/code><\/pre>\n<\/li>\n<li><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u524a\u9664<\/strong>\n<pre><code>sudo apt-get remove \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/code><\/pre>\n<\/li>\n<li><strong>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u542b\u3081\u3066\u5b8c\u5168\u306b\u524a\u9664<\/strong>\n<pre><code>sudo apt-get purge \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/code><\/pre>\n<\/li>\n<li><strong>\u4e0d\u8981\u306a\u81ea\u52d5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u524a\u9664<\/strong>\n<pre><code>sudo apt-get autoremove<\/code><\/pre>\n<\/li>\n<li><strong>\u30ed\u30fc\u30ab\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30af\u30ea\u30a2<\/strong>\n<pre><code>sudo apt-get clean<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>\u3088\u304f\u4f7f\u3046\u30aa\u30d7\u30b7\u30e7\u30f3<\/h2>\n<ul>\n<li><strong>-y<\/strong> : \u78ba\u8a8d\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u81ea\u52d5\u7684\u306b\u300cyes\u300d\u306b\u3057\u3066\u5b9f\u884c<br \/>\u4f8b:\n<pre><code>sudo apt-get install -y \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/code><\/pre>\n<\/li>\n<li><strong>-f<\/strong> : \u4f9d\u5b58\u95a2\u4fc2\u306e\u554f\u984c\u3092\u4fee\u5fa9<br \/>\u4f8b:\n<pre><code>sudo apt-get -f install<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u58ca\u308c\u305f\u5834\u5408\u3084\u4f9d\u5b58\u95a2\u4fc2\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3068\u304d\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u5bfe\u51e6\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\n<pre><code>sudo apt-get update<\/code><\/pre>\n<p>\u3067\u6700\u65b0\u60c5\u5831\u3092\u53d6\u5f97<\/li>\n<li>\n<pre><code>sudo apt-get -f install<\/code><\/pre>\n<p>\u3067\u4f9d\u5b58\u95a2\u4fc2\u3092\u4fee\u5fa9<\/li>\n<li>\n<pre><code>sudo dpkg --configure -a<\/code><\/pre>\n<p>\u3067\u672a\u8a2d\u5b9a\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8a2d\u5b9a<\/li>\n<\/ul>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>sudo apt-get\u306fLinux\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306b\u6b20\u304b\u305b\u306a\u3044\u30c4\u30fc\u30eb\u3067\u3059\u3002\u57fa\u672c\u30b3\u30de\u30f3\u30c9\u3068\u4e3b\u8981\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u899a\u3048\u3066\u304a\u3051\u3070\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u4fdd\u5b88\u30fb\u904b\u7528\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u884c\u3048\u307e\u3059\u3002\u5b9a\u671f\u7684\u306b <code>update<\/code> \u3068 <code>upgrade<\/code> \u3092\u5b9f\u884c\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u6700\u65b0\u72b6\u614b\u306b\u4fdd\u3061\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo apt-get\u3068\u306f Ubuntu\u3084Debian\u7cfbLinux\u3067\u5229\u7528\u3055\u308c\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002sudo\u3067\u7ba1\u7406\u8005\u6a29\u9650\u3092\u53d6\u5f97\u3057\u3001apt-get\u3067\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30fb\u524a\u9664\u306a\u3069\u3092\u884c\u3044\u307e\u3059\u3002 \u57fa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-474","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/comments?post=474"}],"version-history":[{"count":1,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":477,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/474\/revisions\/477"}],"wp:attachment":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/media?parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/categories?post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/tags?post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}