{"id":47268,"date":"2026-06-27T22:42:37","date_gmt":"2026-06-27T13:42:37","guid":{"rendered":"https:\/\/raybeam.jp\/docs\/troubleshotting\/troubleshooting-apt-dist-upgrade-failure-from-the-elasticsearch-repository\/"},"modified":"2026-06-27T22:43:06","modified_gmt":"2026-06-27T13:43:06","slug":"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%81%e0%b8%81%e0%b9%89%e0%b9%84%e0%b8%82%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%ad%e0%b8%b1%e0%b8%9b%e0%b9%80%e0%b8%81%e0%b8%a3","status":"publish","type":"docs","link":"https:\/\/raybeam.jp\/th\/docs\/troubleshotting\/troubleshooting-apt-dist-upgrade-failure-from-the-elasticsearch-repository\/","title":{"rendered":"\u0e01\u0e32\u0e23\u0e41\u0e01\u0e49\u0e44\u0e02\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1b\u0e40\u0e01\u0e23\u0e14 apt dist-upgrade \u0e17\u0e35\u0e48\u0e25\u0e49\u0e21\u0e40\u0e2b\u0e25\u0e27\u0e08\u0e32\u0e01\u0e04\u0e25\u0e31\u0e07 Elasticsearch"},"content":{"rendered":"<h2 id=\"problem\" class=\"wp-block-heading\">\u0e1b\u0e31\u0e0d\u0e2b\u0e32<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e23\u0e30\u0e1a\u0e1a\u0e19\u0e35\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e15\u0e48\u0e40\u0e01\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14\u0e43\u0e19\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt dist-upgrade\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e14\u0e49\u0e27\u0e22:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>403 Forbidden\nhttps:\/\/artifacts.elastic.co\/packages\/9.x\/apt\/...\/elasticsearch-9.4.2-amd64.deb\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e19\u0e31\u0e48\u0e19\u0e2b\u0e21\u0e32\u0e22\u0e04\u0e27\u0e32\u0e21\u0e27\u0e48\u0e32 \u0e23\u0e32\u0e22\u0e0a\u0e37\u0e48\u0e2d\u0e41\u0e1e\u0e47\u0e01\u0e40\u0e01\u0e08\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27 \u0e41\u0e15\u0e48 APT \u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e2d\u0e32\u0e23\u0e4c\u0e44\u0e04\u0e1f\u0e4c\u0e41\u0e1e\u0e47\u0e01\u0e40\u0e01\u0e08 Elasticsearch \u0e17\u0e35\u0e48\u0e23\u0e30\u0e1a\u0e38\u0e44\u0e14\u0e49.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"why-this-happened\" class=\"wp-block-heading\">\u0e17\u0e33\u0e44\u0e21\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e19\u0e35\u0e49\u0e08\u0e36\u0e07\u0e40\u0e01\u0e34\u0e14\u0e02\u0e36\u0e49\u0e19<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e19\u0e35\u0e48\u0e44\u0e21\u0e48\u0e43\u0e0a\u0e48\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a\u0e01\u0e23\u0e30\u0e08\u0e01 Ubuntu.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e2b\u0e25\u0e31\u0e01\u0e10\u0e32\u0e19\u0e2a\u0e33\u0e04\u0e31\u0e0d:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>apt update<\/code>&nbsp;\u0e1b\u0e23\u0e30\u0e2a\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08.<\/li>\n\n\n\n<li>\u0e04\u0e27\u0e32\u0e21\u0e25\u0e49\u0e21\u0e40\u0e2b\u0e25\u0e27\u0e19\u0e31\u0e49\u0e19\u0e40\u0e01\u0e34\u0e14\u0e08\u0e32\u0e01\u0e40\u0e1e\u0e35\u0e22\u0e07&nbsp;<code>artifacts.elastic.co<\/code>.<\/li>\n\n\n\n<li>\u0e04\u0e33\u0e02\u0e2d\u0e17\u0e35\u0e48\u0e25\u0e49\u0e21\u0e40\u0e2b\u0e25\u0e27\u0e19\u0e31\u0e49\u0e19\u0e43\u0e0a\u0e49 IPv6:&nbsp;<code>2600:1901:0:1d7::<\/code>.<\/li>\n\n\n\n<li>\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e04\u0e33\u0e02\u0e2d\u0e42\u0e14\u0e22\u0e15\u0e23\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07 URL \u0e02\u0e2d\u0e07\u0e41\u0e1e\u0e47\u0e01\u0e40\u0e01\u0e08\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19\u0e44\u0e14\u0e49\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08\u0e1c\u0e48\u0e32\u0e19 IPv4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19 \u0e2a\u0e32\u0e40\u0e2b\u0e15\u0e38\u0e2b\u0e25\u0e31\u0e01\u0e04\u0e37\u0e2d\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e40\u0e2a\u0e49\u0e19\u0e17\u0e32\u0e07\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22\/IPv6 \u0e44\u0e1b\u0e22\u0e31\u0e07 repositori Elasticsearch \u0e44\u0e21\u0e48\u0e43\u0e0a\u0e48\u0e40\u0e1e\u0e23\u0e32\u0e30\u0e41\u0e1e\u0e47\u0e01\u0e40\u0e01\u0e08\u0e21\u0e35\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e2b\u0e23\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 repositori \u0e44\u0e21\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"solution-found\" class=\"wp-block-heading\">\u0e1e\u0e1a\u0e27\u0e34\u0e18\u0e35\u0e41\u0e01\u0e49\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e41\u0e25\u0e49\u0e27<\/h2>\n\n\n\n<h3 id=\"temporary-fix\" class=\"wp-block-heading\">\u0e27\u0e34\u0e18\u0e35\u0e41\u0e01\u0e49\u0e44\u0e02\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a\u0e43\u0e2b\u0e49 APT \u0e43\u0e0a\u0e49 IPv4 \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt -o Acquire::ForceIPv4=true update\nsudo apt -o Acquire::ForceIPv4=true dist-upgrade\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e27\u0e34\u0e18\u0e35\u0e19\u0e35\u0e49\u0e44\u0e14\u0e49\u0e2b\u0e25\u0e35\u0e01\u0e40\u0e25\u0e35\u0e48\u0e22\u0e07\u0e40\u0e2a\u0e49\u0e19\u0e17\u0e32\u0e07 IPv6 \u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e17\u0e33\u0e07\u0e32\u0e19 \u0e41\u0e25\u0e30\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e01\u0e32\u0e23\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e41\u0e1e\u0e47\u0e01\u0e40\u0e01\u0e08\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08.<\/p>\n\n\n\n<h3 id=\"permanent-fix\" class=\"wp-block-heading\">\u0e01\u0e32\u0e23\u0e41\u0e01\u0e49\u0e44\u0e02\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e16\u0e32\u0e27\u0e23<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e23\u0e31\u0e01\u0e29\u0e32\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49 IPv4 \u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a APT:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 'Acquire::ForceIPv4 \"true\";' | sudo tee \/etc\/apt\/apt.conf.d\/99force-ipv4\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e43\u0e2b\u0e49\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15\u0e15\u0e32\u0e21\u0e1b\u0e01\u0e15\u0e34\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt dist-upgrade\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"what-this-means\" class=\"wp-block-heading\">\u0e04\u0e27\u0e32\u0e21\u0e2b\u0e21\u0e32\u0e22\u0e02\u0e2d\u0e07\u0e2a\u0e34\u0e48\u0e07\u0e19\u0e35\u0e49\u0e04\u0e37\u0e2d<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e23\u0e30\u0e1a\u0e1a\u0e40\u0e2d\u0e07\u0e22\u0e31\u0e07\u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e1b\u0e01\u0e15\u0e34\u0e1e\u0e2d\u0e17\u0e35\u0e48\u0e08\u0e30\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e21\u0e15\u0e32\u0e14\u0e32\u0e15\u0e49\u0e32\u0e02\u0e2d\u0e07\u0e41\u0e1e\u0e47\u0e01\u0e40\u0e01\u0e08.<\/li>\n\n\n\n<li>\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14\u0e14\u0e31\u0e07\u0e01\u0e25\u0e48\u0e32\u0e27\u0e16\u0e39\u0e01\u0e23\u0e30\u0e1a\u0e38\u0e27\u0e48\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e43\u0e19\u0e01\u0e32\u0e23\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e41\u0e1e\u0e47\u0e01\u0e40\u0e01\u0e08 Elasticsearch \u0e1c\u0e48\u0e32\u0e19 IPv6.<\/li>\n\n\n\n<li>\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 IPv4 \u0e40\u0e1b\u0e47\u0e19\u0e27\u0e34\u0e18\u0e35\u0e41\u0e01\u0e49\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e17\u0e35\u0e48\u0e1b\u0e0f\u0e34\u0e1a\u0e31\u0e15\u0e34\u0e44\u0e14\u0e49\u0e08\u0e23\u0e34\u0e07 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e23\u0e35\u0e42\u0e1e\u0e2a\u0e34\u0e15\u0e2d\u0e23\u0e35\u0e1c\u0e48\u0e32\u0e19 IPv4 \u0e41\u0e15\u0e48\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e1c\u0e48\u0e32\u0e19 IPv6 \u0e44\u0e14\u0e49.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"optional-followup\" class=\"wp-block-heading\">\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e32\u0e21\u0e1c\u0e25 (\u0e15\u0e32\u0e21\u0e04\u0e27\u0e32\u0e21\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2b\u0e32\u0e27\u0e34\u0e18\u0e35\u0e41\u0e01\u0e49\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e17\u0e35\u0e48\u0e2a\u0e30\u0e2d\u0e32\u0e14\u0e41\u0e25\u0e30\u0e22\u0e31\u0e48\u0e07\u0e22\u0e37\u0e19\u0e43\u0e19\u0e23\u0e30\u0e22\u0e30\u0e22\u0e32\u0e27 \u0e43\u0e2b\u0e49\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d IPv6 \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e42\u0e2e\u0e2a\u0e15\u0e4c\u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22 \u0e41\u0e15\u0e48\u0e43\u0e19\u0e02\u0e13\u0e30\u0e19\u0e35\u0e49 \u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e40\u0e23\u0e48\u0e07\u0e14\u0e48\u0e27\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e14\u0e49\u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a\u0e43\u0e2b\u0e49 APT \u0e43\u0e0a\u0e49 IPv4.<\/p>","protected":false},"featured_media":0,"parent":47267,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","pmpro_default_level":"","nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-47268","docs","type-docs","status-publish","hentry","pmpro-has-access"],"_links":{"self":[{"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs\/47268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/comments?post=47268"}],"version-history":[{"count":1,"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs\/47268\/revisions"}],"predecessor-version":[{"id":47269,"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs\/47268\/revisions\/47269"}],"up":[{"embeddable":true,"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs\/47267"}],"wp:attachment":[{"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/media?parent=47268"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs_category?post=47268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}